Created
December 11, 2015 07:54
-
-
Save moon05/fd4547e14470414da79a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends "index.html" %} | |
| {% block content %} | |
| <h1>{{ class_obj.title }}</h1> | |
| <h3>{{ class_obj.callsign }}</h3> | |
| <h3 id="class_id" style="display: none" >{{ class_obj.id}}</h3> | |
| <table> | |
| {% for quiz in class_obj.quizzes %} | |
| <tbody> | |
| <tr id="quiz_{{quiz.id}}"> | |
| <td id="quiz_id"> {{quiz.id}} </td> | |
| <td> <a href="/quiz/{{quiz.id}}">{{quiz.quizName}}</a> <span style="font-size: 10px;" > <a quiz_id={{quiz.id}} class_id= {{class_obj.id}} class="btn_remove_quiz" href="#">X</a> </span> | |
| </td> | |
| </tr> | |
| </tbody> | |
| {% endfor %} | |
| </table> | |
| {% block form %} | |
| {% from "_formhelpers.html" import render_field %} | |
| <form method="post" id="createQuiz_form"> | |
| {{ render_field(form.quizName) }} <input type="submit" value="Add Quiz" id="btn_add_quiz" data-href="/createQuiz/{{ class_obj.id }}" class_id = {{ class_obj.id }} > | |
| </form> | |
| {% endblock form %} | |
| <!-- quiz format --> | |
| <h3>Question 1<span style="font-size: 10px;" id="quiz_1"><a href="/remove_quiz/1">X</a></span></h3> | |
| {% endblock content %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment