Commit 22aaa17e935a36767d48cf8dbe480b81dc27a399
1 parent
8a5516dc
Exists in
master
and in
5 other branches
add subject was showing for students , fixed
Showing
1 changed file
with
8 additions
and
4 deletions
Show diff stats
courses/templates/course/view.html
... | ... | @@ -56,7 +56,7 @@ |
56 | 56 | <div class="col-xs-8 col-md-10 titleTopic"> |
57 | 57 | <h4>{{course}}</h4> |
58 | 58 | </div> |
59 | - {% if user|has_role:'professor, system_admin' %} | |
59 | + {% if user|has_role:'professor' or user|has_role:'system_admin' %} | |
60 | 60 | <div class="col-xs-4 col-md-2" id="divMoreActions"> |
61 | 61 | <div class="btn-group"> |
62 | 62 | <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="moreActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
... | ... | @@ -225,9 +225,13 @@ |
225 | 225 | <a href="{% url 'course:view_subject' subject.slug %}" class="btn btn-raised btn-default center-block">{% trans 'View Subject' %}<div class="ripple-container"></div></a> |
226 | 226 | </div> |
227 | 227 | </div> |
228 | -<div class="form-group"> | |
229 | - <a href="{% url 'course:create_subject' subject.slug %}" data-toggle="modal" data-target="" class="btn btn-primary btn-lg btn-block btn-raised">{% trans 'Create Subject' %}<div class="ripple-container"></div></a> | |
230 | -</div> | |
228 | +{% if user|has_role:'professor' or user|has_role:'system_admin' %} | |
229 | + | |
230 | + <div class="form-group"> | |
231 | + <a href="{% url 'course:create_subject' subject.slug %}" data-toggle="modal" data-target="" class="btn btn-primary btn-lg btn-block btn-raised">{% trans 'Create Subject' %}<div class="ripple-container"></div></a> | |
232 | + </div> | |
233 | +{% endif %} | |
234 | + | |
231 | 235 | |
232 | 236 | {% endfor %} |
233 | 237 | ... | ... |