Commit bea6c49b4fe6a673617848758dd6e3fc17665000
1 parent
13c5401a
Exists in
master
and in
5 other branches
repicate course #189
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
core/static/css/base/amadeus.css
@@ -398,7 +398,7 @@ ul, li { | @@ -398,7 +398,7 @@ ul, li { | ||
398 | /* Icon Topic */ | 398 | /* Icon Topic */ |
399 | .divMoreActions {text-align: right; height: 39px; float: right;} | 399 | .divMoreActions {text-align: right; height: 39px; float: right;} |
400 | .divMoreActions div button {padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-bottom: 4px; height: 31px;} | 400 | .divMoreActions div button {padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-bottom: 4px; height: 31px;} |
401 | -.titleTopic {padding-top: 10px; padding-left: 0px;} | 401 | +.titleTopic {padding-top: 18px; padding-left: 0px;} |
402 | .titleTopic-detail {padding-top: 8px; color: white;} | 402 | .titleTopic-detail {padding-top: 8px; color: white;} |
403 | .titleTopic a h4 {margin-top: 0px; color: black; cursor:pointer;} | 403 | .titleTopic a h4 {margin-top: 0px; color: black; cursor:pointer;} |
404 | .dropdown-menu .pull-right { | 404 | .dropdown-menu .pull-right { |
courses/templates/course/index.html
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <input type="text" class="form-control" placeholder="Search Courses" name="q"></div> | 77 | <input type="text" class="form-control" placeholder="Search Courses" name="q"></div> |
78 | <span class="input-group-btn input-group-sm"> | 78 | <span class="input-group-btn input-group-sm"> |
79 | <button type="submit" class="btn btn-fab btn-fab-mini"> | 79 | <button type="submit" class="btn btn-fab btn-fab-mini"> |
80 | - <i class="material-icons">{% trans 'Search' %}</i> | 80 | + <i class="fa fa-search" aria-hidden="true"></i> |
81 | </button> | 81 | </button> |
82 | </span> | 82 | </span> |
83 | </div> | 83 | </div> |
courses/views.py
@@ -132,7 +132,7 @@ class ReplicateCourseView(LoginRequiredMixin, HasRoleMixin, NotificationMixin,ge | @@ -132,7 +132,7 @@ class ReplicateCourseView(LoginRequiredMixin, HasRoleMixin, NotificationMixin,ge | ||
132 | if has_role(self.request.user,'system_admin'): | 132 | if has_role(self.request.user,'system_admin'): |
133 | courses = Course.objects.all() | 133 | courses = Course.objects.all() |
134 | elif has_role(self.request.user,'professor'): | 134 | elif has_role(self.request.user,'professor'): |
135 | - courses = self.request.user.courses.all() | 135 | + courses = self.request.user.courses_professors.all() |
136 | categorys_courses = CourseCategory.objects.all() | 136 | categorys_courses = CourseCategory.objects.all() |
137 | context['courses'] = courses | 137 | context['courses'] = courses |
138 | context['course'] = course | 138 | context['course'] = course |