From 96f66a5fd410d05e22a4945b6d4aa7417d0e1ec3 Mon Sep 17 00:00:00 2001 From: vijeth-aradhya Date: Fri, 20 Jan 2017 09:16:42 +0530 Subject: [PATCH] edit_profile.html: Consistency in the width of input fields The width of all the input fields in user profile edit form (also forms which wtforms render div function) is 100% Fixes #996 Signed-off-by: Andrew Browning --- mediagoblin/static/js/show_password.js | 2 +- mediagoblin/templates/mediagoblin/utils/wtforms.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mediagoblin/static/js/show_password.js b/mediagoblin/static/js/show_password.js index b3fbc862..12935124 100644 --- a/mediagoblin/static/js/show_password.js +++ b/mediagoblin/static/js/show_password.js @@ -18,7 +18,7 @@ $(document).ready(function(){ //Create a duplicate password field. We could change the input type dynamically, but this angers the IE gods (not just IE6). - $("#password").after(''); + $("#password").after(''); $('#password_clear').hide(); $('#password_boolean').click(function(){ if($('#password_boolean').prop("checked")) { diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html index 7e16708c..e2921258 100644 --- a/mediagoblin/templates/mediagoblin/utils/wtforms.html +++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html @@ -40,9 +40,9 @@ {{- render_label_p(field) }}
{% if autofocus_first %} - {{ field(autofocus=True) }} + {{ field(autofocus=True, style="width:100%;") }} {% else %} - {{ field }} + {{ field(style="width:100%;") }} {% endif %} {%- if field.errors -%} {% for error in field.errors %}