diff options
author | 2012-08-15 15:25:22 +0200 | |
---|---|---|
committer | 2012-08-15 15:25:22 +0200 | |
commit | 68da776d074b16b4e12deb560717e542016bb011 (patch) | |
tree | e2494e84d3c595262b968cd8c3033b9be42a7783 /euscanwww | |
parent | euscanwww: Added feeds help page (diff) | |
download | euscan-68da776d074b16b4e12deb560717e542016bb011.tar.gz euscan-68da776d074b16b4e12deb560717e542016bb011.tar.bz2 euscan-68da776d074b16b4e12deb560717e542016bb011.zip |
euscanwww: Fixing preferences form errors
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'euscanwww')
-rw-r--r-- | euscanwww/djeuscan/templates/euscan/accounts/preferences.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/euscanwww/djeuscan/templates/euscan/accounts/preferences.html b/euscanwww/djeuscan/templates/euscan/accounts/preferences.html index db32f05..8df632a 100644 --- a/euscanwww/djeuscan/templates/euscan/accounts/preferences.html +++ b/euscanwww/djeuscan/templates/euscan/accounts/preferences.html @@ -34,15 +34,15 @@ <thead><tr><th>Personal settings</th></tr></thead> <tr> <th>{{ form.first_name.label_tag }}</th> - <td><ul class="errorlist">{{ form.first_name.errors }}</ul>{{ form.first_name }}</td> + <td>{% if form.first_name.errors %}<ul class="errorlist">{{ form.first_name.errors }}</ul>{% endif %}{{ form.first_name }}</td> </tr> <tr> <th>{{ form.last_name.label_tag }}</th> - <td><ul class="errorlist">{{ form.last_name.errors }}</ul>{{ form.last_name }}</td> + <td>{% if form.last_name.errors %}<ul class="errorlist">{{ form.last_name.errors }}</ul>{% endif %}{{ form.last_name }}</td> </tr> <tr> <th>{{ form.email.label_tag }}</th> - <td><ul class="errorlist">{{ form.email.errors }}</ul>{{ form.email }}</td> + <td>{% if form.first_name.errors %}<ul class="errorlist">{{ form.email.errors }}</ul>{% endif %} {{ form.email }}</td> </tr> </table> @@ -50,27 +50,27 @@ <thead><tr><th>Feed settings</th></tr></thead> <tr> <th>{{ form.feed_upstream_info.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_upstream_info.errors }}</ul>{{ form.feed_upstream_info }}</td> + <td>{{ form.feed_upstream_info }}</td> </tr> <tr> <th>{{ form.feed_portage_info.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_portage_info.errors }}</ul>{{ form.feed_portage_info }}</td> + <td>{{ form.feed_portage_info }}</td> </tr> <tr> <th>{{ form.feed_show_adds.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_show_adds.errors }}</ul>{{ form.feed_show_adds }}</td> + <td>{{ form.feed_show_adds }}</td> </tr> <tr> <th>{{ form.feed_show_removals.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_show_removals.errors }}</ul>{{ form.feed_show_removals }}</td> + <td>{{ form.feed_show_removals }}</td> </tr> <tr> <th>{{ form.feed_ignore_pre.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_ignore_pre.errors }}</ul>{{ form.feed_ignore_pre }}</td> + <td>{{ form.feed_ignore_pre }}</td> </tr> <tr> <th>{{ form.feed_ignore_pre_if_stable.label_tag }}</th> - <td><ul class="errorlist">{{ form.feed_ignore_pre_if_stable.errors }}</ul>{{ form.feed_ignore_pre_if_stable }}</td> + <td>{{ form.feed_ignore_pre_if_stable }}</td> </tr> </table> @@ -78,19 +78,19 @@ <thead><tr><th>Mail settings</th></tr></thead> <tr> <th>{{ form.email_activated.label_tag }}</th> - <td><ul class="errorlist">{{ form.email_activated.errors }}</ul>{{ form.email_activated }}</td> + <td>{{ form.email_activated }}</td> </tr> <tr> <th>{{ form.email_every.label_tag }}</th> - <td><ul class="errorlist">{{ form.email_every.errors }}</ul>{{ form.email_every }}</td> + <td>{{ form.email_every }}</td> </tr> <tr> <th>{{ form.email_ignore_pre.label_tag }}</th> - <td><ul class="errorlist">{{ form.email_ignore_pre.errors }}</ul>{{ form.email_ignore_pre }}</td> + <td>{{ form.email_ignore_pre }}</td> </tr> <tr> <th>{{ form.email_ignore_pre_if_stable.label_tag }}</th> - <td><ul class="errorlist">{{ form.email_ignore_pre_if_stable.errors }}</ul>{{ form.email_ignore_pre_if_stable }}</td> + <td>{{ form.email_ignore_pre_if_stable }}</td> </tr> <tr><td> </td><td></td></tr> <tr> |