Refactor QuestionReviewForm to use RadioSelect for status and update template for improved layout

This commit is contained in:
Ross
2025-10-22 22:01:49 +01:00
parent be68fcd0b9
commit 68f45c8561
2 changed files with 13 additions and 6 deletions
@@ -5,11 +5,18 @@
class="d-flex gap-2 align-items-start">
{% csrf_token %}
<div class="form-select-sm">
{{ form.status }}
<div class="d-flex gap-2 align-items-center">
{% for radio in form.status %}
<div class="form-check form-check-inline">
{{ radio.tag }}
<label class="form-check-label" for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label>
</div>
{% endfor %}
</div>
<div>
{{ form.comment }}
</div>
<div>
<button class="btn btn-sm btn-primary" type="submit">Save</button>