Commit 721f4d9c454231c10de356a4d7e15a4928a4215e
1 parent
7cbc44c7
Exists in
master
and in
5 other branches
input-sm class
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
users/templates/users/update.html
... | ... | @@ -24,7 +24,7 @@ |
24 | 24 | </div> |
25 | 25 | {% endfor %} |
26 | 26 | {% endif %} |
27 | - | |
27 | + | |
28 | 28 | <div class="card"> |
29 | 29 | <div class="card-content"> |
30 | 30 | <div class="card-body"> |
... | ... | @@ -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 | - {% render_field field class='form-control input-sm' type='date' %} | |
37 | + <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 }}"> | |
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' %} |
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | </label> |
54 | 54 | </div> |
55 | 55 | {% else %} |
56 | - {% render_field field class='form-control input-sm' %} | |
56 | + {% render_field field class='form-control' %} | |
57 | 57 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
58 | 58 | {% endif %} |
59 | 59 | {% if field.errors.length > 0 %} | ... | ... |