Ticket #996: issue_996_rev.patch

File issue_996_rev.patch, 1.1 KB (added by Vijeth, 7 years ago)

modify render div in util/wtforms

  • mediagoblin/templates/mediagoblin/utils/wtforms.html

    From 20e60ec9e61ba2a7783677c670a17a01a207dd9d Mon Sep 17 00:00:00 2001
    From: vijeth-aradhya <vijthaaa@gmail.com>
    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
    ---
     mediagoblin/templates/mediagoblin/utils/wtforms.html | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html
    index 7e16708..e292125 100644
    a b  
    4040    {{- render_label_p(field) }}
    4141    <div class="form_field_input">
    4242      {% if autofocus_first %}
    43         {{ field(autofocus=True) }}
     43        {{ field(autofocus=True, style="width:100%;") }}
    4444      {% else %}
    45         {{ field }}
     45        {{ field(style="width:100%;") }}
    4646      {% endif %}
    4747      {%- if field.errors -%}
    4848        {% for error in field.errors %}