From bb216a711fe2e4f41eaf29d92eb12a4d0f31bd8c Mon Sep 17 00:00:00 2001 From: Nitesh Rijal Date: Thu, 20 Mar 2014 07:58:58 +0545 Subject: [PATCH] Added templates for respective views --- templates/quiz/quiz_index.html | 19 +++++++++++++++++++ templates/quiz/user_previous_exam.html | 4 ++++ templates/quiz/view_quiz_category.html | 15 +++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 templates/quiz/quiz_index.html create mode 100644 templates/quiz/user_previous_exam.html create mode 100644 templates/quiz/view_quiz_category.html diff --git a/templates/quiz/quiz_index.html b/templates/quiz/quiz_index.html new file mode 100644 index 0000000..03ca776 --- /dev/null +++ b/templates/quiz/quiz_index.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% block title %}All Quiz{% endblock %} + +{% block left-sidebar %} +

Categories

+ {% if categories %} + + {% else %} +

There are no categories.

+ {% endif %} +{% endblock %} + +{% block right-sidebar %} +

Sponsored Advertisements

+{% endblock %} diff --git a/templates/quiz/user_previous_exam.html b/templates/quiz/user_previous_exam.html new file mode 100644 index 0000000..42bda82 --- /dev/null +++ b/templates/quiz/user_previous_exam.html @@ -0,0 +1,4 @@ +{{ title }} +{{ score }} +{{ possible }} +{{ percent }} diff --git a/templates/quiz/view_quiz_category.html b/templates/quiz/view_quiz_category.html new file mode 100644 index 0000000..e8e1ad1 --- /dev/null +++ b/templates/quiz/view_quiz_category.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% block title %}Quizzes related to {{ category.category }}{% endblock %} + +{% block content %} + {% if quizzes %} +

Quizzes in {{ category.category }}

+ + {% else %} +

There are no quizzes.

+ {% endif %} +{% endblock %} -- 2.39.5