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' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Exam: {{exam}}</h1>
|
||||
@@ -12,10 +13,8 @@
|
||||
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ form }}
|
||||
</table>
|
||||
<input type="submit" value="Submit">
|
||||
{{ form|crispy }}
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user