This commit is contained in:
Ross
2021-09-11 15:17:20 +01:00
parent b025a8a4ae
commit 430074260d
4 changed files with 194 additions and 191 deletions
+16 -16
View File
@@ -1,21 +1,21 @@
Notes:
<ul class="notes">
{% for note in question.notes.all %}
<li {% if note.complete %}class='complete' {% endif %}>
{{ note.created_on }} by
{% if note.user_author %}
{{note.user_author}}
{% else %}
{{ note.author }} [unregistered]
{% endif %}
{{note.note_type}} / {{ note.note }}
{% if not note.complete %}
(<a href="{% url 'feedback_mark_complete' pk=note.pk %}">Mark complete</a>)
{% endif %}
{% if request.user.is_superuser %}
(<a href="{% url 'feedback_note_delete' pk=note.pk %}">Delete</a>)
{% endif %}
</li>
<li {% if note.complete %}class='complete' {% endif %}>
{{ note.created_on }} by
{% if note.user_author %}
{{note.user_author}}
{% else %}
{{ note.author }} [unregistered]
{% endif %}
{{note.note_type}} / {{ note.note }}
{% if not note.complete %}
(<a href="{% url 'feedback_mark_complete' pk=note.pk %}">Mark complete</a>)
{% endif %}
{% if request.user.is_superuser %}
(<a href="{% url 'feedback_note_delete' pk=note.pk %}">Delete</a>)
{% endif %}
</li>
{% endfor %}
{% if not question.notes.all %}No notes to display.{% endif %}
</ul>
</ul>