Commit e5b21b483b31afacd8bbea5498699142b1d0b8ed
1 parent
abb701f8
Exists in
master
and in
2 other branches
Not displaying the labels of the cropfields
Showing
1 changed file
with
15 additions
and
7 deletions
Show diff stats
users/templates/users/_form.html
... | ... | @@ -8,9 +8,9 @@ |
8 | 8 | {% if field.auto_id == 'id_image' %} |
9 | 9 | {% if field.field.required %} |
10 | 10 | <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> |
11 | - {% else %} | |
11 | + {% else %} | |
12 | 12 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
13 | - {% endif %} | |
13 | + {% endif %} | |
14 | 14 | {% render_field field class='form-control' %} |
15 | 15 | <div class="input-group"> |
16 | 16 | <input type="text" readonly="" class="form-control" id="pic_holder" placeholder="{% trans 'Choose your photo...' %}"> |
... | ... | @@ -22,10 +22,11 @@ |
22 | 22 | </div> |
23 | 23 | {% elif field.auto_id == 'id_description' %} |
24 | 24 | {% if field.field.required %} |
25 | - <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> | |
26 | - {% else %} | |
27 | - <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
28 | - {% endif %} | |
25 | + <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> | |
26 | + {% else %} | |
27 | + | |
28 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
29 | + {% endif %} | |
29 | 30 | {% render_field field class='form-control text_wysiwyg' %} |
30 | 31 | {% elif field.auto_id == 'id_is_staff' or field.auto_id == 'id_is_active' %} |
31 | 32 | <div class="checkbox"> |
... | ... | @@ -37,8 +38,15 @@ |
37 | 38 | {% if field.field.required %} |
38 | 39 | <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> |
39 | 40 | {% else %} |
40 | - <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
41 | + {% if field.auto_id == 'id_x' or field.auto_id == 'id_y' or field.auto_id == 'id_width' or field.auto_id == 'id_height'%} | |
42 | + | |
43 | + {% else %} | |
44 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
45 | + {% endif %} | |
46 | + | |
47 | + | |
41 | 48 | {% endif %} |
49 | + | |
42 | 50 | {% render_field field class='form-control' %} |
43 | 51 | {% endif %} |
44 | 52 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ... | ... |