diff options
author | ankitjavalkar | 2019-02-18 11:45:07 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-03-12 18:41:09 +0530 |
commit | 0df9abf2dce51ed0b1f8247f91f0fe4c039bc14b (patch) | |
tree | fda80884d1e1658b00a69c2eea15f98ad9f128b7 /yaksh/templates | |
parent | 34a8dcac95c215432a32662310648f69f6dc504a (diff) | |
download | online_test-0df9abf2dce51ed0b1f8247f91f0fe4c039bc14b.tar.gz online_test-0df9abf2dce51ed0b1f8247f91f0fe4c039bc14b.tar.bz2 online_test-0df9abf2dce51ed0b1f8247f91f0fe4c039bc14b.zip |
Add functionality to restrict access to next module based on passing previous module
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/design_course_session.html | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/design_course_session.html b/yaksh/templates/yaksh/design_course_session.html index 2deb95f..700d71c 100644 --- a/yaksh/templates/yaksh/design_course_session.html +++ b/yaksh/templates/yaksh/design_course_session.html @@ -74,13 +74,20 @@ <th width="5%">Select</th> <th>Module</th> <th width="20%">Order</th> - <th width="25%" colspan="2">Check Prerequisite + <th width="25%" colspan="2">Check Prerequisite Completion <br> <a href="#" data-toggle="tooltip" id="prereq_msg"> <span class="glyphicon glyphicon-question-sign"> </span> What's This </a> </th> + <th width="25%" colspan="2">Check Prerequisite Passing + <br> + <a href="#" data-toggle="tooltip" id="prereq_passing_msg"> + <span class="glyphicon glyphicon-question-sign"> + </span> What's This + </a> + </th> </tr> <tr> <th scope="row"> </th> @@ -88,6 +95,8 @@ <td> </td> <th>Currently</th> <th>Change</th> + <th>Currently</th> + <th>Change</th> </tr> {% for module in added_learning_modules %} <tr> @@ -109,6 +118,16 @@ <td> <input type="checkbox" name="check_prereq" value="{{module.id}}"> </td> + <td> + {% if module.check_prerequisite_passes %} + Yes + {% else %} + No + {% endif %} + </td> + <td> + <input type="checkbox" name="check_prereq_passes" value="{{module.id}}"> + </td> </ul> </tr> {% endfor %} @@ -119,7 +138,9 @@ <center> <button id="Remove" name="Remove" class="btn btn-danger" type="submit">Remove from course</button> <button id="Change" name="Change" class="btn btn-info" type="submit"> Change Order</button> - <button id="Change" name="Change_prerequisite" class="btn btn-primary" type="submit"> Change Prerequisite</button> + <button id="Change" name="change_prerequisite_completion" class="btn btn-primary" type="submit"> Change Prerequisite Completion</button> + <button id="Change_prereq_passing" name="change_prerequisite_passing" class="btn btn-primary" type="submit"> Change Prerequisite Passing</button> + </center> </div> </div> <!-- /.row --> |