0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Extend generic base template for workflows and tasks create and edit templates

This commit is contained in:
Sage Abdullah 2023-09-12 15:07:20 +01:00
parent fc33e4a3d7
commit 21b7383a41
No known key found for this signature in database
GPG Key ID: EB1A33CC51CC0217
4 changed files with 24 additions and 15 deletions

View File

@ -1,8 +1,6 @@
{% extends "wagtailadmin/base.html" %}
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block titletag %}{{ view.page_title }}{% endblock %}
{% block extra_css %}
{{ block.super }}
{{ media.css }}
@ -14,8 +12,14 @@
{{ media.js }}
{% endblock %}
{% block main_header %}
{% include "wagtailadmin/shared/header.html" with title=page_title subtitle=page_subtitle icon=header_icon merged=1 only %}
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon merged=1 only %}
{% block header %}
{{ block.super }}
{% endblock %}
<form action="{{ view.get_add_url }}" enctype="multipart/form-data" method="POST" novalidate>
{% csrf_token %}

View File

@ -1,4 +1,4 @@
{% extends "wagtailadmin/base.html" %}
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block titletag %}{{ view.page_title }}{% endblock %}
@ -9,8 +9,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon only %}
{% block header %}
{{ block.super }}
{% endblock %}
<form action="{{ view.get_add_url }}" enctype="multipart/form-data" method="POST" novalidate>
{% csrf_token %}

View File

@ -1,8 +1,6 @@
{% extends "wagtailadmin/base.html" %}
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block titletag %}{{ view.page_title }}{% endblock %}
{% block extra_css %}
{{ block.super }}
{{ media.css }}
@ -14,8 +12,14 @@
{{ media.js }}
{% endblock %}
{% block main_header %}
{% include "wagtailadmin/shared/header.html" with title=page_title subtitle=page_subtitle icon=header_icon merged=1 only %}
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 only %}
{% block header %}
{{ block.super }}
{% endblock %}
<form action="{% block form_action %}{{ view.edit_url }}{% endblock %}"{% if is_multipart %} enctype="multipart/form-data"{% endif %} method="POST" novalidate>
{% csrf_token %}

View File

@ -1,15 +1,15 @@
{% extends "wagtailadmin/base.html" %}
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block titletag %}{{ view.page_title }}{% endblock %}
{% block extra_js %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_js.html" %}
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon only %}
{% block header %}
{{ block.super }}
{% endblock %}
<form action="{{ view.edit_url }}" enctype="multipart/form-data" method="POST" novalidate>
{% csrf_token %}