Merge remote-tracking branch 'refs/remotes/spaetz/trac_475_email_notification_checkbox'

This commit is contained in:
Christopher Allan Webber 2012-11-13 08:55:14 -06:00
commit ee62c51d79
2 changed files with 9 additions and 6 deletions

View File

@ -68,8 +68,7 @@ class EditAccountForm(wtforms.Form):
[wtforms.validators.Length(min=6, max=30)],
id="password")
wants_comment_notification = wtforms.BooleanField(
_(''),
description=_("Email me when others comment on my media"))
label=_("Email me when others comment on my media"))
class EditAttachmentsForm(wtforms.Form):

View File

@ -32,8 +32,7 @@
{% block mediagoblin_content %}
<form action="{{ request.urlgen('mediagoblin.edit.account') }}?username={{
<form action="{{ request.urlgen('mediagoblin.edit.account') }}?username={{
user.username }}"
method="POST" enctype="multipart/form-data">
<div class="form_box edit_box">
@ -42,11 +41,16 @@
Changing {{ username }}'s account settings
{%- endtrans %}
</h1>
{{ wtforms_util.render_divs(form) }}
{{ wtforms_util.render_field_div(form.old_password) }}
{{ wtforms_util.render_field_div(form.new_password) }}
<div class="form_field_input">
<p>{{ form.wants_comment_notification }}
{{ form.wants_comment_notification.label }}</p>
</div>
<div class="form_submit_buttons">
<input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
{{ csrf_token }}
</div>
</div>
</form>
{% endblock %}
{% endblock %}