Commit 57ec3dfddca29cd52a38f724175bd5922f8f548d
1 parent
f91fd3ca
Exists in
master
and in
5 other branches
udpated template creat category course to defalut template
Showing
1 changed file
with
24 additions
and
24 deletions
Show diff stats
courses/templates/category/create.html
@@ -42,29 +42,29 @@ | @@ -42,29 +42,29 @@ | ||
42 | {% endblock %} | 42 | {% endblock %} |
43 | 43 | ||
44 | {% block content %} | 44 | {% block content %} |
45 | - | ||
46 | - <form method="post" action=""> | ||
47 | - {% csrf_token %} | ||
48 | - {% for field in form %} | ||
49 | - <div class="form-group {% if form.has_error %}has-error{% endif %}"> | ||
50 | - <label for="{{ field.auto_id }}">{{ field.label }}</label> | ||
51 | - {% render_field field class='form-control input-sm' %} | ||
52 | - </div> | ||
53 | - <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
54 | - {% if field.errors.length > 0 %} | ||
55 | - <div class="alert alert-danger alert-dismissible" role="alert"> | ||
56 | - <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
57 | - <span aria-hidden="true">×</span> | ||
58 | - </button> | ||
59 | - <ul> | ||
60 | - {% for error in field.errors %} | ||
61 | - <li>{{ error }}</li> | ||
62 | - {% endfor %} | ||
63 | - </ul> | ||
64 | - </div> | 45 | + <div class="card card-content"> |
46 | + <div class="card-body"> | ||
47 | + <form method="post" action="">{% csrf_token %} | ||
48 | + {% for field in form %} | ||
49 | + <div class="form-group {% if form.has_error %}has-error{% endif %}"> | ||
50 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | ||
51 | + {% render_field field class='form-control input-sm' %} | ||
52 | + </div> | ||
53 | + {% if field.errors.length > 0 %} | ||
54 | + <div class="alert alert-danger alert-dismissible" role="alert"> | ||
55 | + <ul> | ||
56 | + {% for error in field.errors %} | ||
57 | + <li>{{ error }}</li> | ||
58 | + {% endfor %} | ||
59 | + </ul> | ||
60 | + </div> | ||
61 | + </div> | ||
62 | + {% endif %} | ||
63 | + {% endfor %} | ||
64 | + <div class="row text-center"> | ||
65 | + <input type="submit" value="{% trans 'Save' %}" class="btn btn-sm btn-success" /> | ||
66 | + </div> | ||
67 | + </form> | ||
65 | </div> | 68 | </div> |
66 | - {% endif %} | ||
67 | - {% endfor %} | ||
68 | - <input type="submit" value="{% trans 'Save' %}" class="btn btn-sm btn-success" /> | ||
69 | - </form> | 69 | + </div> |
70 | {% endblock %} | 70 | {% endblock %} |