Commit 116f13bfc2eeb26a1474fb955c0ae401643bbd6f

Authored by Filipe Medeiros
1 parent 2a808bd8

Fixing bug on create category [Issue #414]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
courses/templates/category/create.html
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 <label for="{{ field.auto_id }}">{{ field.label }}</label> 19 <label for="{{ field.auto_id }}">{{ field.label }}</label>
20 {% render_field field class='form-control input-sm' %} 20 {% render_field field class='form-control input-sm' %}
21 </div> 21 </div>
22 - {% if field.errors.length > 0 %} 22 + {% if field.errors%}
23 <div class="alert alert-danger alert-dismissible" role="alert"> 23 <div class="alert alert-danger alert-dismissible" role="alert">
24 <ul> 24 <ul>
25 {% for error in field.errors %} 25 {% for error in field.errors %}