-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wagtail 6.3 templates should be the default
- Loading branch information
1 parent
331eb1d
commit c21c839
Showing
7 changed files
with
86 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
wagtailmenus/templates/wagtailmenus/includes/header_with_site_switcher.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{% extends 'wagtailmenus/includes/header.html' %} | ||
|
||
{% block right_content %} | ||
{% if site_switcher %} | ||
<form method="get" id="settings-site-switch"> | ||
<label for="{{ site_switcher.site.id_for_label }}"> | ||
Site: | ||
</label> | ||
{{ site_switcher.site }} | ||
</form> | ||
{% endif %} | ||
{% endblock %} | ||
{% if site_switcher %} | ||
<div class="w-field__wrapper " data-field-wrapper=""> | ||
<form method="get" id="settings-site-switch"> | ||
<label class="w-field__label" for="{{ site_switcher.site.id_for_label }}" id="{{ site_switcher.site.id_for_label }}-label"> | ||
Site: <span class="w-required-mark">*</span> | ||
</label> | ||
<div class="w-field__input" data-field-input=""> | ||
{{ site_switcher.site }} | ||
</div> | ||
</form> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
wagtailmenus/templates/wagtailmenus/wagtail_63/includes/header_with_site_switcher.html
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
wagtailmenus/templates/wagtailmenus/wagtail_63/mainmenu_edit.html
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ailmenus/templates/wagtailmenus/wagtail_before_63/includes/header_with_site_switcher.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends 'wagtailmenus/includes/header.html' %} | ||
|
||
{% block right_content %} | ||
{% if site_switcher %} | ||
<form method="get" id="settings-site-switch"> | ||
<label for="{{ site_switcher.site.id_for_label }}"> | ||
Site: | ||
</label> | ||
{{ site_switcher.site }} | ||
</form> | ||
{% endif %} | ||
{% endblock %} |
57 changes: 57 additions & 0 deletions
57
wagtailmenus/templates/wagtailmenus/wagtail_before_63/mainmenu_edit.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% extends "wagtailadmin/base.html" %} | ||
{% load wagtailadmin_tags i18n %} | ||
{% block titletag %}{% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}Editing {{ snippet_type_name }} - {{ object }}{% endblocktrans %}{% endblock %} | ||
{% block bodyclass %}{% if locked_for_user %}content-locked{% endif %}{% endblock %} | ||
{% block content %} | ||
{% include 'wagtailadmin/shared/headers/slim_header.html' %} | ||
|
||
{% include "wagtailmenus/wagtail_before_63/includes/header_with_site_switcher.html" with title=object icon=header_icon merged=1 %} | ||
|
||
<div class="row row-flush"> | ||
|
||
<div class="{% if uc_enabled %}col10 divider-after{% else %}col12{% endif %}"> | ||
<form action="{{ action_url }}" method="POST" novalidate{% if form.is_multipart %} enctype="multipart/form-data"{% endif %} data-edit-form> | ||
{% csrf_token %} | ||
<div class="nice-padding"> | ||
{{ panel.render_form_content }} | ||
</div> | ||
<footer class="footer"> | ||
<nav aria-label="{% trans 'Actions' %}"> | ||
<ul> | ||
<li class="actions actions--primary footer__container"> | ||
<div class="dropdown dropup dropdown-button match-width {% if view.view_name == 'revisions_revert' %}warning{% endif %}"> | ||
{{ action_menu.render_html }} | ||
</div> | ||
</li> | ||
</ul> | ||
</nav> | ||
</footer> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block extra_css %} | ||
{{ block.super }} | ||
{{ media.css }} | ||
{{ view.media.css }} | ||
{% endblock %} | ||
{% block extra_js %} | ||
{{ block.super }} | ||
{% include "wagtailadmin/pages/_editor_js.html" %} | ||
{{ media.js }} | ||
{{ view.media.js }} | ||
|
||
<script> | ||
// Set wagtailConfig.ACTIVE_CONTENT_LOCALE if this is a translated page | ||
// This value may be used by JS widgets on the form | ||
{% if locale %} | ||
window.wagtailConfig = window.wagtailConfig || {}; | ||
window.wagtailConfig.ACTIVE_CONTENT_LOCALE = '{{ locale.language_code|escapejs }}'; | ||
{% endif %} | ||
</script> | ||
|
||
{% if workflow_enabled %} | ||
{% include "wagtailadmin/shared/_workflow_init.html" %} | ||
{% endif %} | ||
{% endblock %} |