Commit 77e5d8097d3bbb5b64d3483af3729f76fdfdbc86
1 parent
581307ef
Exists in
master
and in
3 other branches
adding invisble choice for template
Showing
4 changed files
with
6 additions
and
6 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
categories/templates/categories/list.html
| ... | ... | @@ -96,8 +96,8 @@ |
| 96 | 96 | </div> |
| 97 | 97 | </div> |
| 98 | 98 | {% elif request.user in category.coordinators.all or request.user.is_staff %} |
| 99 | - <div class="panel panel-invisible special-panel"> | |
| 100 | - <div class="panel-heading"> | |
| 99 | + <div class="panelspecial-panel"> | |
| 100 | + <div class="panel-heading panel-invisible "> | |
| 101 | 101 | <div class="row"> |
| 102 | 102 | <div class="col-md-12 category-header"> |
| 103 | 103 | <h4 class="panel-title"> | ... | ... |
subjects/templates/subjects/list.html
| ... | ... | @@ -98,8 +98,8 @@ |
| 98 | 98 | </div> |
| 99 | 99 | </div> |
| 100 | 100 | {% elif request.user in category.coordinators.all %} |
| 101 | - <div class="panel panel-danger special-panel"> | |
| 102 | - <div class="panel-heading"> | |
| 101 | + <div class="panel special-panel"> | |
| 102 | + <div class="panel-heading panel-invisible"> | |
| 103 | 103 | <div class="row"> |
| 104 | 104 | <div class="col-md-12 category-header"> |
| 105 | 105 | <h4 class="panel-title"> | ... | ... |
subjects/views.py
| ... | ... | @@ -73,7 +73,7 @@ class IndexView(LoginRequiredMixin, ListView): |
| 73 | 73 | |
| 74 | 74 | if not self.request.user.is_staff: |
| 75 | 75 | if not self.kwargs.get('option'): |
| 76 | - categories = Category.objects.filter(visible=True) | |
| 76 | + categories = Category.objects.all() | |
| 77 | 77 | |
| 78 | 78 | for category in categories: |
| 79 | 79 | category.subjects = Subject.objects.filter(category= category) | ... | ... |