From b121bc18fd60e3f3f42f0093bf3a74b6d66cd006 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 27 Apr 2016 00:16:50 +0530 Subject: changed from username to user_id --- yaksh/templates/yaksh/user_data.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html index 22be3ed..04544f9 100644 --- a/yaksh/templates/yaksh/user_data.html +++ b/yaksh/templates/yaksh/user_data.html @@ -22,11 +22,11 @@ Last login: {{ data.user.last_login }} {% if data.papers %} {% if data.questionpaperid %} -

+

Grade/correct paper

{% else %} -

+

Grade/correct paper {% endif %} @@ -41,7 +41,7 @@ Last login: {{ data.user.last_login }} 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 }}
User IP address: {{ paper.user_ip }}

@@ -75,9 +75,12 @@ User IP address: {{ paper.user_ip }} {% endif %} {# if data.papers #}

- - Grade/correct paper -
+ +{% with data.papers.0 as paper %} +Grade/correct paper +{% endwith %} +
+ {% if data.papers.count > 1 %} Monitor quiz {% else %} -- cgit From 71c800cfff1fca003f1bdc5e0e53e857cbd7a6d6 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 27 Apr 2016 00:17:31 +0530 Subject: changed from username to user_id --- yaksh/templates/yaksh/monitor.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html index b81c9f2..80ad06c 100644 --- a/yaksh/templates/yaksh/monitor.html +++ b/yaksh/templates/yaksh/monitor.html @@ -9,13 +9,13 @@ {% endblock %} {% block subtitle %} {% if not quizzes and not quiz %} - Quiz Results + Quiz Results {% endif %} {% if quizzes %} - Available Quizzes + Available Quizzes {% endif %} {% if quiz %} - {{ quiz.description }} Results + {{ quiz.description }} Results {% endif %} {% endblock %} {% block manage %} @@ -54,7 +54,7 @@ {% for paper in latest_attempts %} - {{ paper.user.get_full_name.title }} + {{ paper.user.get_full_name.title }} {{ paper.user.username }} {{ paper.user.profile.roll_number }} {{ paper.user.profile.institute }} @@ -69,4 +69,4 @@

No answer papers so far.

{% endif %} {# if papers #} {% endif %} -{% endblock %} +{% endblock %} \ No newline at end of file -- cgit 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/templates') 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 From 775ca4bf396cabe5b6ff6b4a665ed8d400fabc7c Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 3 May 2016 15:26:57 +0530 Subject: closed div tag --- yaksh/templates/yaksh/grade_user.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html index d2de194..2c5403c 100644 --- a/yaksh/templates/yaksh/grade_user.html +++ b/yaksh/templates/yaksh/grade_user.html @@ -51,7 +51,7 @@ -
    {#not found yet#} +
    {% if data %} @@ -176,8 +176,9 @@ Marks: {% endif %} {#if data#} -
    +
    {% endblock%} -- cgit