wagtail 6.2.2__py3-none-any.whl → 6.3rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wagtail/__init__.py +1 -1
- wagtail/actions/copy_for_translation.py +6 -0
- wagtail/actions/publish_revision.py +3 -3
- wagtail/admin/action_menu.py +5 -3
- wagtail/admin/forms/account.py +1 -1
- wagtail/admin/icons.py +2 -6
- wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/cy/LC_MESSAGES/django.po +32 -0
- wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/dv/LC_MESSAGES/django.po +28 -0
- wagtail/admin/locale/en/LC_MESSAGES/django.po +451 -485
- wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +7 -7
- wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/django.po +150 -0
- wagtail/admin/locale/sl/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/djangojs.po +9 -2
- wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ug/LC_MESSAGES/django.po +3250 -196
- wagtail/admin/localization.py +8 -2
- wagtail/admin/panels/model_utils.py +1 -1
- wagtail/admin/site_summary.py +0 -2
- wagtail/admin/static/wagtailadmin/css/core.css +1 -1
- wagtail/admin/static/wagtailadmin/css/panels/draftail.css +1 -1
- wagtail/admin/static/wagtailadmin/images/email-header.jpg +0 -0
- wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +12 -0
- wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
- wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
- wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +1 -1
- wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
- wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
- wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
- wagtail/admin/staticfiles.py +6 -4
- wagtail/admin/templates/wagtailadmin/account/account.html +42 -59
- wagtail/admin/templates/wagtailadmin/admin_base.html +0 -28
- wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +1 -1
- wagtail/admin/templates/wagtailadmin/chooser/_search_results.html +7 -5
- wagtail/admin/templates/wagtailadmin/chooser/tables/page_navigate_to_children_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/generic/chooser/results.html +7 -5
- wagtail/admin/templates/wagtailadmin/generic/edit.html +0 -8
- wagtail/admin/templates/wagtailadmin/generic/form.html +60 -17
- wagtail/admin/templates/wagtailadmin/generic/index.html +17 -0
- wagtail/admin/templates/wagtailadmin/generic/index_results.html +9 -35
- wagtail/admin/templates/wagtailadmin/generic/inspect.html +2 -21
- wagtail/admin/templates/wagtailadmin/generic/listing.html +11 -17
- wagtail/admin/templates/wagtailadmin/generic/listing_results.html +19 -1
- wagtail/admin/templates/wagtailadmin/home/account_summary.html +26 -0
- wagtail/admin/templates/wagtailadmin/home/locked_pages.html +28 -18
- wagtail/admin/templates/wagtailadmin/home/recent_edits.html +28 -17
- wagtail/admin/templates/wagtailadmin/home/site_summary_pages.html +2 -2
- wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html +35 -13
- wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html +28 -18
- wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +43 -32
- wagtail/admin/templates/wagtailadmin/home.html +22 -5
- wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/menu.html +1 -11
- wagtail/admin/templates/wagtailadmin/pages/action_menu/menu_item.html +1 -6
- wagtail/admin/templates/wagtailadmin/pages/action_menu/page_locked.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/publish.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/save_draft.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html +12 -6
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html +12 -7
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html +17 -11
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html +15 -9
- wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html +9 -9
- wagtail/admin/templates/wagtailadmin/pages/confirm_move.html +2 -2
- wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html +4 -4
- wagtail/admin/templates/wagtailadmin/pages/create.html +15 -34
- wagtail/admin/templates/wagtailadmin/pages/edit.html +15 -30
- wagtail/admin/templates/wagtailadmin/pages/explorable_index.html +6 -0
- wagtail/admin/templates/wagtailadmin/pages/explorable_index_results.html +60 -0
- wagtail/admin/templates/wagtailadmin/pages/index.html +1 -36
- wagtail/admin/templates/wagtailadmin/pages/index_results.html +2 -50
- wagtail/admin/templates/wagtailadmin/pages/listing/_locked_indicator.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html +3 -3
- wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing.html +24 -0
- wagtail/admin/templates/wagtailadmin/pages/search.html +1 -20
- wagtail/admin/templates/wagtailadmin/pages/search_results.html +27 -25
- wagtail/admin/templates/wagtailadmin/permissions/includes/collection_member_permissions_formset.html +0 -1
- wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_report.html +2 -2
- wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_types_usage.html +6 -6
- wagtail/admin/templates/wagtailadmin/reports/workflow_tasks_results.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/action_menu/menu.html +14 -0
- wagtail/admin/templates/wagtailadmin/shared/action_menu/menu_item.html +6 -0
- wagtail/admin/templates/wagtailadmin/shared/avatar.html +13 -3
- wagtail/admin/templates/wagtailadmin/shared/header.html +0 -5
- wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html +4 -1
- wagtail/admin/templates/wagtailadmin/shared/pagination_nav.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panel_toggle.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/locale.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/usage.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/side_panels/preview.html +94 -52
- wagtail/admin/templates/wagtailadmin/{pages/_unsaved_changes_warning.html → shared/unsaved_changes_warning.html} +4 -4
- wagtail/admin/templates/wagtailadmin/shared/usage_summary.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +1 -7
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/listing.html +1 -0
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/{list.html → listing_results.html} +33 -35
- wagtail/admin/templates/wagtailadmin/tables/references_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/workflows/create.html +11 -36
- wagtail/admin/templates/wagtailadmin/workflows/create_task.html +0 -38
- wagtail/admin/templates/wagtailadmin/workflows/edit.html +44 -74
- wagtail/admin/templates/wagtailadmin/workflows/edit_task.html +27 -66
- wagtail/admin/templates/wagtailadmin/workflows/includes/task_usage_cell.html +4 -2
- wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_tasks_cell.html +4 -4
- wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_used_by_cell.html +15 -11
- wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/results.html +7 -5
- wagtail/admin/templatetags/wagtailadmin_tags.py +51 -22
- wagtail/admin/tests/pages/test_content_type_use_view.py +82 -2
- wagtail/admin/tests/pages/test_edit_page.py +70 -0
- wagtail/admin/tests/pages/test_explorer_view.py +65 -4
- wagtail/admin/tests/pages/test_page_search.py +8 -7
- wagtail/admin/tests/pages/test_page_usage.py +3 -1
- wagtail/admin/tests/pages/test_preview.py +208 -63
- wagtail/admin/tests/pages/test_reorder_page.py +91 -1
- wagtail/admin/tests/pages/test_view_draft.py +32 -1
- wagtail/admin/tests/pages/test_workflow_history.py +288 -7
- wagtail/admin/tests/test_account_management.py +23 -3
- wagtail/admin/tests/test_audit_log.py +24 -2
- wagtail/admin/tests/test_collections_views.py +17 -5
- wagtail/admin/tests/test_dashboard.py +1 -1
- wagtail/admin/tests/test_edit_handlers.py +3 -2
- wagtail/admin/tests/test_icon_sprite.py +4 -0
- wagtail/admin/tests/test_privacy.py +5 -19
- wagtail/admin/tests/test_reports_views.py +1 -1
- wagtail/admin/tests/test_site_summary.py +3 -3
- wagtail/admin/tests/test_templatetags.py +27 -3
- wagtail/admin/tests/test_upgrade_notification.py +71 -18
- wagtail/admin/tests/test_views.py +2 -2
- wagtail/admin/tests/test_views_generic.py +13 -0
- wagtail/admin/tests/test_widgets.py +3 -3
- wagtail/admin/tests/test_workflows.py +172 -27
- wagtail/admin/tests/tests.py +1 -1
- wagtail/admin/tests/viewsets/test_model_viewset.py +55 -3
- wagtail/admin/ui/side_panels.py +19 -0
- wagtail/admin/ui/sidebar.py +4 -3
- wagtail/admin/ui/tables/__init__.py +14 -1
- wagtail/admin/ui/tables/pages.py +6 -1
- wagtail/admin/urls/pages.py +10 -1
- wagtail/admin/urls/workflows.py +6 -1
- wagtail/admin/views/account.py +5 -1
- wagtail/admin/views/collections.py +0 -2
- wagtail/admin/views/generic/base.py +118 -1
- wagtail/admin/views/generic/history.py +158 -26
- wagtail/admin/views/generic/models.py +113 -99
- wagtail/admin/views/home.py +24 -9
- wagtail/admin/views/page_privacy.py +54 -30
- wagtail/admin/views/pages/history.py +11 -4
- wagtail/admin/views/pages/listing.py +76 -89
- wagtail/admin/views/pages/preview.py +1 -1
- wagtail/admin/views/pages/search.py +27 -71
- wagtail/admin/views/pages/usage.py +63 -24
- wagtail/admin/views/pages/utils.py +4 -3
- wagtail/admin/views/reports/base.py +0 -6
- wagtail/admin/views/workflows.py +67 -25
- wagtail/admin/viewsets/model.py +4 -3
- wagtail/admin/widgets/chooser.py +2 -1
- wagtail/api/v2/tests/test_pages.py +15 -2
- wagtail/blocks/field_block.py +15 -3
- wagtail/blocks/static_block.py +3 -0
- wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +29 -1
- wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +15 -11
- wagtail/contrib/forms/templates/wagtailforms/confirm_delete.html +1 -0
- wagtail/contrib/forms/templates/wagtailforms/index.html +1 -1
- wagtail/contrib/forms/templates/wagtailforms/index_results.html +1 -1
- wagtail/contrib/forms/templates/wagtailforms/list_submissions.html +2 -1
- wagtail/contrib/forms/templates/wagtailforms/panels/form_responses_panel.html +2 -2
- wagtail/contrib/forms/tests/test_views.py +234 -35
- wagtail/contrib/forms/utils.py +8 -14
- wagtail/contrib/forms/views.py +72 -27
- wagtail/contrib/frontend_cache/backends/azure.py +1 -1
- wagtail/contrib/frontend_cache/backends/cloudfront.py +2 -2
- wagtail/contrib/frontend_cache/backends/dummy.py +11 -0
- wagtail/contrib/frontend_cache/tests.py +31 -37
- wagtail/contrib/frontend_cache/utils.py +12 -5
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +16 -1
- wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +20 -24
- wagtail/contrib/redirects/models.py +16 -1
- wagtail/contrib/redirects/signal_handlers.py +18 -3
- wagtail/contrib/redirects/templates/wagtailredirects/add.html +5 -16
- wagtail/contrib/redirects/templates/wagtailredirects/import_summary.html +1 -1
- wagtail/contrib/redirects/tests/test_redirects.py +49 -6
- wagtail/contrib/redirects/tests/test_signal_handlers.py +42 -1
- wagtail/contrib/redirects/views.py +27 -3
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +60 -1
- wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +12 -18
- wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/add.html +5 -8
- wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/edit.html +15 -10
- wagtail/contrib/search_promotions/tests.py +13 -2
- wagtail/contrib/search_promotions/views.py +15 -3
- wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +6 -1
- wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +2 -10
- wagtail/contrib/settings/templates/wagtailsettings/edit.html +12 -45
- wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +13 -1
- wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +3 -0
- wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +4 -4
- wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +5 -2
- wagtail/contrib/simple_translation/tests/test_views.py +51 -0
- wagtail/contrib/simple_translation/wagtail_hooks.py +16 -11
- wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +5 -1
- wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +27 -1
- wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/blocks.py +25 -0
- wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +12 -1
- wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +10 -10
- wagtail/contrib/typed_table_block/tests.py +24 -1
- wagtail/coreutils.py +5 -11
- wagtail/documents/admin_urls.py +2 -2
- wagtail/documents/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/cy/LC_MESSAGES/django.po +10 -0
- wagtail/documents/locale/en/LC_MESSAGES/django.po +61 -76
- wagtail/documents/migrations/0014_alter_document_file_size.py +18 -0
- wagtail/documents/models.py +1 -1
- wagtail/documents/rich_text/__init__.py +1 -3
- wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html +5 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html +11 -5
- wagtail/documents/templates/wagtaildocs/documents/add.html +13 -41
- wagtail/documents/templates/wagtaildocs/documents/edit.html +28 -56
- wagtail/documents/templates/wagtaildocs/documents/index.html +1 -4
- wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html +2 -2
- wagtail/documents/templates/wagtaildocs/multiple/add.html +36 -41
- wagtail/documents/tests/test_admin_views.py +64 -6
- wagtail/documents/tests/test_site_summary.py +3 -3
- wagtail/documents/views/documents.py +103 -113
- wagtail/documents/views/multiple.py +19 -1
- wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/oembed_providers.py +9 -19
- wagtail/fields.py +43 -27
- wagtail/images/admin_urls.py +2 -2
- wagtail/images/blocks.py +230 -2
- wagtail/images/fields.py +17 -29
- wagtail/images/image_operations.py +1 -1
- wagtail/images/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/cy/LC_MESSAGES/django.po +128 -1
- wagtail/images/locale/en/LC_MESSAGES/django.po +119 -129
- wagtail/images/migrations/0025_alter_image_file_alter_rendition_file.py +36 -43
- wagtail/images/migrations/0027_image_description.py +20 -0
- wagtail/images/models.py +120 -45
- wagtail/images/rich_text/__init__.py +1 -3
- wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
- wagtail/images/static/wagtailimages/js/image-block.js +1 -0
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html +5 -1
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html +11 -5
- wagtail/images/templates/wagtailimages/chooser/results.html +2 -2
- wagtail/images/templates/wagtailimages/homepage/site_summary_images.html +2 -2
- wagtail/images/templates/wagtailimages/images/_file_field.html +2 -2
- wagtail/images/templates/wagtailimages/images/add.html +13 -31
- wagtail/images/templates/wagtailimages/images/edit.html +53 -82
- wagtail/images/templates/wagtailimages/images/index.html +1 -4
- wagtail/images/templates/wagtailimages/images/url_generator.html +1 -1
- wagtail/images/templates/wagtailimages/multiple/add.html +40 -47
- wagtail/images/templates/wagtailimages/widgets/image.html +5 -0
- wagtail/images/templates/wagtailimages/widgets/image_chooser.html +1 -1
- wagtail/images/tests/test_admin_views.py +70 -10
- wagtail/images/tests/test_blocks.py +367 -1
- wagtail/images/tests/test_image_operations.py +23 -0
- wagtail/images/tests/test_models.py +20 -0
- wagtail/images/tests/test_signal_handlers.py +99 -95
- wagtail/images/tests/test_site_summary.py +3 -3
- wagtail/images/tests/test_templatetags.py +11 -7
- wagtail/images/tests/tests.py +4 -0
- wagtail/images/views/images.py +103 -104
- wagtail/images/views/multiple.py +17 -1
- wagtail/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/cy/LC_MESSAGES/django.po +3 -0
- wagtail/locale/en/LC_MESSAGES/django.po +137 -125
- wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/sl/LC_MESSAGES/django.po +3 -0
- wagtail/locales/locale/en/LC_MESSAGES/django.po +8 -8
- wagtail/locales/views.py +4 -1
- wagtail/migrations/0089_log_entry_data_json_null_to_object.py +1 -7
- wagtail/models/__init__.py +122 -14
- wagtail/models/audit_log.py +1 -3
- wagtail/models/i18n.py +1 -2
- wagtail/project_template/Dockerfile +3 -3
- wagtail/project_template/requirements.txt +2 -2
- wagtail/query.py +17 -4
- wagtail/rich_text/__init__.py +2 -3
- wagtail/rich_text/pages.py +2 -4
- wagtail/rich_text/rewriters.py +2 -2
- wagtail/search/backends/database/mysql/query.py +3 -3
- wagtail/search/backends/database/sqlite/query.py +6 -6
- wagtail/search/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/en/LC_MESSAGES/django.po +6 -6
- wagtail/sites/views.py +0 -1
- wagtail/snippets/action_menu.py +14 -4
- wagtail/snippets/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/cy/LC_MESSAGES/django.po +73 -1
- wagtail/snippets/locale/en/LC_MESSAGES/django.po +27 -33
- wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
- wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
- wagtail/snippets/templates/wagtailsnippets/bulk_actions/confirm_bulk_delete.html +5 -3
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/locked.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +1 -11
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu_item.html +1 -6
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/publish.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/save.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -18
- wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -14
- wagtail/snippets/templates/wagtailsnippets/snippets/index.html +2 -5
- wagtail/snippets/tests/test_preview.py +193 -61
- wagtail/snippets/tests/test_snippets.py +247 -38
- wagtail/snippets/tests/test_usage.py +5 -0
- wagtail/snippets/tests/test_viewset.py +25 -9
- wagtail/snippets/tests/test_workflows.py +232 -19
- wagtail/snippets/views/snippets.py +1 -10
- wagtail/test/numberformat.py +104 -0
- wagtail/test/settings.py +10 -0
- wagtail/test/settings_ui.py +2 -0
- wagtail/test/testapp/migrations/0010_alter_customimage_file_and_more.py +71 -78
- wagtail/test/testapp/migrations/0040_nocreatablesubpagetypespage_nosubpagetypespage.py +54 -0
- wagtail/test/testapp/migrations/0041_alter_jsonstreammodel_options.py +17 -0
- wagtail/test/testapp/migrations/0042_alter_customdocument_file_size_and_more.py +28 -0
- wagtail/test/testapp/migrations/0043_customimage_description.py +41 -0
- wagtail/test/testapp/migrations/0044_custompreviewsizesmodel_custompreviewsizespage.py +52 -0
- wagtail/test/testapp/migrations/0045_alter_streampage_body.py +52 -0
- wagtail/test/testapp/models.py +62 -4
- wagtail/test/testapp/rich_text.py +2 -2
- wagtail/test/testapp/templates/tests/form_page_landing.html +2 -1
- wagtail/test/testapp/urls.py +5 -0
- wagtail/test/testapp/views.py +5 -0
- wagtail/test/utils/page_tests.py +5 -5
- wagtail/test/utils/template_tests.py +2 -2
- wagtail/tests/test_blocks.py +15 -0
- wagtail/tests/test_page_permissions.py +109 -0
- wagtail/tests/test_revision_model.py +27 -0
- wagtail/tests/test_signals.py +21 -2
- wagtail/tests/test_tests.py +30 -0
- wagtail/users/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/cy/LC_MESSAGES/django.po +118 -1
- wagtail/users/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/dv/LC_MESSAGES/django.po +3 -0
- wagtail/users/locale/en/LC_MESSAGES/django.po +89 -113
- wagtail/users/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/sl/LC_MESSAGES/django.po +3 -0
- wagtail/users/migrations/0014_userprofile_contrast.py +23 -0
- wagtail/users/models.py +11 -0
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html +5 -1
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html +5 -1
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html +5 -1
- wagtail/users/templates/wagtailusers/groups/create.html +19 -17
- wagtail/users/templates/wagtailusers/groups/edit.html +2 -40
- wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +1 -62
- wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html +0 -1
- wagtail/users/templates/wagtailusers/users/create.html +46 -50
- wagtail/users/templates/wagtailusers/users/edit.html +45 -62
- wagtail/users/templates/wagtailusers/users/index.html +1 -4
- wagtail/users/templatetags/wagtailusers_tags.py +1 -5
- wagtail/users/tests/test_admin_views.py +85 -66
- wagtail/users/views/groups.py +4 -1
- wagtail/users/views/users.py +2 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/METADATA +6 -6
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/RECORD +378 -367
- wagtail/admin/static/wagtailadmin/js/preview-panel.js +0 -2
- wagtail/admin/static/wagtailadmin/js/preview-panel.js.LICENSE.txt +0 -11
- wagtail/admin/templates/wagtailadmin/generic/history_results.html +0 -1
- wagtail/admin/templates/wagtailadmin/page_privacy/ancestor_privacy.html +0 -3
- wagtail/admin/templates/wagtailadmin/pages/usage_results.html +0 -6
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/index.html +0 -17
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/results.html +0 -17
- wagtail/admin/templates/wagtailadmin/workflows/usage.html +0 -44
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/LICENSE +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/WHEEL +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/entry_points.txt +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc1.dist-info}/top_level.txt +0 -0
|
@@ -1,34 +1,46 @@
|
|
|
1
1
|
{% load i18n wagtailadmin_tags %}
|
|
2
2
|
{% load wagtailcore_tags %}
|
|
3
3
|
{% if locked_pages %}
|
|
4
|
-
{% panel id="locked-pages" heading=_("Your locked pages") %}
|
|
5
|
-
<table class="listing listing-page">
|
|
4
|
+
{% panel id="locked-pages" heading=_("Your locked pages") classname="w-panel--dashboard" %}
|
|
5
|
+
<table class="listing listing--dashboard listing-page">
|
|
6
6
|
<col />
|
|
7
|
-
<col width="
|
|
8
|
-
<col width="
|
|
9
|
-
|
|
10
|
-
<
|
|
7
|
+
<col width="10%"/>
|
|
8
|
+
<col width="7%"/>
|
|
9
|
+
<col width="25%"/>
|
|
10
|
+
<col width="10%"/>
|
|
11
|
+
<col width="10%"/>
|
|
12
|
+
<thead class="w-sr-only">
|
|
11
13
|
<tr>
|
|
12
14
|
<th class="title">{% trans "Title" %}</th>
|
|
13
|
-
<th
|
|
15
|
+
<th>{% trans "Language" %}</th>
|
|
16
|
+
<th>{% trans "Privacy and access" %}</th>
|
|
17
|
+
<th>{% trans "Status" %}</th>
|
|
14
18
|
<th>{% trans "Locked at" %}</th>
|
|
19
|
+
<th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
|
|
15
20
|
</tr>
|
|
16
21
|
</thead>
|
|
17
22
|
<tbody>
|
|
18
23
|
{% for page in locked_pages %}
|
|
19
24
|
<tr>
|
|
20
|
-
<td class="title"
|
|
25
|
+
<td class="title">
|
|
21
26
|
<div class="title-wrapper">
|
|
22
27
|
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">{{ page.get_admin_display_title }}</a>
|
|
23
|
-
|
|
24
|
-
{% i18n_enabled as show_locale_labels %}
|
|
25
|
-
{% if show_locale_labels and page.locale_id %}
|
|
26
|
-
{% locale_label_from_id page.locale_id as locale_label %}
|
|
27
|
-
{% status locale_label classname="w-status--label" %}
|
|
28
|
-
{% endif %}
|
|
29
|
-
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
|
30
|
-
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
|
31
28
|
</div>
|
|
29
|
+
</td>
|
|
30
|
+
<td>
|
|
31
|
+
{% i18n_enabled as show_locale_labels %}
|
|
32
|
+
{% if show_locale_labels and page.locale_id %}
|
|
33
|
+
{% locale_label_from_id page.locale_id as locale_label %}
|
|
34
|
+
{% status locale_label classname="w-status--label" %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
</td>
|
|
37
|
+
<td>
|
|
38
|
+
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
|
39
|
+
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
|
40
|
+
</td>
|
|
41
|
+
<td>{% include "wagtailadmin/shared/page_status_tag.html" with page=page %}</td>
|
|
42
|
+
<td>{% human_readable_date page.locked_at %}</td>
|
|
43
|
+
<td class="actions-container">
|
|
32
44
|
<ul class="actions">
|
|
33
45
|
<li>
|
|
34
46
|
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
|
|
@@ -56,8 +68,6 @@
|
|
|
56
68
|
</li>
|
|
57
69
|
</ul>
|
|
58
70
|
</td>
|
|
59
|
-
<td>{# Deliberately empty #}</td>
|
|
60
|
-
<td valign="top">{% human_readable_date page.locked_at %}</td>
|
|
61
71
|
</tr>
|
|
62
72
|
{% endfor %}
|
|
63
73
|
</tbody>
|
|
@@ -2,33 +2,48 @@
|
|
|
2
2
|
{% load wagtailcore_tags %}
|
|
3
3
|
{% load i18n wagtailadmin_tags %}
|
|
4
4
|
{% if last_edits %}
|
|
5
|
-
{% panel id="recent-edits" heading=_("Your most recent edits") %}
|
|
6
|
-
<table class="listing listing-page">
|
|
5
|
+
{% panel id="recent-edits" heading=_("Your most recent edits") classname="w-panel--dashboard" %}
|
|
6
|
+
<table class="listing listing--dashboard listing-page">
|
|
7
7
|
<col />
|
|
8
|
-
<col width="
|
|
9
|
-
<col width="
|
|
8
|
+
<col width="10%"/>
|
|
9
|
+
<col width="7%"/>
|
|
10
|
+
<col width="25%"/>
|
|
11
|
+
<col width="10%"/>
|
|
12
|
+
<col width="10%"/>
|
|
10
13
|
<thead class="w-sr-only">
|
|
11
14
|
<tr>
|
|
12
15
|
<th class="title">{% trans "Title" %}</th>
|
|
16
|
+
<th>{% trans "Language" %}</th>
|
|
17
|
+
<th>{% trans "Privacy and access" %}</th>
|
|
13
18
|
<th>{% trans "Status" %}</th>
|
|
14
19
|
<th>{% trans "Date" %}</th>
|
|
20
|
+
<th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
|
|
15
21
|
</tr>
|
|
16
22
|
</thead>
|
|
17
23
|
<tbody>
|
|
18
24
|
{% for last_edited_at, page in last_edits %}
|
|
19
25
|
<tr>
|
|
20
|
-
<td class="title"
|
|
26
|
+
<td class="title">
|
|
21
27
|
<div class="title-wrapper">
|
|
22
28
|
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">{{ page.get_admin_display_title }}</a>
|
|
23
|
-
|
|
24
|
-
{% i18n_enabled as show_locale_labels %}
|
|
25
|
-
{% if show_locale_labels and page.locale_id %}
|
|
26
|
-
{% locale_label_from_id page.locale_id as locale_label %}
|
|
27
|
-
{% status locale_label classname="w-status--label" %}
|
|
28
|
-
{% endif %}
|
|
29
|
-
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
|
30
|
-
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
|
31
29
|
</div>
|
|
30
|
+
</td>
|
|
31
|
+
<td>
|
|
32
|
+
{% i18n_enabled as show_locale_labels %}
|
|
33
|
+
{% if show_locale_labels and page.locale_id %}
|
|
34
|
+
{% locale_label_from_id page.locale_id as locale_label %}
|
|
35
|
+
{% status locale_label classname="w-status--label" %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
</td>
|
|
38
|
+
<td>
|
|
39
|
+
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
|
40
|
+
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
|
41
|
+
</td>
|
|
42
|
+
<td>
|
|
43
|
+
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
|
|
44
|
+
</td>
|
|
45
|
+
<td>{% human_readable_date last_edited_at %}</td>
|
|
46
|
+
<td class="actions-container">
|
|
32
47
|
<ul class="actions">
|
|
33
48
|
<li>
|
|
34
49
|
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
|
|
@@ -46,10 +61,6 @@
|
|
|
46
61
|
</li>
|
|
47
62
|
</ul>
|
|
48
63
|
</td>
|
|
49
|
-
<td valign="top">
|
|
50
|
-
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
|
|
51
|
-
</td>
|
|
52
|
-
<td valign="top">{% human_readable_date last_edited_at %}</td>
|
|
53
64
|
</tr>
|
|
54
65
|
{% endfor %}
|
|
55
66
|
</tbody>
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
{% icon name="doc-empty" %}
|
|
5
5
|
<a href="{% url 'wagtailadmin_explore' root_page.pk %}">
|
|
6
6
|
{% blocktrans trimmed count counter=total_pages with total_pages|intcomma as total %}
|
|
7
|
-
|
|
7
|
+
{{ total }} Page <span class="w-sr-only">created in {{ site_name }}</span>
|
|
8
8
|
{% plural %}
|
|
9
|
-
|
|
9
|
+
{{ total }} Pages <span class="w-sr-only">created in {{ site_name }}</span>
|
|
10
10
|
{% endblocktrans %}
|
|
11
11
|
</a>
|
|
12
12
|
</li>
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
{% load i18n wagtailcore_tags wagtailadmin_tags %}
|
|
2
2
|
{% wagtail_version as current_version %}
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{%
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
<div class="w-panel-upgrade w-flex w-mb-[-2rem] sm:w-mb-0 w-gap-5 w-items-center w-pl-slim-header w-pr-5 sm:w-px-[3.5rem] w-py-5 w-text-text-context w-bg-surface-info-panel w-border-b w-border-transparent"
|
|
4
|
+
data-controller="w-upgrade w-dismissible"
|
|
5
|
+
data-w-upgrade-current-version-value="{{ current_version }}"
|
|
6
|
+
{% if lts_only %}data-w-upgrade-lts-only-value="true"{% endif %}
|
|
7
|
+
data-w-dismissible-id-value="{{ dismissible_id }}"
|
|
8
|
+
data-w-dismissible-dismissed-class="w-hidden"
|
|
9
|
+
hidden>
|
|
10
|
+
{% icon name='info-circle' classname='w-w-5 w-h-5 w-shrink-0 w-text-text-link-info w-ml-5 sm:w-ml-0' %}
|
|
11
|
+
<div>
|
|
12
|
+
<p class="w-mb-1"><strong>{% trans "Wagtail upgrade available" %}</strong></p>
|
|
13
|
+
<p class="w-mb-0">
|
|
14
|
+
{% blocktrans trimmed %}
|
|
15
|
+
Your version: <strong>{{ current_version }}</strong>. New version: <strong data-w-upgrade-target="latestVersion"></strong>.
|
|
16
|
+
{% endblocktrans %}
|
|
17
|
+
<a href=""
|
|
18
|
+
data-w-upgrade-target="link"
|
|
19
|
+
class="w-text-text-link-info hover:w-text-text-link-info w-underline w-underline-offset-[3px]">{% trans "Read the release notes." %}</a>
|
|
20
|
+
</p>
|
|
16
21
|
</div>
|
|
22
|
+
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
data-action="w-dismissible#toggle"
|
|
26
|
+
{% if dismissible_value %}data-w-dismissible-value-param="{{ dismissible_value }}"{% endif %}
|
|
27
|
+
data-w-upgrade-target="dismiss"
|
|
28
|
+
class="w-ml-auto w-flex w-items-center w-justify-center w-bg-transparent w-rounded-full w-p-0 w-w-8 w-h-8
|
|
29
|
+
w-text-current
|
|
30
|
+
w-border
|
|
31
|
+
w-border-transparent
|
|
32
|
+
hover:w-text-text-link-hover
|
|
33
|
+
more-contrast:w-border-border-interactive-more-contrast
|
|
34
|
+
hover:more-contrast:w-border-border-interactive-more-contrast-hover
|
|
35
|
+
"
|
|
36
|
+
>
|
|
37
|
+
{% icon name="cross" classname="w-w-4 w-h-4" %}
|
|
38
|
+
</button>
|
|
17
39
|
</div>
|
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
{% load i18n wagtailadmin_tags %}
|
|
4
4
|
{% if workflow_states %}
|
|
5
|
-
{% panel id="objects-in-workflow" heading=_("Your pages and snippets in a workflow") %}
|
|
6
|
-
<table class="listing">
|
|
5
|
+
{% panel id="objects-in-workflow" heading=_("Your pages and snippets in a workflow") classname="w-panel--dashboard" %}
|
|
6
|
+
<table class="listing listing--dashboard">
|
|
7
7
|
<col />
|
|
8
|
-
<col width="
|
|
9
|
-
<col width="
|
|
8
|
+
<col width="10%"/>
|
|
9
|
+
<col width="7%"/>
|
|
10
|
+
<col width="25%"/>
|
|
11
|
+
<col width="10%"/>
|
|
12
|
+
<col width="10%"/>
|
|
10
13
|
<thead class="w-sr-only">
|
|
11
14
|
<tr>
|
|
12
15
|
<th class="title">{% trans "Title" %}</th>
|
|
16
|
+
<th>{% trans "Language" %}</th>
|
|
17
|
+
<th>{% trans "Privacy and access" %}</th>
|
|
13
18
|
<th>{% trans "Task" %}</th>
|
|
14
19
|
<th>{% trans "Task started" %}</th>
|
|
20
|
+
<th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
|
|
15
21
|
</tr>
|
|
16
22
|
</thead>
|
|
17
23
|
<tbody>
|
|
@@ -22,7 +28,7 @@
|
|
|
22
28
|
{% page_permissions obj as page_perms %}
|
|
23
29
|
{% endif %}
|
|
24
30
|
<tr>
|
|
25
|
-
<td class="title"
|
|
31
|
+
<td class="title">
|
|
26
32
|
<div class="title-wrapper">
|
|
27
33
|
{% admin_edit_url obj as edit_url %}
|
|
28
34
|
{% if page_perms.can_edit or not is_page and edit_url %}
|
|
@@ -30,28 +36,32 @@
|
|
|
30
36
|
{% else %}
|
|
31
37
|
{% latest_str obj %}
|
|
32
38
|
{% endif %}
|
|
33
|
-
|
|
34
|
-
{% i18n_enabled as show_locale_labels %}
|
|
35
|
-
{% if show_locale_labels and obj.locale_id %}
|
|
36
|
-
{% locale_label_from_id obj.locale_id as locale_label %}
|
|
37
|
-
{% status locale_label classname="w-status--label" %}
|
|
38
|
-
{% endif %}
|
|
39
|
-
{% if is_page %}
|
|
40
|
-
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
|
41
|
-
{% endif %}
|
|
42
|
-
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
|
43
39
|
</div>
|
|
44
40
|
</td>
|
|
45
|
-
<td
|
|
41
|
+
<td>
|
|
42
|
+
{% i18n_enabled as show_locale_labels %}
|
|
43
|
+
{% if show_locale_labels and obj.locale_id %}
|
|
44
|
+
{% locale_label_from_id obj.locale_id as locale_label %}
|
|
45
|
+
{% status locale_label classname="w-status--label" %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
</td>
|
|
48
|
+
<td>
|
|
49
|
+
{% if is_page %}
|
|
50
|
+
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
|
51
|
+
{% endif %}
|
|
52
|
+
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
|
53
|
+
</td>
|
|
54
|
+
<td class="task">
|
|
46
55
|
{% if workflow_state.current_task_state.status == 'rejected' %}
|
|
47
|
-
{% icon name="warning" classname="
|
|
56
|
+
{% icon name="warning" classname="w-h-4 w-w-4 w-align-text-top" %}
|
|
48
57
|
{% trans "Changes requested at" %}
|
|
49
58
|
{% elif workflow_state.current_task_state.status == 'in_progress' %}
|
|
50
59
|
{% trans "Awaiting" %}
|
|
51
60
|
{% endif %}
|
|
52
61
|
{{ workflow_state.current_task_state.task.name }}
|
|
53
62
|
</td>
|
|
54
|
-
<td
|
|
63
|
+
<td>{% human_readable_date workflow_state.current_task_state.started_at %}</td>
|
|
64
|
+
<td>{# Deliberately empty #}</td>
|
|
55
65
|
</tr>
|
|
56
66
|
{% endwith %}
|
|
57
67
|
{% endfor %}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
{% load i18n wagtailadmin_tags %}
|
|
2
2
|
{% if states %}
|
|
3
|
-
{% panel id="awaiting-review" heading=_("Awaiting your review") %}
|
|
4
|
-
<table class="listing">
|
|
3
|
+
{% panel id="awaiting-review" heading=_("Awaiting your review") classname="w-panel--dashboard" %}
|
|
4
|
+
<table class="listing listing--dashboard">
|
|
5
5
|
<col />
|
|
6
|
+
<col width="10%"/>
|
|
7
|
+
<col width="7%"/>
|
|
8
|
+
<col width="10%"/>
|
|
6
9
|
<col width="15%"/>
|
|
7
|
-
<col width="
|
|
8
|
-
<col width="
|
|
10
|
+
<col width="10%"/>
|
|
11
|
+
<col width="10%"/>
|
|
9
12
|
<thead class="w-sr-only">
|
|
10
13
|
<tr>
|
|
11
14
|
<th class="title">{% trans "Title" %}</th>
|
|
15
|
+
<th>{% trans "Language" %}</th>
|
|
16
|
+
<th>{% trans "Privacy and access" %}</th>
|
|
12
17
|
<th>{% trans "Tasks" %}</th>
|
|
13
18
|
<th>{% trans "Task submitted by" %}</th>
|
|
14
19
|
<th>{% trans "Task started" %}</th>
|
|
20
|
+
<th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
|
|
15
21
|
</tr>
|
|
16
22
|
</thead>
|
|
17
23
|
<tbody>
|
|
@@ -22,7 +28,7 @@
|
|
|
22
28
|
{% page_permissions obj as page_perms %}
|
|
23
29
|
{% endif %}
|
|
24
30
|
<tr>
|
|
25
|
-
<td class="title"
|
|
31
|
+
<td class="title">
|
|
26
32
|
<div class="title-wrapper">
|
|
27
33
|
{% admin_edit_url obj as edit_url %}
|
|
28
34
|
{% if page_perms.can_edit or not is_page and edit_url %}
|
|
@@ -30,17 +36,39 @@
|
|
|
30
36
|
{% else %}
|
|
31
37
|
{% latest_str obj %}
|
|
32
38
|
{% endif %}
|
|
33
|
-
|
|
34
|
-
{% i18n_enabled as show_locale_labels %}
|
|
35
|
-
{% if show_locale_labels and obj.locale_id %}
|
|
36
|
-
{% locale_label_from_id obj.locale_id as locale_label %}
|
|
37
|
-
{% status locale_label classname="w-status--label" %}
|
|
38
|
-
{% endif %}
|
|
39
|
-
{% if is_page %}
|
|
40
|
-
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
|
41
|
-
{% endif %}
|
|
42
|
-
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
|
43
39
|
</div>
|
|
40
|
+
</td>
|
|
41
|
+
<td>
|
|
42
|
+
{% i18n_enabled as show_locale_labels %}
|
|
43
|
+
{% if show_locale_labels and obj.locale_id %}
|
|
44
|
+
{% locale_label_from_id obj.locale_id as locale_label %}
|
|
45
|
+
{% status locale_label classname="w-status--label" %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
</td>
|
|
48
|
+
<td>
|
|
49
|
+
{% if is_page %}
|
|
50
|
+
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
|
51
|
+
{% endif %}
|
|
52
|
+
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
|
53
|
+
</td>
|
|
54
|
+
<td class="tasks">
|
|
55
|
+
{% for task in workflow_tasks %}
|
|
56
|
+
<span data-controller="w-tooltip" data-w-tooltip-content-value="{{ task.name }}: {{ task.status_display }}">
|
|
57
|
+
{% if task.status == 'approved' %}
|
|
58
|
+
{% icon "success" title=task.status_display classname="default" %}
|
|
59
|
+
{% elif task.status == 'rejected' %}
|
|
60
|
+
{% icon "error" title=task.status_display classname="default" %}
|
|
61
|
+
{% else %}
|
|
62
|
+
{% icon "radio-empty" title=status_display classname="default" %}
|
|
63
|
+
{% endif %}
|
|
64
|
+
</span>
|
|
65
|
+
{% endfor %}
|
|
66
|
+
</td>
|
|
67
|
+
<td>
|
|
68
|
+
{% if revision.user %}{{ revision.user|user_display_name }}{% endif %}
|
|
69
|
+
</td>
|
|
70
|
+
<td>{% human_readable_date task_state.started_at %}</td>
|
|
71
|
+
<td class="actions-container">
|
|
44
72
|
{% if actions %}
|
|
45
73
|
<ul class="actions">
|
|
46
74
|
<li>
|
|
@@ -65,23 +93,6 @@
|
|
|
65
93
|
</ul>
|
|
66
94
|
{% endif %}
|
|
67
95
|
</td>
|
|
68
|
-
<td class="tasks" valign="top">
|
|
69
|
-
{% for task in workflow_tasks %}
|
|
70
|
-
<span data-controller="w-tooltip" data-w-tooltip-content-value="{{ task.name }}: {{ task.status_display }}">
|
|
71
|
-
{% if task.status == 'approved' %}
|
|
72
|
-
{% icon "success" title=task.status_display classname="default" %}
|
|
73
|
-
{% elif task.status == 'rejected' %}
|
|
74
|
-
{% icon "error" title=task.status_display classname="default" %}
|
|
75
|
-
{% else %}
|
|
76
|
-
{% icon "radio-empty" title=status_display classname="default" %}
|
|
77
|
-
{% endif %}
|
|
78
|
-
</span>
|
|
79
|
-
{% endfor %}
|
|
80
|
-
</td>
|
|
81
|
-
<td valign="top">
|
|
82
|
-
{% if revision.user %}{{ revision.user|user_display_name }}{% endif %}
|
|
83
|
-
</td>
|
|
84
|
-
<td valign="top">{% human_readable_date task_state.started_at %}</td>
|
|
85
96
|
</tr>
|
|
86
97
|
{% endwith %}
|
|
87
98
|
{% endfor %}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% extends "wagtailadmin/generic/base.html" %}
|
|
2
2
|
{% load wagtailadmin_tags i18n %}
|
|
3
|
-
{% block bodyclass %}homepage{% endblock %}
|
|
4
3
|
|
|
5
4
|
{% block extra_css %}
|
|
6
5
|
{{ block.super }}
|
|
@@ -9,14 +8,32 @@
|
|
|
9
8
|
|
|
10
9
|
{% block content %}
|
|
11
10
|
{% fragment as header_title %}
|
|
12
|
-
{% block branding_welcome %}{
|
|
11
|
+
{% block branding_welcome %}{{ site_name|title }}{% endblock %}
|
|
13
12
|
{% endfragment %}
|
|
14
13
|
|
|
14
|
+
{% component upgrade_notification %}
|
|
15
|
+
<div class="w-dashboard w-px-6 sm:w-px-[3.75rem] w-mt-16 sm:w-mt-10 lg:w-mt-[3.75rem]">
|
|
16
|
+
<header class="w-flex w-flex-col lg:w-flex-row">
|
|
17
|
+
<div class="lg:w-pr-20 lg:w-grow">
|
|
18
|
+
<h1 class="w-h1 w-mt-0">{{ header_title }}</h1>
|
|
19
|
+
{% component site_summary %}
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
<form
|
|
22
|
+
class="w-mb-12"
|
|
23
|
+
action="{% if root_page.pk %}{% url 'wagtailadmin_explore' root_page.pk %}{% else %}{% url 'wagtailadmin_explore_root' %}{% endif %}"
|
|
24
|
+
method="get"
|
|
25
|
+
novalidate
|
|
26
|
+
role="search"
|
|
27
|
+
>
|
|
28
|
+
{% for field in search_form %}
|
|
29
|
+
{% formattedfield field=field sr_only_label=True icon="search" %}
|
|
30
|
+
{% endfor %}
|
|
31
|
+
<div class="submit w-sr-only"><input type="submit" value="Search" class="button" /></div>
|
|
32
|
+
</form>
|
|
19
33
|
|
|
34
|
+
</div>
|
|
35
|
+
{% include "wagtailadmin/home/account_summary.html" %}
|
|
36
|
+
</header>
|
|
20
37
|
{% if panels %}
|
|
21
38
|
{% for panel in panels %}
|
|
22
39
|
{% component panel fallback_render_method=True %}
|
|
@@ -7,6 +7,5 @@
|
|
|
7
7
|
<script src="{% versioned_static 'wagtailadmin/js/comments.js' %}"></script>
|
|
8
8
|
<script src="{% versioned_static 'wagtailadmin/js/vendor/rangy-core.js' %}"></script>
|
|
9
9
|
<script src="{% versioned_static 'wagtailadmin/js/expanding-formset.js' %}"></script>
|
|
10
|
-
<script src="{% versioned_static 'wagtailadmin/js/preview-panel.js' %}"></script>
|
|
11
10
|
<script src="{% versioned_static 'wagtailadmin/js/privacy-switch.js' %}"></script>
|
|
12
11
|
{% hook_output 'insert_editor_js' %}
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{%
|
|
2
|
-
|
|
3
|
-
{% if show_menu %}
|
|
4
|
-
{% dropdown_button button=default_menu_item toggle_icon="arrow-up" keep_mounted=True %}
|
|
5
|
-
{% for item in rendered_menu_items %}
|
|
6
|
-
{{ item }}
|
|
7
|
-
{% endfor %}
|
|
8
|
-
{% enddropdown_button %}
|
|
9
|
-
{% elif default_menu_item %}
|
|
10
|
-
{{ default_menu_item }}
|
|
11
|
-
{% endif %}
|
|
1
|
+
{% extends "wagtailadmin/shared/action_menu/menu.html" %}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{%
|
|
2
|
-
{% if url %}
|
|
3
|
-
<a class="button{% if classname %} {{ classname }}{% endif %}" href="{{ url }}">{% if icon_name %}{% icon name=icon_name %}{% endif %}{{ label }}</a>
|
|
4
|
-
{% else %}
|
|
5
|
-
<button type="submit" name="{{ name }}" value="{{ label }}" class="button{% if classname %} {{ classname }}{% endif %}">{% if icon_name %}{% icon name=icon_name %}{% endif %}{{ label }}</button>
|
|
6
|
-
{% endif %}
|
|
1
|
+
{% extends "wagtailadmin/shared/action_menu/menu_item.html" %}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% load i18n wagtailadmin_tags %}
|
|
2
|
-
<button type="submit" class="button action-save
|
|
2
|
+
<button type="submit" class="button action-save" disabled>
|
|
3
3
|
{% if icon_name %}{% icon name=icon_name %}{% endif %}
|
|
4
4
|
{% trans 'Page locked' %}
|
|
5
5
|
</button>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
type="submit"
|
|
4
4
|
name="action-publish"
|
|
5
5
|
value="action-publish"
|
|
6
|
-
class="button button-longrunning
|
|
6
|
+
class="button button-longrunning"
|
|
7
7
|
data-controller="w-progress"
|
|
8
8
|
data-action="w-progress#activate"
|
|
9
9
|
data-w-progress-active-value="{% trans 'Publishing…' %}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% load i18n wagtailadmin_tags %}
|
|
2
2
|
<button
|
|
3
3
|
type="submit"
|
|
4
|
-
class="button action-save button-longrunning
|
|
4
|
+
class="button action-save button-longrunning"
|
|
5
5
|
data-controller="w-progress w-kbd"
|
|
6
6
|
data-action="w-progress#activate"
|
|
7
7
|
data-w-kbd-key-value="mod+s"
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
|
|
2
2
|
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
|
|
4
|
-
{% block titletag %}
|
|
4
|
+
{% block titletag %}
|
|
5
|
+
{% with counter_val=items|length %}
|
|
6
|
+
{% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Delete 1 page {% plural %}Delete {{ counter }} pages{% endblocktrans %}
|
|
7
|
+
{% endwith %}
|
|
8
|
+
{% endblock %}
|
|
5
9
|
|
|
6
10
|
{% block header %}
|
|
7
11
|
{% include "wagtailadmin/shared/header.html" with title=_("Delete") icon="doc-empty-inverse" %}
|
|
@@ -16,11 +20,13 @@
|
|
|
16
20
|
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
|
|
17
21
|
{% if page.descendant_count %}
|
|
18
22
|
<p>
|
|
19
|
-
{%
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
{% with counter_val=page.descendant_count %}
|
|
24
|
+
{% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}
|
|
25
|
+
This will also delete one more subpage.
|
|
26
|
+
{% plural %}
|
|
27
|
+
This will also delete {{ counter }} more subpages.
|
|
28
|
+
{% endblocktrans %}
|
|
29
|
+
{% endwith %}
|
|
24
30
|
</p>
|
|
25
31
|
{% endif %}
|
|
26
32
|
</li>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
|
|
2
|
-
{% load i18n %}
|
|
2
|
+
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
|
|
4
|
-
{% block titletag %}
|
|
4
|
+
{% block titletag %}
|
|
5
|
+
{% with counter_val=items|length %}
|
|
6
|
+
{% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Move 1 page{% plural %}Move {{ counter }} pages{% endblocktrans %}
|
|
7
|
+
{% endwith %}
|
|
5
8
|
{% endblock %}
|
|
6
9
|
|
|
7
10
|
{% block header %}
|
|
@@ -17,11 +20,13 @@
|
|
|
17
20
|
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
|
|
18
21
|
{% if not page.item.is_leaf %}
|
|
19
22
|
<p>
|
|
20
|
-
{%
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
{% with counter_val=page.child_pages %}
|
|
24
|
+
{% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}
|
|
25
|
+
This page has one child page
|
|
26
|
+
{% plural %}
|
|
27
|
+
This page has {{ counter }} child pages
|
|
28
|
+
{% endblocktrans %}
|
|
29
|
+
{% endwith %}
|
|
25
30
|
</p>
|
|
26
31
|
{% endif %}
|
|
27
32
|
</li>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
|
|
2
|
-
{% load i18n %}
|
|
2
|
+
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
|
|
4
|
-
{% block titletag %}
|
|
4
|
+
{% block titletag %}
|
|
5
|
+
{% with counter_val=items|length %}
|
|
6
|
+
{% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Publish 1 page {% plural %}Publish {{ counter }} pages{% endblocktrans %}
|
|
7
|
+
{% endwith %}
|
|
8
|
+
{% endblock %}
|
|
5
9
|
|
|
6
10
|
{% block header %}
|
|
7
11
|
{% include "wagtailadmin/shared/header.html" with title=_("Publish") icon="doc-empty-inverse" %}
|
|
@@ -14,15 +18,17 @@
|
|
|
14
18
|
{% for page in items %}
|
|
15
19
|
<li>
|
|
16
20
|
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
|
|
17
|
-
{%
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
{% with draft_descendant_count=page.draft_descendant_count %}
|
|
22
|
+
{% if draft_descendant_count %}
|
|
23
|
+
<p>
|
|
24
|
+
{% blocktrans trimmed with counter=draft_descendant_count|intcomma count counter_val=draft_descendant_count %}
|
|
25
|
+
This page has one unpublished subpage
|
|
26
|
+
{% plural %}
|
|
27
|
+
This page has {{ counter }} unpublished subpages
|
|
28
|
+
{% endblocktrans %}
|
|
29
|
+
</p>
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endwith %}
|
|
26
32
|
</li>
|
|
27
33
|
{% endfor %}
|
|
28
34
|
</ul>
|