From c62a89b5148617c650587c19bbda91e06c7838f0 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Feb 01 2016 11:21:08 +0000 Subject: [PATCH 1/2] Changed some placeholders in new issue form --- diff --git a/pagure/templates/new_issue.html b/pagure/templates/new_issue.html index ebba4e1..3755ab4 100644 --- a/pagure/templates/new_issue.html +++ b/pagure/templates/new_issue.html @@ -29,16 +29,16 @@ repo=repo.name, issueid=issueid) }}" method="post" enctype="multipart/form-data"> {% endif %} - {{ render_bootstrap_field(form.title, field_description="the name of your project") }} + {{ render_bootstrap_field(form.title, field_description="Gist of your issue") }} {% if type == 'edit' %} {{ render_bootstrap_field(form.status, field_description="bug status") }} {% endif %} - {{ render_bootstrap_field(form.private, field_description="the name of your project") }} + {{ render_bootstrap_field(form.private, field_description="Do you want to keep the issue private?") }}
Preview
From 66bd8188d0234502a4a9d3a06977a2d4b47f2a4d Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Feb 01 2016 11:21:08 +0000 Subject: [PATCH 2/2] Fix typo in wtf login forms --- diff --git a/pagure/login_forms.py b/pagure/login_forms.py index 3755310..0819762 100644 --- a/pagure/login_forms.py +++ b/pagure/login_forms.py @@ -29,7 +29,7 @@ def same_password(form, field): ''' Check if the data in the field is the same as in the password field. ''' if field.data != form.password.data: - raise wtf.ValidationError('Both password fields should be equal') + raise wtforms.validators.ValidationError('Both password fields should be equal') class LostPasswordForm(wtf.Form): diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 4d764b7..ee22e92 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -25,6 +25,10 @@ {{ field.label }} +
+ {% if field_description %} + {{ field_description }} + {% endif %} {% else %} {{ field.label }} {{ field(class_=formclasses)|safe }}