From 1ad6b4885e15b63d5fdb3d9d7ba374f219ff2121 Mon Sep 17 00:00:00 2001 From: Adil Mohak Date: Mon, 30 Sep 2024 23:59:21 +0300 Subject: [PATCH] Minor design update --- templates/course/course_allocation_form.html | 27 +++----------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/templates/course/course_allocation_form.html b/templates/course/course_allocation_form.html index 34adba1..a1a6a1d 100644 --- a/templates/course/course_allocation_form.html +++ b/templates/course/course_allocation_form.html @@ -1,5 +1,5 @@ -{% load i18n %} {% extends 'base.html' %} +{% load i18n %} {% block title %}{{ title }} | {% trans 'Learning management system' %}{% endblock title %} {% load crispy_forms_tags %} {% load static %} @@ -14,19 +14,7 @@ -{% if messages %} - {% for message in messages %} - {% if message.tags == 'error' %} -
- {{ message }} -
- {% else %} -
- {{ message }} -
- {% endif %} - {% endfor %} -{% endif %} +{% include 'snippets/messages.html' %}
@@ -34,15 +22,8 @@

{% trans 'Course Allocation Form' %}

{% csrf_token %} - -
- {{ form.lecturer.label }}{{ form.lecturer }} - {{ form.lecturer.errors }} -
-
- {{ form.courses.label }}{{ form.courses }} - {{ form.courses.errors }} -
+ {{ form.lecturer|as_crispy_field }} + {{ form.courses|as_crispy_field }} {% for course in form.courses.all %}{{ course }}{% endfor %}