-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add official Wagtail 6.2 support (#813)
- Loading branch information
1 parent
f5690d0
commit 9741735
Showing
12 changed files
with
143 additions
and
44 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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
28 changes: 12 additions & 16 deletions
28
wagtail_localize/locales/templates/wagtaillocales/confirm_delete.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,22 +1,18 @@ | ||
{% extends "wagtailadmin/generic/confirm_delete.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=view.get_page_subtitle icon=view.header_icon %} | ||
|
||
<div class="nice-padding"> | ||
{% if can_delete %} | ||
<p>{{ view.confirmation_message }}</p> | ||
|
||
<form action="{{ view.get_delete_url }}" method="POST"> | ||
{% csrf_token %} | ||
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" /> | ||
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a> | ||
</form> | ||
{% else %} | ||
<p>{{ view.cannot_delete_message }}</p> | ||
{% block main_content %} | ||
{% if can_delete %} | ||
<p>{{ view.confirmation_message }}</p> | ||
|
||
<form action="{{ view.get_delete_url }}" method="POST"> | ||
{% csrf_token %} | ||
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" /> | ||
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a> | ||
{% endif %} | ||
</div> | ||
</form> | ||
{% else %} | ||
<p>{{ view.cannot_delete_message }}</p> | ||
|
||
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a> | ||
{% endif %} | ||
{% endblock %} |
51 changes: 51 additions & 0 deletions
51
wagtail_localize/templates/wagtail_localize/admin/translations_report_results.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,51 @@ | ||
{% extends 'wagtailadmin/reports/base_report_results.html' %} | ||
{% load i18n wagtailadmin_tags %} | ||
|
||
{% block results %} | ||
<table class="listing"> | ||
<thead> | ||
<tr> | ||
<th> | ||
{% trans 'Content type' %} | ||
</th> | ||
<th> | ||
{% trans 'Source' %} | ||
</th> | ||
<th> | ||
{% trans 'Target' %} | ||
</th> | ||
<th> | ||
{% trans 'Status' %} | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for translation in object_list %} | ||
<tr> | ||
<td> | ||
{{ translation.source.specific_content_type.name|capfirst }} | ||
</td> | ||
<td> | ||
<a href="{{ translation.source.get_source_instance_edit_url }}"> | ||
{{ translation.source.object_repr }} ({{ translation.source.locale }}) | ||
</a> | ||
</td> | ||
<td> | ||
{% with translation.get_target_instance as target_instance %} | ||
<a href="{{ translation.get_target_instance_edit_url }}"> | ||
{{ target_instance.get_admin_display_title|default:target_instance }} ({{ translation.target_locale }}) | ||
</a> | ||
{% endwith %} | ||
</td> | ||
<td> | ||
{{ translation.get_status_display }} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endblock %} | ||
|
||
{% block no_results_message %} | ||
<p>{% trans "No translations found." %}</p> | ||
{% endblock %} |
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
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
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