Commit 382dede66ff90e42223f2e6933a43da01a426ef9

Authored by ailsoncgt
1 parent 089e4fda

Fixing date error

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
users/templates/users/edit_profile.html
... ... @@ -31,7 +31,7 @@
31 31 <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput">
32 32 <label for="{{ field.auto_id }}">{{ field.label }}</label>
33 33 {% if field.auto_id == 'id_birth_date' %}
34   - {% render_field field class='form-control input-sm' type='date' %}
  34 + <input type="date" class="form-control"name="{{field.name}}" value="{% if field.value.year %}{{field.value|date:'Y-m-d'}}{% else %}{{field.value}}{% endif %}" min="{{now|date:'Y-m-d'}}" id="{{ field.auto_id }}">
35 35 <span id="helpBlock" class="help-block">{{ field.help_text }}</span>
36 36 {% elif field.auto_id == 'id_image' %}
37 37 {% render_field field class='form-control input-sm' %}
... ... @@ -50,7 +50,7 @@
50 50 </label>
51 51 </div>
52 52 {% else %}
53   - {% render_field field class='form-control input-sm' %}
  53 + {% render_field field class='form-control' %}
54 54 <span id="helpBlock" class="help-block">{{ field.help_text }}</span>
55 55 {% endif %}
56 56 {% if field.errors.length > 0 %}
... ...