diff --git a/generic/templates/generic/examcollection_form.html b/generic/templates/generic/examcollection_form.html index 7946cf48..056eeafb 100755 --- a/generic/templates/generic/examcollection_form.html +++ b/generic/templates/generic/examcollection_form.html @@ -18,119 +18,119 @@

Edit Exam Collection {{ object.name }}

-
- {% csrf_token %} - {% if form.non_field_errors %} -
{{ form.non_field_errors }}
- {% endif %} + + {% csrf_token %} + {% if form.non_field_errors %} +
{{ form.non_field_errors }}
+ {% endif %} - + #examcollection-form .mb-3 { + padding: .75rem 1rem; + margin-bottom: 1rem; + border-radius: .375rem; + background: rgba(255,255,255,0.02); + border-left: 3px solid rgba(255,255,255,0.03); + } + #examcollection-form .mb-3:nth-child(odd) { + background: rgba(255,255,255,0.015); + } + #examcollection-form .form-section-divider { + height: 1px; + background: rgba(255,255,255,0.04); + margin: .5rem 0 1rem 0; + border-radius: 2px; + } + #examcollection-form .form-section-title { + font-size: .95rem; + margin-bottom: .5rem; + font-weight: 600; + color: var(--bs-light); + } + -
-
-
-
- - {{ form.name }} - {% if form.name.errors %} -
{{ form.name.errors }}
- {% endif %} -
-
- -
-
- - {{ form.date }} - {% if form.date.errors %} -
{{ form.date.errors }}
- {% endif %} -
-
- -
-
- {{ form.archive }} - -
-
-
- -
- -
-
Authors
-
- {{ form.author }} - {% if form.author.errors %} -
{{ form.author.errors }}
- {% endif %} -
-
- -
- {% for label, field_name, bound in exam_groups %} -
-
-
{{ label }}
-
- {{ bound }} - {% if bound.errors %} -
{{ bound.errors }}
- {% endif %} -
-
-
- {% endfor %} +
+
+
+
+ + {{ form.name }} + {% if form.name.errors %} +
{{ form.name.errors }}
+ {% endif %}
- + var groups = Array.from(form.querySelectorAll(':scope > .mb-3')); + if (groups.length <= 1) return; + for (var i = 1; i < groups.length; i++) { + var divider = document.createElement('div'); + divider.className = 'form-section-divider'; + groups[i].parentNode.insertBefore(divider, groups[i]); + } + })(); + -
- - Back to collections - -
- +
+ + Back to collections + +
+