Commit 48ad66ea251a9af32c2aa8c8033a6da1f693de85
1 parent
5f13c2cc
Exists in
master
and in
3 other branches
Removing subjects list from manage categories page
Showing
1 changed file
with
0 additions
and
20 deletions
Show diff stats
categories/templates/categories/list.html
| ... | ... | @@ -91,16 +91,6 @@ |
| 91 | 91 | {% endif %} |
| 92 | 92 | |
| 93 | 93 | {{category.description|safe}} |
| 94 | - | |
| 95 | - {% if user in category.coordinators.all %} | |
| 96 | - <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> | |
| 97 | - {% endif %} | |
| 98 | - | |
| 99 | - <div class="panel-group subject-group" id="{{ category.slug }}-accordion" role="tablist" aria-multiselectable="true"> | |
| 100 | - {% for subject in category.subject_category.all %} | |
| 101 | - {% include "subjects/subject_card.html" %} | |
| 102 | - {% endfor %} | |
| 103 | - </div> | |
| 104 | 94 | </div> |
| 105 | 95 | </div> |
| 106 | 96 | {% elif request.user in category.coordinators.all or request.user.is_staff %} |
| ... | ... | @@ -148,16 +138,6 @@ |
| 148 | 138 | {% endif %} |
| 149 | 139 | |
| 150 | 140 | {{category.description|safe}} |
| 151 | - | |
| 152 | - {% if user in category.coordinators.all %} | |
| 153 | - <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> | |
| 154 | - {% endif %} | |
| 155 | - | |
| 156 | - <div class="panel-group subject-group" id="{{ category.slug }}-accordion" role="tablist" aria-multiselectable="true"> | |
| 157 | - {% for subject in category.subject_category.all %} | |
| 158 | - {% include "subjects/subject_card.html" %} | |
| 159 | - {% endfor %} | |
| 160 | - </div> | |
| 161 | 141 | </div> |
| 162 | 142 | </div> |
| 163 | 143 | {% endif %} | ... | ... |