Commit 240cf60364a238ce2ab46278ebf9d69d3cf53281

Authored by Zambom
1 parent 090c0fef

Resolving input date in edit profile [Issue: #226]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
users/templates/users/edit_profile.html
... ... @@ -36,7 +36,7 @@
36 36 <label for="{{ field.auto_id }}">{{ field.label }}</label>
37 37 {% endif %}
38 38 {% if field.auto_id == 'id_birth_date' %}
39   - <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 }}">
  39 + <input type="text" class="form-control date-picker"name="{{field.name}}" value="{{field.value|date:'SHORT_DATE_FORMAT'}}" min="{{now|date:'SHORT_DATE_FORMAT'}}" id="{{ field.auto_id }}">
40 40 <span id="helpBlock" class="help-block">{{ field.help_text }}</span>
41 41 {% elif field.auto_id == 'id_image' or field.auto_id == 'id_curriculum'%}
42 42 {% render_field field class='form-control input-sm' %}
... ...