Commit 155d4bbb5eb15b66e34d14291485d5056c3069c8
1 parent
a4734670
Exists in
master
and in
5 other branches
New fields in template #185
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
users/templates/users/update.html
... | ... | @@ -34,7 +34,7 @@ |
34 | 34 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> |
35 | 35 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
36 | 36 | {% if field.auto_id == 'id_birth_date' %} |
37 | - <input type="text" class="form-control date-picker"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 }}"> | |
37 | + <input type="text" class="form-control date-picker"name="{{field.name}}" value="{% if field.value.year %}{{field.value|date:'m/d/Y'}}{% else %}{{field.value}}{% endif %}" min="{{now|date:'m/d/Y'}}" id="{{ field.auto_id }}"> | |
38 | 38 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
39 | 39 | {% elif field.auto_id == 'id_image' %} |
40 | 40 | {% render_field field class='form-control input-sm' %} | ... | ... |