Ticket #996: issue_996.patch

File issue_996.patch, 2.8 KB (added by Vijeth, 8 years ago)

Issue 996 : Fixes fields' width consistency

  • mediagoblin/templates/mediagoblin/edit/edit_profile.html

    From cb328ee2d6a4ead8596f5b590560033187c1945e Mon Sep 17 00:00:00 2001
    From: vijeth-aradhya <vijthaaa@gmail.com>
    Date: Thu, 12 Jan 2017 22:07:58 +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 is 100%
    
    Fixes #996
    ---
     .../templates/mediagoblin/edit/edit_profile.html   | 45 ++++++++++++++++++++--
     1 file changed, 42 insertions(+), 3 deletions(-)
    
    diff --git a/mediagoblin/templates/mediagoblin/edit/edit_profile.html b/mediagoblin/templates/mediagoblin/edit/edit_profile.html
    index 163fe18..c03eaae 100644
    a b  
    1717#}
    1818{% extends "mediagoblin/base.html" %}
    1919
    20 {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
    21 
    2220{% block title -%}
    2321  {% trans username=user.username -%}
    2422    Editing {{ username }}'s profile
     
    3533          Editing {{ username }}'s profile
    3634        {%- endtrans %}
    3735      </h1>
    38       {{ wtforms_util.render_divs(form) }}
     36      <p class="form_field_label">
     37        {{ form.bio.label }}
     38      </p>
     39      <div class="form_field_input" style="width:100%">
     40        {{ form.bio(style="width:100%;") }}
     41        {%- if form.bio.errors -%}
     42          {% for error in form.bio.errors %}
     43            <p class="form_field_error">{{ error }}</p>
     44          {% endfor %}
     45        {%- endif %}
     46        {%- if form.bio.description %}
     47          <p class="form_field_description">{{ form.bio.description|safe }}</p>
     48        {%- endif %}
     49      </div>
     50      <p class="form_field_label">
     51        {{ form.url.label }}
     52      </p>
     53      <div class="form_field_input" style="width:100%">
     54        {{ form.url(style="width:100%;") }}
     55        {%- if form.url.errors -%}
     56          {% for error in form.url.errors %}
     57            <p class="form_field_error">{{ error }}</p>
     58          {% endfor %}
     59        {%- endif %}
     60        {%- if form.url.description %}
     61          <p class="form_field_description">{{ form.url.description|safe }}</p>
     62        {%- endif %}
     63      </div>
     64      <p class="form_field_label">
     65        {{ form.location.label }}
     66      </p>
     67      <div class="form_field_input" style="width:100%">
     68        {{ form.location(style="width:100%;") }}
     69        {%- if form.location.errors -%}
     70          {% for error in form.location.errors %}
     71            <p class="form_field_error">{{ error }}</p>
     72          {% endfor %}
     73        {%- endif %}
     74        {%- if form.location.description %}
     75          <p class="form_field_description">{{ form.location.description|safe }}</p>
     76        {%- endif %}
     77      </div>
    3978      <div class="form_submit_buttons">
    4079        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
    4180        {{ csrf_token }}