Commit 77511604c06df60ed0bf3063e837b699e8761872
1 parent
3ecb7ab3
Exists in
master
and in
3 other branches
Showing the categories subjects
Showing
2 changed files
with
9 additions
and
4 deletions
Show diff stats
subjects/templates/subjects/create.html
... | ... | @@ -93,10 +93,14 @@ |
93 | 93 | {% endif %} |
94 | 94 | |
95 | 95 | {% endfor %} |
96 | - | |
96 | + <div class="row text-center"> | |
97 | + <input type="submit" value="{% trans 'Save' %}" class="btn btn-primary btn-raised" /> | |
98 | + </div> | |
97 | 99 | </form> |
98 | 100 | </div> |
99 | 101 | </div> |
102 | + <br clear="all" /> | |
103 | + <br clear="all" /> | |
100 | 104 | |
101 | 105 | <script type="text/javascript"> |
102 | 106 | $('#id_professor').multiSelect({ | ... | ... |
subjects/templates/subjects/list.html
... | ... | @@ -97,10 +97,11 @@ |
97 | 97 | {{category.description|safe}} |
98 | 98 | |
99 | 99 | {% if user in category.coordinators.all %} |
100 | - <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "create new subject" %} </button></a> | |
100 | + <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "create new subject" %} </button></a> | |
101 | 101 | {% endif %} |
102 | - <div class="panel-group" id="subject-accordion" role="tablist" aria-multiselectable="true"> | |
103 | - {% for subject in category.subjects %} | |
102 | + | |
103 | + <div class="panel-group" id="subject-accordion" role="tablist" aria-multiselectable="true"> | |
104 | + {% for subject in category.subject_category.all %} | |
104 | 105 | {% include "subjects/subject_card.html" %} |
105 | 106 | {% endfor %} |
106 | 107 | </div> | ... | ... |