fixed translation, and changed tabs to spaces, and change it so the user can view...
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 21 May 2013 15:51:21 +0000 (08:51 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Tue, 21 May 2013 15:51:21 +0000 (08:51 -0700)
mediagoblin/edit/forms.py
mediagoblin/templates/mediagoblin/edit/change_pass.html
mediagoblin/templates/mediagoblin/edit/edit_account.html

index c67180e9915c826470ae7b364627f06bbf5c65c3..3b2486de5aeb5e13ed55da2dbc02173b2309dc97 100644 (file)
@@ -103,4 +103,5 @@ class ChangePassForm(wtforms.Form):
     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")
index a621751ffcee4a0fc7fdac813fd55b1f7585b6dc..ff909b077d27c566a26a2679e5a171b31f17236b 100644 (file)
         {%- endtrans -%}
       </h1>
       {{ wtforms_util.render_divs(form) }}
-                       {{ csrf_token }}
+      {{ csrf_token }}
       <div class="form_submit_buttons">
         <input type="submit" value="{% trans %}Save{% endtrans %}"
-                               class="button_form" />
-                       </div>
-               </div>
-       </form>
+        class="button_form" />
+      </div>
+    </div>
+  </form>
 {% endblock %}
 
 
index dfb216e558baf8d767ee79949b70a614225531bc..4c4aaf95516c0e49323910916c5e681528ecc908 100644 (file)
         {%- 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>
@@ -53,7 +53,7 @@
       {{- 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>