Hide the cancel button and add title/subtitle to notification page

This commit is contained in:
2022-12-18 17:27:40 +00:00
parent 7ee698f457
commit 246674b03e
3 changed files with 31 additions and 6 deletions

View File

@@ -1,5 +1,10 @@
{% include 'partials/notify.html' %}
{% if page_title is not None %}
<h1 class="title is-4">{{ page_title }}</h1>
{% endif %}
{% if page_subtitle is not None %}
<h1 class="subtitle">{{ page_subtitle }}</h1>
{% endif %}
{% load crispy_forms_tags %}
{% load crispy_forms_bulma_field %}
@@ -10,11 +15,13 @@
hx-swap="innerHTML">
{% csrf_token %}
{{ form|crispy }}
<button
type="button"
class="button is-light modal-close-button">
Cancel
</button>
{% if hide_cancel is not True %}
<button
type="button"
class="button is-light modal-close-button">
Cancel
</button>
{% endif %}
<button type="submit" class="button modal-close-button">Submit</button>
</form>