Commit 22aaa17e935a36767d48cf8dbe480b81dc27a399

Authored by fbormann
1 parent 8a5516dc

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,7 +56,7 @@
56 <div class="col-xs-8 col-md-10 titleTopic"> 56 <div class="col-xs-8 col-md-10 titleTopic">
57 <h4>{{course}}</h4> 57 <h4>{{course}}</h4>
58 </div> 58 </div>
59 - {% if user|has_role:'professor, system_admin' %} 59 + {% if user|has_role:'professor' or user|has_role:'system_admin' %}
60 <div class="col-xs-4 col-md-2" id="divMoreActions"> 60 <div class="col-xs-4 col-md-2" id="divMoreActions">
61 <div class="btn-group"> 61 <div class="btn-group">
62 <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="moreActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 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,9 +225,13 @@
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> 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 </div> 226 </div>
227 </div> 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 {% endfor %} 236 {% endfor %}
233 237