This commit is contained in:
Ross
2022-09-02 17:00:05 +01:00
parent a117bc930f
commit 281db26167
7 changed files with 273 additions and 7 deletions
+3 -1
View File
@@ -8,7 +8,9 @@
Sbas:
{% if request.user.is_authenticated %}
<a href="{% url 'sbas:exam_list' %}">Exams</a> /
<a href="{% url 'sbas:question_view' %}">Questions</a>
<a href="{% url 'sbas:exam_create' %}" title="Create a new exam">Create Exam</a> /
<a href="{% url 'sbas:question_view' %}">Questions</a> /
<a href="{% url 'sbas:question_create' %}" title="Create a new question">Create Question</a>
{% if request.user.is_superuser %}
/ <a href="{% url 'sbas:user_answer_table_view' %}" title="User answers">Answers</a>
{% endif %}
+3
View File
@@ -2,6 +2,9 @@
{% block content %}
<div class="question">
<a href="{% url 'sbas:question_update' question.id %}" title="Edit the Question">Edit</a>
<a href="{% url 'sbas:question_clone' question.id %}" title="Clone the Question">Clone</a>
<a href="{% url 'sbas:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a>
<a href="{% url 'admin:sbas_question_change' question.id %}"
title="Edit the Question using the admin interface">Admin Edit</a>
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='sbas' pk=question.pk %}')"> Add Note</a>
+24
View File
@@ -0,0 +1,24 @@
{% extends "sbas/base.html" %}
{% load static %}
{% block js %}
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
<script type="text/javascript">
</script>
{{ form.media }}
{% endblock %}
{% block content %}
<h2>Submit Question</h2>
<form action="" method="post" enctype="multipart/form-data" id="anatomyquestion-form">
{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<input type="submit" class="submit-button" value="Submit" name="submit">
<input type="submit" class="submit-button" value="Submit and Clone" name="submit-clone">
</form>
{% endblock %}