diff options
author | prathamesh | 2016-12-19 08:43:17 +0530 |
---|---|---|
committer | prathamesh | 2016-12-19 08:43:17 +0530 |
commit | 1662f80d18ea00ad96bab28762352d8f6068f732 (patch) | |
tree | 2cc10c0f5103be88608a44fb0b8bcdde59c8ce09 /yaksh/templates | |
parent | e436ec35a4086a16208e30e1384ca0ebc8082570 (diff) | |
download | online_test-1662f80d18ea00ad96bab28762352d8f6068f732.tar.gz online_test-1662f80d18ea00ad96bab28762352d8f6068f732.tar.bz2 online_test-1662f80d18ea00ad96bab28762352d8f6068f732.zip |
cleaned up the code and made testcase forms dynamic
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/add_question.html | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index 91c7de4..57e5e78 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -38,44 +38,18 @@ <a href="{{file.file.url}}">{{ file.file.name }}</a> {% endfor %}{% endif %} </table></center> + {% for formset in formsets %} <div class="form-group"> - {{ standardformset.management_form }} + {{ formset.management_form }} - {% for stdform in standardformset %} + {% for form in formset %} <div class="link-formset well"> - {{ stdform.as_p }} + {{ form.as_p }} </div> {% endfor %} </div> - <br \> - <div class="form-group"> - {{ stdioformset.management_form }} - {% for ioform in stdioformset %} - <div class="link-formset well"> - {{ ioform.as_p }} - </div> - {% endfor %} - - </div> - <div class="form-group"> - {{ mcqformset.management_form }} - - {% for mcqform in mcqformset %} - <div class="link-formset well"> - {{ mcqform.as_p }} - </div> - {% endfor %} - </div> - <div class="form-group"> - {{ hookformset.management_form }} - - {% for hookform in hookformset %} - <div class="link-formset well"> - {{ hookform.as_p }} - </div> - {% endfor %} - </div> + {% endfor %} <p><label for="case_type">Add Test Case:</label> <select id="case_type" name="case_type" onchange="frm.submit()"> <option value="" selected="selected">---------</option> <option value="standardtestcase">Standard </option> |