Commit 8121a1ada04dc3b90d604af2718d944036a913f5

Authored by Gustavo
1 parent 423e7028

Including mandatory field signaling in create category

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
categories/templates/categories/_form.html
... ... @@ -26,7 +26,12 @@
26 26 {% else %}
27 27 <div class="form-group {% if form.has_error %} has-error {% endif %} is-fileinput">
28 28 {% if field.auto_id != 'id_visible' %}
29   - <label for="{{ field.auto_id }}">{{ field.label }}</label>
  29 + {% if field.field.required %}
  30 + <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
  31 + {% else %}
  32 + <label for="{{ field.auto_id }}">{{ field.label }}</label>
  33 +
  34 + {% endif %}
30 35 {% endif %}
31 36 {% if field.auto_id == 'id_visible' %}
32 37 <div class="checkbox">
... ... @@ -115,4 +120,4 @@
115 120 btn.switchClass("fa-angle-down", "fa-angle-right", 250, "easeInOutQuad");
116 121 }
117 122 });
118   -</script>
119 123 \ No newline at end of file
  124 +</script>
... ...