From e3afc52bf9b56d590d9b22166944bf7f51bd3eb6 Mon Sep 17 00:00:00 2001 From: juliotoscano Date: Tue, 25 Oct 2016 16:13:44 -0300 Subject: [PATCH] modifying home course detail #205 --- core/static/css/base/amadeus.css | 16 ++++++++++------ courses/static/js/course.js | 11 +---------- courses/templates/course/course_card.html | 83 ++++++++++++++++++++++++++++++++++++++++------------------------------------------- courses/templates/course/index.html | 25 ++----------------------- courses/templates/course/view.html | 90 +++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------- courses/templates/subject/index.html | 2 +- 6 files changed, 103 insertions(+), 124 deletions(-) diff --git a/core/static/css/base/amadeus.css b/core/static/css/base/amadeus.css index 08ffbad..61b1dde 100644 --- a/core/static/css/base/amadeus.css +++ b/core/static/css/base/amadeus.css @@ -30,7 +30,7 @@ margin: 10% 10% 5% 5%; } .breadcrumb{ - margin-bottom: 5px; + margin-bottom: 25px; } .courseHome{ text-align: center; @@ -398,14 +398,18 @@ ul, li { /* Icon Topic */ .divMoreActions {text-align: right; height: 39px; float: right;} .divMoreActions div button {padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-bottom: 4px; height: 31px;} -.headingOne {padding-top: 0px; padding-bottom: 50px;} -.headingTwo {padding-top: 0px; padding-bottom: 50px;} -.course{padding-top: 0px; padding-bottom: 0px; cursor:move; } .titleTopic {padding-top: 18px; padding-left: 0px;} -.titleTopic-detail {padding-top: 8px;} +.titleTopic-detail {padding-top: 8px; color: white;} .titleTopic a h4 {margin-top: 0px; color: white; cursor:pointer;} .dropdown-menu .pull-right { right: 0; } .moreAccordion{ padding-left: 0px; padding-right: 0px;} -.moreAccordion div button{ padding-left: 0px; padding-right: 0px;} \ No newline at end of file +.moreAccordion div button{ padding-left: 0px; padding-right: 0px;} +.cards-content{ padding-left: 0px; padding-right: 0px; } +.cards-detail{margin-left: 4%;} +.cards-detail .panel .panel-heading{background-color:#81D4FA;} +.cards-detail .panel .panel-heading h4{color:black;} +.subject{ padding-top: 0px; padding-bottom: 0px; } +.course{padding-top: 0px; padding-bottom: 0px;} +.course-detail{padding-top: 10px; padding-bottom: 10px;} \ No newline at end of file diff --git a/courses/static/js/course.js b/courses/static/js/course.js index a84e7a2..ca72c68 100644 --- a/courses/static/js/course.js +++ b/courses/static/js/course.js @@ -77,13 +77,4 @@ function replicate_course(url, course) { $(".course_replicate_form").html(data); } }); -} -$(".caret-square").on('click', function(){ - if( $(this).attr('title') == 'less'){ - $(this).attr('title','more'); - jQuery(this).html(""); - }else{ - $(this).attr('title','less'); - jQuery(this).html(""); - } - }); \ No newline at end of file +} \ No newline at end of file diff --git a/courses/templates/course/course_card.html b/courses/templates/course/course_card.html index 31bd5df..f0935b0 100644 --- a/courses/templates/course/course_card.html +++ b/courses/templates/course/course_card.html @@ -1,48 +1,45 @@ {% load static i18n permission_tags %} {% load django_bootstrap_breadcrumbs %} - -
-
-
- -
-
-

Course Name: {{course.name}}

-

Coordinator: {{course.professors.all.0}}

-

- Description: - - {{course.content}} - -

-
-
-
-
+
+
+
+
+ + + {% if user|has_role:'professor' or user|has_role:'system_admin' %} + + {% endif %} +
+
+
+
+

Course Name: {{course.name}}

+

Coordinator: {{course.professors.all.0}}

+

+ Description: + + {{course.content}} + +

+
+
+