Commit 382dede66ff90e42223f2e6933a43da01a426ef9
1 parent
089e4fda
Exists in
master
and in
5 other branches
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,7 +31,7 @@ | ||
31 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> | 31 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> |
32 | <label for="{{ field.auto_id }}">{{ field.label }}</label> | 32 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
33 | {% if field.auto_id == 'id_birth_date' %} | 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 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | 35 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
36 | {% elif field.auto_id == 'id_image' %} | 36 | {% elif field.auto_id == 'id_image' %} |
37 | {% render_field field class='form-control input-sm' %} | 37 | {% render_field field class='form-control input-sm' %} |
@@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
50 | </label> | 50 | </label> |
51 | </div> | 51 | </div> |
52 | {% else %} | 52 | {% else %} |
53 | - {% render_field field class='form-control input-sm' %} | 53 | + {% render_field field class='form-control' %} |
54 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | 54 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
55 | {% endif %} | 55 | {% endif %} |
56 | {% if field.errors.length > 0 %} | 56 | {% if field.errors.length > 0 %} |