Commit e1c946a4c06fdccfcff518632646eb058325e821

Authored by Gustavo Bernardo
1 parent e4a76797

Error message padronizated [Issue:#414]

Showing 1 changed file with 5 additions and 7 deletions   Show diff stats
courses/templates/category/create.html
... ... @@ -27,13 +27,11 @@
27 27 {% render_field field class='form-control' %}
28 28 </div>
29 29 {% if field.errors%}
30   - <div class="alert alert-danger alert-dismissible" role="alert">
31   - <ul>
32   - {% for error in field.errors %}
33   - <li>{{ error }}</li>
34   - {% endfor %}
35   - </ul>
36   - </div>
  30 + {% for error in field.errors %}
  31 + <script type="text/javascript">
  32 + alertify.error('{{error}}');
  33 + </script>
  34 + {% endfor %}
37 35 </div>
38 36 {% endif %}
39 37 {% endfor %}
... ...