Refactor exam_groups_edit.html to use crispy forms for improved form rendering and styling
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{% extends exam.get_app_name|add:'/exams.html' %}
|
{% extends exam.get_app_name|add:'/exams.html' %}
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Exam: {{exam}}</h1>
|
<h1>Exam: {{exam}}</h1>
|
||||||
@@ -12,10 +13,8 @@
|
|||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
{{ form|crispy }}
|
||||||
{{ form }}
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
</table>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user