From f6a3a8e623e51b77985e11e4388562e7075506ed Mon Sep 17 00:00:00 2001 From: Matheus Lins Date: Sat, 1 Oct 2016 16:51:51 -0300 Subject: [PATCH] updated tamplate teacher courses --- courses/templates/course/index.html | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/courses/templates/course/index.html b/courses/templates/course/index.html index f0dcf95..b33d36a 100644 --- a/courses/templates/course/index.html +++ b/courses/templates/course/index.html @@ -22,6 +22,23 @@ + +{% if user|has_role:'professor, system_admin' %} + + + +{% endif %} + {% endblock %} {% block content %} @@ -36,7 +53,103 @@ {% endfor %} {% endif %} +{% if user|has_role:'professor, system_admin' %} + +
+ +
+
+
+ +
+
+

Course Name: Computer Science

+

Duration (in semesters): 09

+

Coordinator: Alan Turing

+

+ Description: + + "Lorem ipsum dolor sit amet, consecctetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." + +

+ +
+
+
+ + + + +
+
+
+
+ +
+
+
+ +{% else %}
@@ -47,7 +160,7 @@
- + {% if courses|length > 0 %} {% for course in courses %}
@@ -103,4 +216,5 @@ {% else %} {% trans 'No courses found' %} {% endif %} +{% endif %} {% endblock %} -- libgit2 0.21.2