new_password = wtforms.PasswordField(
_('New password'),
[wtforms.validators.Required(),
- wtforms.validators.Length(min=6, max=30)])
+ wtforms.validators.Length(min=6, max=30)],
+ id="password")
{%- trans username=user.username -%}
Changing {{ username }}'s account settings
{%- endtrans -%}
- </h1>
- <p>{% trans %}Change your{% endtrans %}
- <a href="{{ request.urlgen('mediagoblin.edit.pass') }}">
- {% trans %}password.{% endtrans %}
- </a>
- </p>
+ </h1>
+ <p>
+ <a href="{{ request.urlgen('mediagoblin.edit.pass') }}">
+ {% trans %}Change your password.{% endtrans %}
+ </a>
+ </p>
<div class="form_field_input">
<p>{{ form.wants_comment_notification }}
{{ wtforms_util.render_label(form.wants_comment_notification) }}</p>
{{- wtforms_util.render_field_div(form.license_preference) }}
<div class="form_submit_buttons">
<input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
- {{ csrf_token }}
+ {{ csrf_token }}
</div>
</div>
</form>