Add QuestionReviewForm for handling question review submissions and update views for form integration
This commit is contained in:
@@ -4,15 +4,13 @@
|
||||
hx-swap="innerHTML"
|
||||
class="d-flex gap-2 align-items-start">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="form-select-sm">
|
||||
<select name="status" class="form-select form-select-sm">
|
||||
<option value="AC" {% if latest and latest.status == 'AC' %}selected{% endif %}>Accepted</option>
|
||||
<option value="OD" {% if latest and latest.status == 'OD' %}selected{% endif %}>Outdated</option>
|
||||
<option value="ER" {% if latest and latest.status == 'ER' %}selected{% endif %}>Error</option>
|
||||
<option value="RJ" {% if latest and latest.status == 'RJ' %}selected{% endif %}>Rejected</option>
|
||||
</select>
|
||||
{{ form.status }}
|
||||
</div>
|
||||
<input type="text" name="comment" class="form-control form-control-sm" placeholder="Comment (optional)" value="{% if latest %}{{ latest.comment }}{% endif %}">
|
||||
|
||||
{{ form.comment }}
|
||||
|
||||
<div>
|
||||
<button class="btn btn-sm btn-primary" type="submit">Save</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user