Commit 5c3cbd5241d9abc7d3ebdc30b2f735b82d1dd11b
1 parent
17f9ba84
Exists in
master
and in
3 other branches
Including mandatory fields signaling in the groups
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
students_group/templates/groups/_form.html
... | ... | @@ -25,8 +25,11 @@ |
25 | 25 | </div> |
26 | 26 | {% else %} |
27 | 27 | <div class="form-group {% if form.has_error %} has-error {% endif %} is-fileinput"> |
28 | - <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
29 | - | |
28 | + {% if field.field.required %} | |
29 | + <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> | |
30 | + {% else %} | |
31 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
32 | + {% endif %} | |
30 | 33 | {% if field.auto_id == 'id_description' %} |
31 | 34 | {% render_field field class='form-control text_wysiwyg' %} |
32 | 35 | {% else %} | ... | ... |