48 lines
1.4 KiB
HTML
Executable File
48 lines
1.4 KiB
HTML
Executable File
{% extends "base.html" %}
|
|
|
|
|
|
{% block content %}
|
|
<h2>Add Feedback</h2>
|
|
<div class="alert alert-info" role="alert">
|
|
Adding feedback for {{question_type}}/{{question.id}}
|
|
|
|
{% if user.is_superuser %}
|
|
<br/> {{question}}
|
|
{% endif %}
|
|
</div>
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{{ form.non_field_errors }}
|
|
|
|
{% if user.is_authenticated %}
|
|
User: {{user}}
|
|
{% else %}
|
|
<div class="fieldWrapper">
|
|
{{ form.author.errors }}
|
|
<label for="{{ form.author.id_for_label }}">Author</label>
|
|
{{ form.author }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="fieldWrapper">
|
|
{{ form.content_type.errors }}
|
|
{{ form.content_type }}
|
|
</div>
|
|
<div class="fieldWrapper">
|
|
{{ form.object_id.errors }}
|
|
{{ form.object_id }}
|
|
</div>
|
|
<div class="fieldWrapper">
|
|
{{ form.note_type.errors }}
|
|
<label for="{{ form.note_type.id_for_label }}">Note type</label>
|
|
{{ form.note_type }}
|
|
</div>
|
|
<div class="fieldWrapper">
|
|
{{ form.note.errors }}
|
|
<label for="{{ form.note.id_for_label }}">Additional information</label><br/>
|
|
{{ form.note }}
|
|
</div>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
{% endblock %}
|