This commit is contained in:
Ross
2021-09-20 22:27:26 +01:00
parent 4942251019
commit d06e5e8b15
4 changed files with 16 additions and 10 deletions
+4
View File
@@ -65,6 +65,10 @@ class UserAnswerTable(tables.Table):
#delete = tables.LinkColumn(
# "sbas:user_answer_delete", text="Delete", args=[A("pk")], orderable=False
#)
view = tables.LinkColumn('sbas:user_answer_view',
text='View',
args=[A('pk')],
orderable=False)
class Meta:
model = CidUserAnswer
template_name = "django_tables2/bootstrap4.html"
+1 -1
View File
@@ -6,7 +6,7 @@ CID: {{cid}}
<h2>Question [{{pos|add:1}}/{{exam_length}}]</h2>
{% if exam.publish_results %}
<div class="alert alert-primary" role="alert">
Exam is in review mode.
Exam is in review mode. Add question feedback <a href="{% url 'feedback_create' question_type='sbas' pk=question.pk %}">here</a>.
</div>
{% endif %}