From 6f472a2237edfc64e2e112600219768c92367feb Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 7 Dec 2016 17:34:15 +0530 Subject: new question template --- yaksh/templates/yaksh/new_question.html | 86 +++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 yaksh/templates/yaksh/new_question.html (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/new_question.html b/yaksh/templates/yaksh/new_question.html new file mode 100644 index 0000000..9e6f239 --- /dev/null +++ b/yaksh/templates/yaksh/new_question.html @@ -0,0 +1,86 @@ +{% extends "manage.html" %} + +{% block pagetitle %} Add Question {% endblock pagetitle %} + +{% block css %} + +{% endblock %} + +{% block script %} + +{% endblock %} + +{% block onload %} onload='javascript:textareaformat();' {% endblock %} + +{% block content %} +
+ {% csrf_token %} + {{ qform.as_p}} + {% if uploaded_files %}
Uploaded files:
Check on delete to delete files, + extract to extract files and hide to hide files from student(if required)
+ {% for file in uploaded_files %} +  delete  + {% if file.extract %} dont extract{% else %} + extract{% endif %}   + {% if file.hide %} show{% else %} + hide{% endif %}
+ {{ file.file.name }} +
+ {% endfor %}{% endif %} +
+ {{ standardformset.management_form }} + + {% for stdform in standardformset %} + + {% endfor %} + +
+
+
+ {{ stdioformset.management_form }} + {% for ioform in stdioformset %} + + {% endfor %} + +
+
+
+ {{ mcqformset.management_form }} + + {% for mcqform in mcqformset %} + + {% endfor %} +
+
+
+ {{ hookformset.management_form }} + + {% for hookform in hookformset %} + + {% endfor %} +
+
+

+ + +
+ + + +
+
+{% endblock %} -- cgit