$(function() {
- $('#submit_answers').click(function() {
+ $('#submit_answers').click(function(e) {
+ e.preventDefault();
var to_submit = [];
$('.exercise').each(function() {
var exercise = $(this).data('exercise');
--- /dev/null
+<div>
+
+ <h3>Zadanie {{no}}</h3>
+
+ <div class="description">
+ {% for para in exercise.description %}
+ <p class="paragraph">
+ {{para}}
+ </p>
+ {% endfor %}
+ </div>
+
+ <input type="file"/>
+
+</div>
\ No newline at end of file
{% block body %}
+<form>
+
{% for exercise in exercises %}
{% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
{% include template_name with exercise=exercise no=forloop.counter %}
<hr/>
<button style="display: block; margin: auto;" id="submit_answers">Wyślij moje odpowiedzi</button>
+</form>
+
{% endblock %}
\ No newline at end of file