From 35c6ec27921137e31382ca1faa2c41d99550722a Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 1 Nov 2016 10:15:11 +0530 Subject: courses and question paper creation UI modified --- yaksh/templates/yaksh/course_detail.html | 25 +++++------ yaksh/templates/yaksh/courses.html | 60 +++++++++++-------------- yaksh/templates/yaksh/design_questionpaper.html | 3 +- yaksh/templates/yaksh/login.html | 4 +- 4 files changed, 39 insertions(+), 53 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index 94f29a3..c54f153 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -4,15 +4,12 @@ {% block subtitle %} {{ course.name }} {% endblock %} -{% block css %} - -{% endblock %} {% block script %} {% endblock %} {% block content %}
-
+
Requests

{% if course.get_requests %}  Select all @@ -22,7 +19,7 @@ {% for request in course.get_requests %}
-
+ @@ -35,7 +32,7 @@ {% endif %}
-
+
Rejected

{% if course.get_rejected %}  Select all @@ -45,15 +42,15 @@ {% csrf_token %}
{% endfor %} - +
{% endif %} @@ -61,7 +58,7 @@

-
+
Enrolled

{% if course.get_enrolled %}  Select all @@ -71,21 +68,21 @@ {% csrf_token %}
{% endfor %} - +
{% endif %}
{% endblock %} diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 24e29af..ecd3a13 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -1,15 +1,7 @@ {% extends "manage.html" %} -{% block title %} Courses {% endblock title %} - -{% block subtitle %} Courses {% endblock %} - -{% block css %} - -{% endblock %} - +{% block pagetitle %} Courses {% endblock pagetitle %} {% block content %} - {% if not courses %}

No new Courses created

{% else %} @@ -18,23 +10,23 @@ {% if user != course.creator %}

{{course.creator.get_full_name}} added you to this course

{% endif %} -
-
+
+
-
+

Course {% if course.active %} - Active + Active {% else %} - Closed + Closed {% endif %}

{{ course.name }}

{% if user == course.creator %}
-
+
Teacher(s) Added to {{ course }}
{% if course.get_teachers %}
@@ -43,13 +35,13 @@ {% for teacher in course.get_teachers %}
-
+
 {{ teacher.get_full_name }}
{% endfor %} - +
{% else %}
No Teacher(s) Added
@@ -60,25 +52,23 @@ {% endif %}
{% if user == course.creator %} - {% endif %} -
+
{% if course.get_quizzes %}

Quiz(zes)

{% for quiz in course.get_quizzes %} {{ quiz.description }}
{% endfor %}
-
+

Question Paper(s)

{% for quiz in course.get_quizzes %} {% if quiz.questionpaper_set.get %} Question Paper for {{ quiz.description }}
{% else %} -

No Question Paper - +

No Question Paper + Add

{% endif %} {% endfor %} @@ -88,7 +78,7 @@

- +


@@ -98,22 +88,22 @@ {% if allotted_courses %}

Course(s) Allotted

{% for course in allotted_courses %} -
-
+
+
-
+

Course {% if course.active %} - Active + Active {% else %} - Closed + Closed {% endif %}

{{ course.name }}

-
+
Course Creator
{{course.creator}}
Teacher(s) Added to {{ course }}
@@ -124,13 +114,13 @@ {% for teacher in course.get_teachers %}
-
+
 {{ teacher.get_full_name }}
{% endfor %} - +
{% else %}
No Teacher(s) Added
@@ -139,10 +129,10 @@
-
+ -
+

Quiz(zes)

{% if course.get_quizzes %} {% for quiz in course.get_quizzes %} @@ -154,7 +144,7 @@

- +


diff --git a/yaksh/templates/yaksh/design_questionpaper.html b/yaksh/templates/yaksh/design_questionpaper.html index 387402a..4418c27 100644 --- a/yaksh/templates/yaksh/design_questionpaper.html +++ b/yaksh/templates/yaksh/design_questionpaper.html @@ -5,7 +5,6 @@ {% block subtitle %} Design Question Paper {% endblock %} {% block css %} -