Commit 847f2bed2974ec1a80cb0471a1646617b30eb08a
1 parent
4418a020
Exists in
master
and in
3 other branches
added sidebar menu items and CSS classes
Showing
3 changed files
with
50 additions
and
23 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
1 | + | |
2 | +/* sidebar menu */ | |
3 | + | |
4 | +#sidebar-menu{ | |
5 | + margin-left: 10%; | |
6 | +} | |
7 | +#sidebar-menu > .item{ | |
8 | + font-size: 45px; | |
9 | + background-color: #26A69A; | |
10 | + color: white; | |
11 | + width: 50%; | |
12 | + margin-bottom: 3%; | |
13 | +} | |
14 | + | |
15 | +#sidebar-menu > .item:hover{ | |
16 | + | |
17 | + background-color: #00695C; | |
18 | + | |
19 | +} | |
20 | + | |
21 | + | |
22 | +#sidebar-menu > .item i { | |
23 | + margin-left: 10%; | |
24 | +} | |
25 | +/* side bar menu ends*/ | |
26 | + | |
1 | 27 | .clearfix{ |
2 | 28 | clear: both; |
3 | 29 | } | ... | ... |
amadeus/templates/base.html
... | ... | @@ -129,28 +129,29 @@ |
129 | 129 | <div class="row"> |
130 | 130 | <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 col-xl-2"> |
131 | 131 | {% block sidebar %} |
132 | - <div class="panel panel-primary"> | |
133 | - <div class="panel-heading"> | |
134 | - <h4>{% trans 'Menu' %}</h4> | |
135 | - </div> | |
136 | - <div class="panel-body menu-lateral"> | |
137 | - <ul class="nav nav-pills nav-stacked"> | |
138 | - <li> | |
139 | - <a href="#menu_courses" class="accordion" data-toggle="collapse">{% trans 'Courses' %}<span class="pull-right glyphicon glyphicon-chevron-down"></span></a> | |
140 | - <div id="menu_courses" class="collapse"> | |
141 | - <ul class="nav nav-pill nav-stacked accordion_list"> | |
142 | - <li><a href="#"><i class="fa fa-book" aria-hidden="true"></i> {% trans 'My Courses' %} </a></li> | |
143 | - <li><a href="#"><i class="fa fa-globe" aria-hidden="true"></i> {% trans 'All Courses' %} </a></li> | |
144 | - {% if user|has_role:'system_admin' or user|has_role:'professor'%} | |
145 | - <li><a href="#"><i class="fa fa-list" aria-hidden="true"></i> {% trans 'List Category' %}</a></li> | |
146 | - <li><a href="#">{% trans 'Create Course' %}</a></li> | |
147 | - {% endif %} | |
148 | - </ul> | |
149 | - </div> | |
150 | - </li> | |
151 | - </ul> | |
152 | - </div> | |
153 | - </div> | |
132 | + <ul id="sidebar-menu"> | |
133 | + <li class="item"> | |
134 | + <i class="fa fa-graduation-cap" aria-hidden="true"></i> | |
135 | + </li> | |
136 | + <li class="item"> | |
137 | + <i class="fa fa-list" aria-hidden="true"></i> | |
138 | + </li> | |
139 | + <li class="item"> | |
140 | + <i class="fa fa-envelope-o" aria-hidden="true"></i> | |
141 | + </li> | |
142 | + | |
143 | + <li class="item"> | |
144 | + <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> | |
145 | + </li> | |
146 | + | |
147 | + <li class="item"> | |
148 | + <i class="fa fa-bar-chart" aria-hidden="true"></i> | |
149 | + </li> | |
150 | + | |
151 | + | |
152 | + | |
153 | + | |
154 | + </ul> | |
154 | 155 | {% endblock %} |
155 | 156 | </div> |
156 | 157 | <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 col-xl-10"> | ... | ... |
courses/templates/courses/home_admin_content.html