diff options
Diffstat (limited to 'yaksh/templates/manage.html')
-rw-r--r-- | yaksh/templates/manage.html | 153 |
1 files changed, 21 insertions, 132 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index f4c524e..eae4dd4 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -1,133 +1,22 @@ -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> - <head> - <title> - {% block title %} - {% endblock %} - </title> - - {% block meta %} -<meta charset="utf-8"> - <meta name="description" content=""> -<meta name="author" content=""> - {% endblock %} - - <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/base.css" type="text/css" /> - <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/manage.css" type="text/css" /> - <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/font-awesome.css" type="text/css" /> - {% block css %} - {% endblock %} -<script language="JavaScript" type="text/javascript" src="{{ URL_ROOT }}/static/yaksh/js/jquery-1.4.2.min.js"></script> - {% block script %} - {% endblock %} - </head> - -<body {% block onload %}{% endblock %}> -<div class="topbar"> - <div class="fill"> - <div class="container"> - <a href="{{ URL_ROOT }}/exam/manage/"><h3 class="brand"><strong>Online Test</h3></strong></a> -<ul> -<li><a href="{{ URL_ROOT }}/exam/manage/questions">Questions</a></li> - <li><a href="{{ URL_ROOT }}/exam/manage/gradeuser">Grade User</a></li> -<li><a href="{{ URL_ROOT }}/exam/manage/monitor">Monitor</a></li> -<li><a href="{{ URL_ROOT }}/exam/manage/courses">Courses</a></li> -<li><a href="{{ URL_ROOT }}/exam/viewprofile">My Profile</a></li> -<li><a href="{{ URL_ROOT }}/exam/changepassword">Change Password</a></li> -<li><a href="{{ URL_ROOT }}/exam/manage/grader"> Grader </a></li> - </ul> -<ul style="float:right;"> -<li><strong><a style='cursor:pointer' onClick='location.replace("{{URL_ROOT}}/exam/complete/");'>Log out</a></strong></li> - </ul> - </div> - </div> -</div> - <div class="container"> - <div class="content"> - <div class="page-header"> -<h3><center>{% block subtitle %}Welcome {{ user.first_name.title }} {{user.last_name.title}} !{% endblock %}</center></h3><br> - </div> - <div class="row"> - <div class="col-md-12"> - {% block new_manage %} - {% endblock %} - </div> - </div> - <div class=row> - <div class=span14> - {% block manage %} - <center><h4>List of quizzes! Click on the given links to have a look at answer papers for a quiz.</h4></center> - <hr> - <table class="bordered-table zebra-striped"> - <th>Quiz</th> - <th>Taken By</th> - <th>No. of users Passed</th> - <th>No. of users Failed</th> - {% for paper, answer_papers, users_passed, users_failed in users_per_paper %} - <tr> - <td> - <a href="{{URL_ROOT}}/exam/manage/monitor/{{paper.id}}/">{{ paper.quiz.description }}</a> - </td> - <td> - {{ answer_papers|length }} user(s) - </td> - <td> - {{ users_passed }} - </td> - <td> - {{ users_failed }} - </td> - </tr> - {% endfor %} - </table> - <hr> - <center> - <h4>Moderator's Dashboard!</h4> - <h5>Click on the button given below to add a new course.</h5> - <button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/add_course");'>Add New Course</button> - <h5>Click on the button to Create a Demo course. - <a href="" onclick="$('#help').show(); return false;">Help </a></h5> - <button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/create_demo_course");'>Create Demo Course</button> - <div style="display: none;" id="help"> - <ol> - <ul> - <li>A Demo Course and Demo Quiz will be created (Click Courses link on nav bar to view courses).</li> - <li>Some Demo Questions are also created for you (Click Questions link on nav bar to view questions).</li> - <li>In Courses you can view Demo Quiz.</li> - <li>Click on the Demo Quiz and Click on User Mode or God Mode to take the quiz. - </li> - <li>You can also edit the Demo quiz. - </li> - </ul> - </p> - <a href="" onclick="$('#help').hide(); return false"> Close </a> - </div> - {% if msg %} - <h4>{{ msg }}</h4> - {% endif %} - </center> - {% if trial_paper %} - <h5/> You have trial papers. - <table class="bordered-table zebra-striped"> - <form action="" method="post"> - {% csrf_token %} - {% for paper in trial_paper %} - <tr> - <td> <input type = "checkbox" name="delete_paper" value = {{paper.id}}></input></td> - <td> <a href="{{URL_ROOT}}/exam/manage/gradeuser/{{paper.question_paper.quiz.id}}">{{paper.question_paper.quiz.description}}</td> - </tr> - {% endfor %} - </table> - <center><button class="btn" type="submit">Delete Selected</button></center> - </form> - {% endif %} +{% extends "base.html" %} +{% block nav %} +<nav class="navbar navbar-fixed-top navbar-inverse"> + <div class="container"> + <div class="navbar-header"> + <a class="navbar-brand" href="{{ URL_ROOT }}/exam/manage/"> Online Test </a> + </div> + <div id="navbar"> + <ul class="nav navbar-nav"> + <li><a href="{{ URL_ROOT }}/exam/manage/questions">Questions</a></li> + <li><a href="{{ URL_ROOT }}/exam/manage/gradeuser">Grade User</a></li> + <li><a href="{{ URL_ROOT }}/exam/manage/monitor">Monitor</a></li> + <li><a href="{{ URL_ROOT }}/exam/manage/courses">Courses</a></li> + <li><a href="{{ URL_ROOT }}/exam/viewprofile">My Profile</a></li> + <li><a href="{{ URL_ROOT }}/exam/changepassword">Change Password</a></li> + <li><a href="{{ URL_ROOT }}/exam/manage/grader"> Grader </a></li> + <li><a style='cursor:pointer' onClick='location.replace("{{URL_ROOT}}/exam/complete/");'>Log out</a></li> + </ul> + </div><!-- /.navbar --> + </div><!-- /.container --> + </nav><!-- /.navbar --> {% endblock %} - </div> - </div> - </div> - <footer> - <p>© FOSSEE group, IIT Bombay</p> - </footer> - </div> - -</body> -</html> |