From 93cccd1e3b579eed644756e86100444b2d346f64 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 27 Apr 2016 00:18:12 +0530 Subject: changed template to reflect new grade_user design --- yaksh/templates/yaksh/grade_user.html | 109 ++++++++++++++++++++++++++-------- 1 file changed, 85 insertions(+), 24 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html index dd05670..d2de194 100644 --- a/yaksh/templates/yaksh/grade_user.html +++ b/yaksh/templates/yaksh/grade_user.html @@ -1,46 +1,101 @@ {% extends "manage.html" %} -{% block title %} Grading papers for {{ data.user.get_full_name.title }} {% endblock title %} +{% block title %} Grade User {% endblock title %} -{% block subtitle %}Grading papers for {{ data.user.get_full_name.title }}{% endblock %} +{% block subtitle %} Grade User {% endblock %} {% block css %} - + {% endblock %} {% block script %} - + {% endblock %} + {% block manage %} -

-Name: {{ data.user.get_full_name.title }} +{% if course_details %} + + + + + + + {% for course in course_details %} + + + + {% if course.get_quizzes %} + + {% else %} + + {% endif %} + + {% endfor %} +
Courses Quizzes
    {{course.name}}
+ {% for quiz in course.get_quizzes %} +
  • {{quiz.description}}
  • + + {% endfor %} +
    No quiz
    +{% endif %} + +

    +{%if users %} +
    + {% for user in users %} +

    {{user.user__first_name}} {{user.user__last_name}}

    + {% endfor %} +
    +{% endif %} + + + +
    {#not found yet#} +{% if data %} + + +

    Showing paper for {{data.user.get_full_name.title}}

    +

    Name:{{ data.user.get_full_name.title }} {% if data.profile %} -(roll number: {{ data.profile.roll_number }})
    -Position: {{ data.profile.position }}
    -Department: {{ data.profile.department }}
    -Institute: {{ data.profile.institute }}
    + +

    Roll number: {{ data.profile.roll_number }} +

    Position: {{ data.profile.position }} +

    Department: {{ data.profile.department }} +

    Institute: {{ data.profile.institute }} {% endif %} -

    {% if data.papers %} {% for paper in data.papers %} - -{% if forloop.counter == 2 and data.questionpaperid %}
    -

    Previous attempts

    -{% endif %} {{ paper.total_marks }} -

    Quiz: {{ paper.question_paper.quiz.description }}

    +

    Quiz: {{ paper.question_paper.quiz.description }}

    -Attempt Number: {{ paper.attempt_number }}
    -Questions correctly answered: {{ paper.get_answered_str }}
    +Attempt Number: {{paper.attempt_number}} + + +
    Questions correctly answered: {{ paper.get_answered_str }}
    Total attempts at questions: {{ paper.answers.count }}
    -Marks obtained: {{ paper.get_total_marks }}
    +Marks obtained: {{ paper.marks_obtained }}
    Start time: {{ paper.start_time }}
    +{%if paper.percent%} +Percentage obtained: {{paper.percent}}%
    +{% endif %} +{% if paper.passed == 0 %} +Status : Failed
    +{% else %} +Status : Passed
    +{% endif %}

    {% if paper.answers.count %} @@ -59,12 +114,13 @@ Start time: {{ paper.start_time }}
    {% endfor %} +

    Answers


    {% csrf_token %} @@ -72,13 +128,13 @@ Start time: {{ paper.start_time }}

    - Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }}) + Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }}) Details

    @@ -113,10 +169,15 @@ Marks: +
    + {% endif %} {# if paper.answers.count #} {% endfor %} {# for paper in data.papers #} -{% endif %} {# if data.papers #} +{% endif %} {# if data.papers #} +{% endif %} {#if data#} +
    +
    {% endblock%} -- cgit