Skip to content

Instantly share code, notes, and snippets.

@moon05
Created December 11, 2015 07:54
Show Gist options
  • Select an option

  • Save moon05/fd4547e14470414da79a to your computer and use it in GitHub Desktop.

Select an option

Save moon05/fd4547e14470414da79a to your computer and use it in GitHub Desktop.
{% 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