diff options
Diffstat (limited to 'yaksh/templates/yaksh/design_course_session.html')
-rw-r--r-- | yaksh/templates/yaksh/design_course_session.html | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/design_course_session.html b/yaksh/templates/yaksh/design_course_session.html index 959bcdd..a2d9b08 100644 --- a/yaksh/templates/yaksh/design_course_session.html +++ b/yaksh/templates/yaksh/design_course_session.html @@ -5,7 +5,7 @@ {% block pagetitle %}Design Course Session{% endblock %} {% block script %} -<script src="{{ URL_ROOT }}/static/yaksh/js/jquery-1.9.1.min.js"></script> +<script src="{{ URL_ROOT }}/static/yaksh/js/jquery-3.3.1.min.js"></script> <script src="{{ URL_ROOT }}/static/yaksh/js/design_course.js"></script> {% endblock %} @@ -14,9 +14,12 @@ {% endblock %} {% block main %} +<div class="yakshwell container"> <a href="{{URL_ROOT}}/exam/manage/courses/" class="btn btn-primary"> Back to Courses </a> +<br/> +<br/> <form action="{{URL_ROOT}}/exam/manage/courses/designcourse/{{course_id}}/" method="POST" id="design_course_form"> {% csrf_token %} <div class="tab-pane active" id="available-lesson-quiz"> @@ -25,8 +28,8 @@ <div id="fixed-available-wrapper"> <p><u><b>Available Modules:</b></u></p> <div id="fixed-available"> - <table id="course-details" class="table table-bordered"> - <tr> + <table id="course-details" class="table table-bordered table-responsive-sm"> + <tr class="bg-light"> <th width="2%">Select</th> <th>Modules</th> <th>Lessons/Quizzes</th> @@ -66,18 +69,25 @@ <div id="fixed-added-wrapper"> <p><u><b>Chosen Modules:</b></u></p> <div id="fixed-added"> - <table id="course-details" class="table table-bordered"> - <tr> + <table id="course-details" class="table table-bordered table-responsive-sm"> + <tr class="bg-light"> <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> @@ -85,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> @@ -106,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 %} @@ -116,10 +138,13 @@ <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 --> </div> </form> +</div> {% endblock %}
\ No newline at end of file |