Remove spurious action button on 'create workflow task' view (#7762)

* Remove spurious action button on 'create workflow task' view

Fixes #7758. 1fe36d2597 fixed the generic base template to stop the `action_url` from leaking into the header, but create_task.html bypasses the base template so needs the fix applying separately.

* Remove spurious action button on 'edit workflow task' view

* Remove spurious action button on 'edit workflow' view
pull/8274/head
Matt Westcott 2021-12-08 17:06:07 +00:00
rodzic 432b5b2e30
commit dadddee46c
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -22,7 +22,7 @@
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon merged=1 %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon merged=1 only %}
<form action="{{ view.get_add_url }}" enctype="multipart/form-data" method="POST" novalidate>
{% csrf_token %}

Wyświetl plik

@ -26,7 +26,7 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 only %}
<form action="{% block form_action %}{{ view.edit_url }}{% endblock %}"{% if is_multipart %} enctype="multipart/form-data"{% endif %} method="POST" novalidate>
{% csrf_token %}

Wyświetl plik

@ -23,7 +23,7 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 only %}
<form action="{{ view.edit_url }}" enctype="multipart/form-data" method="POST" novalidate>
{% csrf_token %}