kopia lustrzana https://github.com/wagtail/wagtail
Introduce footer actions container to generic create/edit template
This only moves the buttons to the buttom inside the indigo/black container as a single row. It does not introduce the dropdown button yet.pull/12425/head
rodzic
5b79c27dc9
commit
3986b45dec
|
@ -50,8 +50,14 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block actions %}
|
||||
<button type="submit" class="button">{{ submit_button_label }}</button>
|
||||
{% block footer %}
|
||||
<footer class="footer w-grid md:w-grid-flow-col">
|
||||
<nav class="actions actions--primary footer__container" aria-label="{% trans 'Actions' %}">
|
||||
{% block actions %}
|
||||
<button type="submit" class="button">{{ submit_button_label }}</button>
|
||||
{% endblock %}
|
||||
</nav>
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% 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 actions %}
|
||||
{% 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 }}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{% 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 actions %}
|
||||
{% 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 }}
|
||||
|
|
Ładowanie…
Reference in New Issue