.
This commit is contained in:
@@ -2,40 +2,42 @@
|
||||
|
||||
|
||||
{% block content %}
|
||||
<h2>Add Feedback</h2>
|
||||
Adding feedback for {{question_type}} question - {{question}}
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.non_field_errors }}
|
||||
<h2>Add Feedback</h2>
|
||||
<div class="alert alert-info" role="alert">
|
||||
Adding feedback for {{question_type}} question [{{question.id}}] - {{question}}
|
||||
</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 %}
|
||||
{% 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>
|
||||
<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 %}
|
||||
|
||||
Reference in New Issue
Block a user