summaryrefslogtreecommitdiff
path: root/testapp/templates
diff options
context:
space:
mode:
authorhardythe12012-03-20 12:44:43 +0530
committerhardythe12012-03-20 12:44:43 +0530
commite524bef336df95fd307d045af37c379bccf3ea14 (patch)
tree62b677d6c94f323f880d77745e57a25e844b4ba9 /testapp/templates
parent0e6e72fb37f1a586728c997cd5e9c5fadf794823 (diff)
downloadonline_test-e524bef336df95fd307d045af37c379bccf3ea14.tar.gz
online_test-e524bef336df95fd307d045af37c379bccf3ea14.tar.bz2
online_test-e524bef336df95fd307d045af37c379bccf3ea14.zip
minor UI changes
Diffstat (limited to 'testapp/templates')
-rw-r--r--testapp/templates/exam/add_question.html1
-rw-r--r--testapp/templates/exam/add_quiz.html3
-rw-r--r--testapp/templates/exam/edit_question.html18
-rw-r--r--testapp/templates/exam/edit_quiz.html18
-rw-r--r--testapp/templates/exam/question.html6
5 files changed, 22 insertions, 24 deletions
diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html
index 6c1d533..f832d46 100644
--- a/testapp/templates/exam/add_question.html
+++ b/testapp/templates/exam/add_question.html
@@ -11,6 +11,7 @@
<script type="text/javascript" src="{{ URL_ROOT }}/static/exam/css/min.js"></script>
<script type="text/javascript">
+
function increase(frm)
{
if(frm.points.value == "")
diff --git a/testapp/templates/exam/add_quiz.html b/testapp/templates/exam/add_quiz.html
index fe99ce6..570b3c2 100644
--- a/testapp/templates/exam/add_quiz.html
+++ b/testapp/templates/exam/add_quiz.html
@@ -25,7 +25,6 @@
</table>
</center>
<center><button class="btn" type="submit" name="save">Save</button>
- <button class="btn" type="button" name="button" onClick="javascript:test()">Cancel</button> </center>
- <!--button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/showquiz/");'>Cancel</button> </center-->
+ <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/showquiz/");'>Cancel</button> </center>
</form>
{% endblock %}
diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html
index 2ab3c7a..9d92a71 100644
--- a/testapp/templates/exam/edit_question.html
+++ b/testapp/templates/exam/edit_question.html
@@ -58,7 +58,6 @@ function data(showContent,showHideDiv,a,summary)
{
con.style.display = "block";
ele.style.display = "block";
- atag.text = "Hide";
}
}
@@ -179,30 +178,31 @@ function autosubmit()
{% block manage %}
<form name='frm' action="{{URL_ROOT}}/exam/manage/editquestion/" method="post" onSubmit="return autosubmit()" onKeyPress='javascript:render_question(frm);'>
{% csrf_token %}
+<center><p>Click on the Question links to edit the question.</p></center>
<table>
+
{% for form in forms %}
- <tr cellspacing=2px><td><a id='a{{forloop.counter}}' onClick="data('contentDiv{{forloop.counter}}','myContent{{forloop.counter}}','a{{forloop.counter}}','{{form.summary.value}}');" style='cursor:pointer;'>{{form.summary.value}}</a>
+ <tr><td height=10><a id='a{{forloop.counter}}' onClick="data('contentDiv{{forloop.counter}}','myContent{{forloop.counter}}','a{{forloop.counter}}','{{form.summary.value}}');" style='cursor:pointer;'>{{form.summary.value}}</a>
<div id="contentDiv{{forloop.counter}}" style="display:none;">
<div id="myContent{{forloop.counter}}" style="display: none;">
<center><table class=span1>
- <tr><td>Summary: <td>{{ form.summary }}{{ form.summary.errors }}
+ <tr><td><b>Summary:</b> <td>{{ form.summary }}{{ form.summary.errors }}
- <tr><td>Points:<td><button class="btn-mini" name={{forloop.counter}} type="button" onClick="increase(frm,{{forloop.counter}});">+</button>{{ form.points }}<button class="btn-mini" type="button" onClick="decrease(frm,{{forloop.counter}});"">-</button>{{ form.points.errors }} &nbsp; Active: &nbsp; {{ form.active }}{{form.active.errors}} &nbsp; Type: &nbsp;{{ form.type }}{{form.type.errors}}
+ <tr><td><b>Points:<td><button class="btn-mini" name={{forloop.counter}} type="button" onClick="increase(frm,{{forloop.counter}});">+</button>{{ form.points }}<button class="btn-mini" type="button" onClick="decrease(frm,{{forloop.counter}});"">-</button>{{ form.points.errors }} &nbsp; Active: &nbsp; {{ form.active }}{{form.active.errors}} &nbsp; Type: &nbsp;{{ form.type }}{{form.type.errors}}
<tr><td><strong>Rendered: </strong><td><p id='my{{forloop.counter}}'></p>
- <tr><td>Description: <td>{{ form.description }} {{form.description.errors}}
- <tr><td>Test: <td>{{ form.test }}{{form.test.errors}}
- <tr><td id='label_option{{forloop.counter}}'>Options: <td>{{ form.options }} {{form.options.errors}} {{form.options.helptext}}
+ <tr><td><b>Description: <td>{{ form.description }} {{form.description.errors}}
+ <tr><td><b>Test: <td>{{ form.test }}{{form.test.errors}}
+ <tr><td id='label_option{{forloop.counter}}'><b>Options: <td>{{ form.options }} {{form.options.errors}} {{form.options.helptext}}
</table></center>
</div>
</div>
- <tr><td><hr>
{% endfor %}
-</table>
+</table></center>
<center><button class="btn" type="submit" name="savequestion">Save</button>
<button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/questions/");'>Cancel</button> </center>
</form>
diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/templates/exam/edit_quiz.html
index d513e7a..2ab01bb 100644
--- a/testapp/templates/exam/edit_quiz.html
+++ b/testapp/templates/exam/edit_quiz.html
@@ -8,7 +8,7 @@
<style type='text/css'>
table th, table td
{
- text-align: center;
+ text-align: left;
}
</style>
{% endblock %}
@@ -17,15 +17,13 @@ table th, table td
<form name=frm action="{{URL_ROOT}}/exam/manage/editquiz/" method="post">
{% csrf_token %}
<center>
- <table>
- <tr>
- <td><strong> Start Date <td><strong> Duration <td> <strong>Active <td> <strong>Description </strong>
- </tr>
- {% for form in forms %}
-
- <tr>
- <td> {{ form.start_date}} <td> {{ form.duration }} <td> {{ form.active }} <td> {{ form.description }}
- </tr>
+ <table class=span1>
+ {% for form in forms %}
+ <tr><td><b>Start Date: <td>{{ form.start_date}}
+ <tr><td><b>Duration: <td> {{ form.duration }}
+ <tr><td><b>Active: <td> {{ form.active }}
+ <tr><td><b>Description: <td> {{ form.description }}
+ <hr>
{% endfor %}
</table>
</center>
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html
index a09e3bf..b4b171e 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/templates/exam/question.html
@@ -68,7 +68,7 @@
<div class="container">
<h3 class="brand"><strong>Online Test</h3></strong>
<ul>
- <li> <h5><a> Hi {{user.first_name.title}} {{user.last_name.title}} !!! </a></h5>
+ <li> <h5><a> Hi {{user.first_name.title}} {{user.last_name.title}} </a></h5>
</ul>
<form id="logout" action="{{URL_ROOT}}/exam/quit/" method="post" class="pull-right">
{% csrf_token %}
@@ -83,7 +83,7 @@
<h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font></h4><br>
<font size=3 face=arial> {{ question.description|safe }} </font>
- {% if error_message %}<h5>ERROR:<h5><pre>{{ error_message }}</pre>{% endif %}
+ {% if error_message %}<h5>ERROR:</h5><div class="alert alert-error">{{ error_message }}</div>{% endif %}
<p id="status"></p>
<form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/" method="post">
{% csrf_token %}
@@ -92,7 +92,7 @@
<input name="answer" type="radio" value="{{option}}" />{{option}} <br/>
{% endfor %}
{% else %}
- <textarea rows="15" style="width:700px;" name="answer">{% if last_attempt %}{{last_attempt.strip}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %}# Enter your answer here.{% endif %}{% endif %}</textarea>
+ <textarea rows="15" style="width:810px;margin-bottom:10px;" name="answer">{% if last_attempt %}{{last_attempt.strip}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %}# Enter your answer here.{% endif %}{% endif %}</textarea>
{% endif %}
{% if question.type == "mcq" %}