This commit is contained in:
Ross
2021-10-16 12:05:26 +01:00
parent 174a0aa235
commit f770a166fc
+24 -18
View File
@@ -86,30 +86,36 @@
</div> </div>
{% endif %} {% endif %}
{% if review %} {% if review %}
<button name="check-review" class="check-review btn btn-default">Check review answers</button> <button name="check-review" class="check-review btn btn-default">Check review answers</button><br/>
{% endif %}
{% if question_details.current > 1 %}
<button type="submit" name="previous" class="save btn btn-default">Previous</button>
{% endif %}
<button type="submit" name="save" class="save btn btn-default">Save</button>
{% if question_details.current >= question_details.total %}
{% else %}
<button type="submit" name="next" class="save btn btn-default">Next</button>
<button type="submit" name="skip" class="save btn btn-default">Skip</button>
{% endif %} {% endif %}
<span class="save-buttons">
{% if question_details.current > 1 %}
<button type="submit" name="previous" class="save btn btn-default">Previous</button>
{% endif %}
<button type="submit" name="save" class="save btn btn-default">Save</button>
{% if question_details.current >= question_details.total %}
{% else %}
<button type="submit" name="next" class="save btn btn-default">Next</button>
<button type="submit" name="skip" class="save btn btn-default">Skip</button>
{% endif %}
</span>
<span class=hide> <span class=hide>
{{ form.as_p }} {{ form.as_p }}
</span> </span>
</form> </form>
</div> </div>
{% if review %} {% if review %}
<script> <script>
$("button.check-review").click(() =>{ $(document).ready(() => {
$(".marking-list .answer").each((n, el) => { $("button.check-review").click(() =>{
console.log(n, el); $(".marking-list .answer").each((n, el) => {
}) console.log(n, el);
}) })
</script> })
$(".save-buttons").hide();
});
</script>
{% endif %} {% endif %}
{% endblock %} {% endblock %}