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>
$(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")) {
{{- 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 %}