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,7 +24,7 @@ | ||
24 | </div> | 24 | </div> |
25 | {% endfor %} | 25 | {% endfor %} |
26 | {% endif %} | 26 | {% endif %} |
27 | - | 27 | + |
28 | <div class="card"> | 28 | <div class="card"> |
29 | <div class="card-content"> | 29 | <div class="card-content"> |
30 | <div class="card-body"> | 30 | <div class="card-body"> |
@@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
34 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> | 34 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> |
35 | <label for="{{ field.auto_id }}">{{ field.label }}</label> | 35 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
36 | {% if field.auto_id == 'id_birth_date' %} | 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 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | 38 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
39 | {% elif field.auto_id == 'id_image' %} | 39 | {% elif field.auto_id == 'id_image' %} |
40 | {% render_field field class='form-control input-sm' %} | 40 | {% render_field field class='form-control input-sm' %} |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | </label> | 53 | </label> |
54 | </div> | 54 | </div> |
55 | {% else %} | 55 | {% else %} |
56 | - {% render_field field class='form-control input-sm' %} | 56 | + {% render_field field class='form-control' %} |
57 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | 57 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
58 | {% endif %} | 58 | {% endif %} |
59 | {% if field.errors.length > 0 %} | 59 | {% if field.errors.length > 0 %} |