kopia lustrzana https://github.com/wagtail/wagtail
Add unsaved changes warning to generic create/edit template
With this added, we can now simplify the overrides in snippets templates for the footer actions to only override the action buttons to use the class component.pull/12425/head
rodzic
45d9efdf99
commit
2c4a8bac4d
|
@ -66,6 +66,9 @@
|
|||
|
||||
{% endblock %}
|
||||
</nav>
|
||||
{% block unsaved_changes_warning %}
|
||||
{% include "wagtailadmin/shared/unsaved_changes_warning.html" %}
|
||||
{% endblock%}
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</form>
|
||||
|
|
|
@ -10,11 +10,6 @@
|
|||
{% include 'wagtailadmin/shared/headers/slim_header.html' with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url buttons=header_buttons %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<footer class="footer w-grid md:w-grid-flow-col">
|
||||
<nav class="actions actions--primary footer__container" aria-label="{% trans 'Actions' %}">
|
||||
{{ action_menu.render_html }}
|
||||
</nav>
|
||||
{% include "wagtailadmin/shared/unsaved_changes_warning.html" %}
|
||||
</footer>
|
||||
{% block actions %}
|
||||
{{ action_menu.render_html }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -11,13 +11,8 @@
|
|||
{% include 'wagtailadmin/shared/headers/slim_header.html' with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url buttons=header_buttons %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<footer class="footer w-grid md:w-grid-flow-col">
|
||||
<nav class="actions actions--primary footer__container" aria-label="{% trans 'Actions' %}">
|
||||
{{ action_menu.render_html }}
|
||||
</nav>
|
||||
{% include "wagtailadmin/shared/unsaved_changes_warning.html" %}
|
||||
</footer>
|
||||
{% block actions %}
|
||||
{{ action_menu.render_html }}
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_js %}
|
||||
|
|
Ładowanie…
Reference in New Issue