aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvijeth-aradhya <vijthaaa@gmail.com>2017-01-20 09:16:42 +0530
committerAndrew Browning <ayleph@thisshitistemp.com>2017-02-14 00:23:58 -0500
commit96f66a5fd410d05e22a4945b6d4aa7417d0e1ec3 (patch)
tree455b5e20682bbacbaa21e445c4a0e73a610991ae
parentdf2de8e2d1205fc1725b017343872a77f34fcd7f (diff)
downloadmediagoblin-96f66a5fd410d05e22a4945b6d4aa7417d0e1ec3.tar.lz
mediagoblin-96f66a5fd410d05e22a4945b6d4aa7417d0e1ec3.tar.xz
mediagoblin-96f66a5fd410d05e22a4945b6d4aa7417d0e1ec3.zip
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 <ayleph@thisshitistemp.com>
-rw-r--r--mediagoblin/static/js/show_password.js2
-rw-r--r--mediagoblin/templates/mediagoblin/utils/wtforms.html4
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('<input type="text" value="" name="password_clear" id="password_clear" /><label><input type="checkbox" id="password_boolean" />Show password</label>');
+ $("#password").after('<input type="text" value="" name="password_clear" id="password_clear" style="width:100%" /><label><br/><input type="checkbox" id="password_boolean" />Show password</label>');
$('#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) }}
<div class="form_field_input">
{% 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 %}