Merge pull request #2695 from chdorner/book-edit-form-validation-notification

Show notification banner on top of form when book failed to update
This commit is contained in:
Mouse Reeve 2023-03-12 16:33:34 -07:00 committed by GitHub
commit 48889ee6c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,14 @@
{% endif %} {% endif %}
</header> </header>
{% if form.errors %}
<div class="block">
<p class="notification is-danger is-light">
{% trans "Failed to save book, see errors below for more information." %}
</p>
</div>
{% endif %}
<form <form
class="block" class="block"
{% if book.id %} {% if book.id %}