wagtail 6.2.2__py3-none-any.whl → 6.3rc2__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 +12 -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.3rc2.dist-info}/METADATA +6 -6
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.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.3rc2.dist-info}/LICENSE +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/WHEEL +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/entry_points.txt +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/top_level.txt +0 -0
|
@@ -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 %}Unpublish 1 page {% plural %}Unpublish {{ counter }} pages{% endblocktrans %}
|
|
7
|
+
{% endwith %}
|
|
8
|
+
{% endblock %}
|
|
5
9
|
|
|
6
10
|
{% block header %}
|
|
7
11
|
{% include "wagtailadmin/shared/header.html" with title=_("Unpublish") icon="doc-empty-inverse" %}
|
|
@@ -15,13 +19,15 @@
|
|
|
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
21
|
<p>
|
|
18
|
-
{%
|
|
19
|
-
{%
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
{% with live_descendant_count=page.live_descendant_count %}
|
|
23
|
+
{% if live_descendant_count %}
|
|
24
|
+
{% blocktrans trimmed with counter=live_descendant_count|intcomma count counter_val=live_descendant_count %}
|
|
25
|
+
This page has one subpage
|
|
26
|
+
{% plural %}
|
|
27
|
+
This page has {{ counter }} subpages
|
|
28
|
+
{% endblocktrans %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% endwith %}
|
|
25
31
|
</p>
|
|
26
32
|
</li>
|
|
27
33
|
{% endfor %}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{% trans 'Are you sure you want to delete this page?' %}
|
|
13
13
|
|
|
14
14
|
{% if descendant_count %}
|
|
15
|
-
{% blocktrans trimmed
|
|
15
|
+
{% blocktrans trimmed with counter=descendant_count descendant_count=descendant_count|intcomma count counter=counter %}
|
|
16
16
|
Deleting this page will also delete {{ descendant_count }} child page.
|
|
17
17
|
{% plural %}
|
|
18
18
|
Deleting this page will also delete {{ descendant_count }} more child pages.
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
{% if translation_count %} {# has translations #}
|
|
22
22
|
{% if translation_descendant_count %} {# has translations with descendants #}
|
|
23
23
|
{% if translation_count == 1 %}
|
|
24
|
-
{% blocktrans trimmed
|
|
24
|
+
{% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %}
|
|
25
25
|
It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page.
|
|
26
26
|
{% plural %}
|
|
27
27
|
It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages.
|
|
28
28
|
{% endblocktrans %}
|
|
29
29
|
{% else %}
|
|
30
|
-
{% blocktrans trimmed
|
|
30
|
+
{% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter %}
|
|
31
31
|
It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page.
|
|
32
32
|
{% plural %}
|
|
33
33
|
It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages.
|
|
34
34
|
{% endblocktrans %}
|
|
35
35
|
{% endif %}
|
|
36
36
|
{% else %}
|
|
37
|
-
{% blocktrans trimmed
|
|
37
|
+
{% blocktrans trimmed with counter=translation_count translation_count=translation_count|intcomma count counter=counter %}
|
|
38
38
|
It will also delete {{ translation_count }} translation.
|
|
39
39
|
{% plural %}
|
|
40
40
|
It will also delete {{ translation_count }} translations.
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
{% elif translation_count %} {# no descendants #}
|
|
45
45
|
{% if translation_descendant_count %} {# has translations with descendants #}
|
|
46
46
|
{% if translation_count == 1 %}
|
|
47
|
-
{% blocktrans trimmed
|
|
47
|
+
{% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %}
|
|
48
48
|
Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page.
|
|
49
49
|
{% plural %}
|
|
50
50
|
Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages.
|
|
51
51
|
{% endblocktrans %}
|
|
52
52
|
{% else %}
|
|
53
|
-
{% blocktrans trimmed
|
|
53
|
+
{% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter%}
|
|
54
54
|
Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page.
|
|
55
55
|
{% plural %}
|
|
56
56
|
Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages.
|
|
57
57
|
{% endblocktrans %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
{% else %}
|
|
60
|
-
{% blocktrans trimmed
|
|
60
|
+
{% blocktrans trimmed with counter=translation_count descendant_count=descendant_count|intcomma translation_count=translation_count|intcomma count counter=counter %}
|
|
61
61
|
Deleting this page will also delete {{ translation_count }} translation of this page.
|
|
62
62
|
{% plural %}
|
|
63
63
|
This will also delete {{ descendant_count }} more child pages.
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
<form action="{% url 'wagtailadmin_pages:delete' page.id %}" method="POST">
|
|
71
71
|
{% csrf_token %}
|
|
72
72
|
{% if confirm_before_delete %}
|
|
73
|
-
<p id="id_confirm_site_name-warning" class="status-msg
|
|
74
|
-
{% blocktrans trimmed with total_pages=descendant_count|add:1 %}
|
|
73
|
+
<p id="id_confirm_site_name-warning" class="status-msg failure">
|
|
74
|
+
{% blocktrans trimmed with total_pages=descendant_count|add:1|intcomma %}
|
|
75
75
|
This action will delete total <b>{{ total_pages }}</b> pages.
|
|
76
76
|
{% endblocktrans %}
|
|
77
77
|
</p>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% extends "wagtailadmin/base.html" %}
|
|
2
|
-
{% load i18n %}
|
|
2
|
+
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
{% block titletag %}{% blocktrans trimmed with title=page_to_move.get_admin_display_title %}Move {{ title }}{% endblocktrans %}{% endblock %}
|
|
4
4
|
{% block content %}
|
|
5
5
|
{% include "wagtailadmin/shared/header.html" with title=_("Move") subtitle=page_to_move.get_admin_display_title icon="doc-empty-inverse" %}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{% blocktrans trimmed with title=destination.get_admin_display_title %}Are you sure you want to move this page and all of its children into '{{ title }}'?{% endblocktrans %}
|
|
13
13
|
{% endif %}
|
|
14
14
|
{% if translations_to_move_count %}
|
|
15
|
-
{% blocktrans trimmed
|
|
15
|
+
{% blocktrans trimmed with counter=translations_to_move_count translations_to_move_count=translations_to_move_count|intcomma count counter=counter %}
|
|
16
16
|
This will also move one translation of this page and its child pages
|
|
17
17
|
{% plural %}
|
|
18
18
|
This will also move {{ translations_to_move_count }} translations of this page and their child pages
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p>
|
|
6
6
|
{% trans "Are you sure you want to unpublish this page?" %}
|
|
7
7
|
{% if translation_count %}
|
|
8
|
-
{% blocktrans trimmed with translation_count=translation_count count counter=
|
|
8
|
+
{% blocktrans trimmed with counter=translation_count translation_count=translation_count|intcomma count counter=counter %}
|
|
9
9
|
This will also unpublish one translation of the page.
|
|
10
10
|
{% plural %}
|
|
11
11
|
This will also unpublish all {{ translation_count }} translations of the page.
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
{% fragment as text %}
|
|
22
22
|
{% if translation_descendant_count %}
|
|
23
23
|
{% if translation_descendant_count == 1 %}
|
|
24
|
-
{% blocktrans trimmed
|
|
24
|
+
{% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma count counter=counter %}
|
|
25
25
|
This page has one subpage and its translations have a combined one translated child page. Unpublish these too
|
|
26
26
|
{% plural %}
|
|
27
27
|
This page has {{ live_descendant_count }} child pages and its translations have a combined one translated child page. Unpublish these too
|
|
28
28
|
{% endblocktrans %}
|
|
29
29
|
{% else %}
|
|
30
|
-
{% blocktrans trimmed
|
|
30
|
+
{% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter %}
|
|
31
31
|
This page has one child page and its translations have a combined {{ translation_descendant_count }} translated child pages. Unpublish these too
|
|
32
32
|
{% plural %}
|
|
33
33
|
This page has {{ live_descendant_count }} child pages and its translations have a combined {{ translation_descendant_count }} translated child pages. Unpublish these too
|
|
34
34
|
{% endblocktrans %}
|
|
35
35
|
{% endif %}
|
|
36
36
|
{% else %}
|
|
37
|
-
{% blocktrans trimmed
|
|
37
|
+
{% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma count counter=counter %}
|
|
38
38
|
This page has one subpage. Unpublish this too
|
|
39
39
|
{% plural %}
|
|
40
40
|
This page has {{ live_descendant_count }} subpages. Unpublish these too
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
{% extends "wagtailadmin/generic/
|
|
1
|
+
{% extends "wagtailadmin/generic/form.html" %}
|
|
2
2
|
{% load wagtailadmin_tags %}
|
|
3
3
|
{% load i18n %}
|
|
4
|
-
{% block bodyclass %}editor-view{% endblock %}
|
|
5
4
|
|
|
6
5
|
{% block content %}
|
|
7
6
|
{% get_comments_enabled as comments_enabled %}
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
data-controller="w-init w-unsaved"
|
|
19
18
|
data-action="w-unsaved#submit beforeunload@window->w-unsaved#confirm change->w-unsaved#check keyup->w-unsaved#check"
|
|
20
19
|
data-w-init-event-value="{% if comments_enabled %}w-comments:init{% endif %}"
|
|
21
|
-
data-w-unsaved-confirmation-value="
|
|
20
|
+
data-w-unsaved-confirmation-value="true"
|
|
22
21
|
data-w-unsaved-force-value="{% if has_unsaved_changes %}true{% else %}false{% endif %}"
|
|
23
22
|
data-w-unsaved-watch-value="edits{% if comments_enabled %} comments{% endif %}"
|
|
24
23
|
>
|
|
@@ -34,38 +33,20 @@
|
|
|
34
33
|
|
|
35
34
|
{{ edit_handler.render_form_content }}
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{% endblock %}
|
|
42
|
-
</nav>
|
|
43
|
-
{% include "wagtailadmin/pages/_unsaved_changes_warning.html" %}
|
|
44
|
-
</footer>
|
|
36
|
+
{% block footer %}
|
|
37
|
+
{{ block.super }}
|
|
38
|
+
{# Reuse the footer container, but redefine the actions content down below to use component classes #}
|
|
39
|
+
{% endblock %}
|
|
45
40
|
</form>
|
|
46
41
|
|
|
47
42
|
{% endblock %}
|
|
48
43
|
|
|
49
|
-
{% block
|
|
50
|
-
{{
|
|
51
|
-
{
|
|
52
|
-
{%
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
{%
|
|
57
|
-
|
|
58
|
-
{% comment %}
|
|
59
|
-
Additional js from widgets media. Allows for custom widgets in admin panel.
|
|
60
|
-
{% endcomment %}
|
|
61
|
-
{{ media.js }}
|
|
62
|
-
|
|
63
|
-
<script>
|
|
64
|
-
// Set wagtailConfig.ACTIVE_CONTENT_LOCALE if this is a translated page
|
|
65
|
-
// This value may be used by JS widgets on the form
|
|
66
|
-
{% if locale %}
|
|
67
|
-
window.wagtailConfig = window.wagtailConfig || {};
|
|
68
|
-
window.wagtailConfig.ACTIVE_CONTENT_LOCALE = '{{ locale.language_code|escapejs }}';
|
|
69
|
-
{% endif %}
|
|
70
|
-
</script>
|
|
71
|
-
{% endblock %}
|
|
44
|
+
{% block actions %}
|
|
45
|
+
{{ action_menu.render_html }}
|
|
46
|
+
{% block extra_footer_actions %}
|
|
47
|
+
{% comment %}
|
|
48
|
+
While undocumented, this block is used by some packages to add
|
|
49
|
+
additional actions *outside* of the dropdown menu.
|
|
50
|
+
{% endcomment %}
|
|
51
|
+
{% endblock %}
|
|
52
|
+
{% endblock%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% extends "wagtailadmin/generic/
|
|
1
|
+
{% extends "wagtailadmin/generic/form.html" %}
|
|
2
2
|
{% load wagtailadmin_tags %}
|
|
3
3
|
{% load i18n %}
|
|
4
4
|
{% load l10n %}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
data-controller="w-init w-unsaved"
|
|
23
23
|
data-action="w-unsaved#submit beforeunload@window->w-unsaved#confirm change->w-unsaved#check keyup->w-unsaved#check"
|
|
24
24
|
data-w-init-event-value="{% if comments_enabled %}w-comments:init{% endif %}"
|
|
25
|
-
data-w-unsaved-confirmation-value="
|
|
25
|
+
data-w-unsaved-confirmation-value="true"
|
|
26
26
|
data-w-unsaved-force-value="{% if has_unsaved_changes %}true{% else %}false{% endif %}"
|
|
27
27
|
data-w-unsaved-watch-value="edits{% if comments_enabled %} comments{% endif %}"
|
|
28
28
|
>
|
|
@@ -35,40 +35,25 @@
|
|
|
35
35
|
<input type="hidden" name="revision" value="{{ revision.id|unlocalize }}" />
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{% endblock %}
|
|
43
|
-
</nav>
|
|
44
|
-
{% include "wagtailadmin/pages/_unsaved_changes_warning.html" %}
|
|
45
|
-
</footer>
|
|
38
|
+
{% block footer %}
|
|
39
|
+
{{ block.super }}
|
|
40
|
+
{# Reuse the footer container, but redefine the actions content down below to use component classes #}
|
|
41
|
+
{% endblock %}
|
|
46
42
|
</form>
|
|
47
43
|
{% endblock %}
|
|
48
44
|
{% endblock %}
|
|
49
45
|
|
|
50
|
-
{% block
|
|
51
|
-
{{
|
|
52
|
-
{
|
|
53
|
-
{%
|
|
46
|
+
{% block actions %}
|
|
47
|
+
{{ action_menu.render_html }}
|
|
48
|
+
{% block extra_footer_actions %}
|
|
49
|
+
{% comment %}
|
|
50
|
+
While undocumented, this block is used by some packages to add
|
|
51
|
+
additional actions *outside* of the dropdown menu.
|
|
52
|
+
{% endcomment %}
|
|
53
|
+
{% endblock %}
|
|
54
|
+
{% endblock%}
|
|
54
55
|
|
|
55
56
|
{% block extra_js %}
|
|
56
57
|
{{ block.super }}
|
|
57
|
-
{% include "wagtailadmin/pages/_editor_js.html" %}
|
|
58
|
-
|
|
59
|
-
{% comment %}
|
|
60
|
-
Additional js from widgets media. Allows for custom widgets in admin panel.
|
|
61
|
-
{% endcomment %}
|
|
62
|
-
{{ media.js }}
|
|
63
|
-
|
|
64
|
-
<script>
|
|
65
|
-
// Set wagtailConfig.ACTIVE_CONTENT_LOCALE if this is a translated page
|
|
66
|
-
// This value may be used by JS widgets on the form
|
|
67
|
-
{% if locale %}
|
|
68
|
-
window.wagtailConfig = window.wagtailConfig || {};
|
|
69
|
-
window.wagtailConfig.ACTIVE_CONTENT_LOCALE = '{{ locale.language_code|escapejs }}';
|
|
70
|
-
{% endif %}
|
|
71
|
-
</script>
|
|
72
|
-
|
|
73
58
|
{% include "wagtailadmin/shared/_workflow_init.html" %}
|
|
74
59
|
{% endblock %}
|
|
@@ -6,3 +6,9 @@
|
|
|
6
6
|
{% page_permissions parent_page as parent_page_perms %}
|
|
7
7
|
{% include 'wagtailadmin/pages/page_listing_header.html' with title=header_title search_url=index_results_url page_perms=parent_page_perms %}
|
|
8
8
|
{% endblock %}
|
|
9
|
+
|
|
10
|
+
{% block extra_js %}
|
|
11
|
+
{# Used by the privacy switch for the parent page in the status side panel. #}
|
|
12
|
+
{{ block.super }}
|
|
13
|
+
<script src="{% versioned_static 'wagtailadmin/js/privacy-switch.js' %}"></script>
|
|
14
|
+
{% endblock %}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{% extends "wagtailadmin/pages/index_results.html" %}
|
|
2
|
+
{% load wagtailadmin_tags i18n %}
|
|
3
|
+
|
|
4
|
+
{% block before_results %}
|
|
5
|
+
{% if not is_searching and not is_filtering %}
|
|
6
|
+
{% comment %}
|
|
7
|
+
Messages about any special implications / treatment of pages in the current section (e.g. they are unroutable
|
|
8
|
+
because no site is associated) are only shown if we are not searching or filtering. This is because search /
|
|
9
|
+
filter results include descendant pages, for which the message would not necessarily be accurate.
|
|
10
|
+
{% endcomment %}
|
|
11
|
+
|
|
12
|
+
{% if parent_page.is_root %}
|
|
13
|
+
<div class="nice-padding">
|
|
14
|
+
<div class="help-block help-info">
|
|
15
|
+
{% icon name='help' %}
|
|
16
|
+
{% if perms.wagtailcore.add_site %}
|
|
17
|
+
{% url 'wagtailsites:index' as wagtailsites_index_url %}
|
|
18
|
+
<p>
|
|
19
|
+
{% blocktrans trimmed %}
|
|
20
|
+
The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site.
|
|
21
|
+
{% endblocktrans %}
|
|
22
|
+
{% if wagtailsites_index_url %}
|
|
23
|
+
<a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
|
|
24
|
+
{% endif %}
|
|
25
|
+
</p>
|
|
26
|
+
<p>
|
|
27
|
+
{% blocktrans trimmed %}
|
|
28
|
+
If you just want to add pages to an existing site, create them as children of the homepage instead.
|
|
29
|
+
{% endblocktrans %}
|
|
30
|
+
</p>
|
|
31
|
+
{% else %}
|
|
32
|
+
{% blocktrans trimmed %}
|
|
33
|
+
Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage.
|
|
34
|
+
{% endblocktrans %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
{# get_url_parts will return None is the page has no site #}
|
|
39
|
+
{% elif not parent_page.get_url_parts %}
|
|
40
|
+
<div class="nice-padding">
|
|
41
|
+
<div class="help-block help-warning">
|
|
42
|
+
{% icon name='warning' %}
|
|
43
|
+
{% if perms.wagtailcore.add_site %}
|
|
44
|
+
{% url 'wagtailsites:index' as wagtailsites_index_url %}
|
|
45
|
+
{% blocktrans trimmed %}
|
|
46
|
+
There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location.
|
|
47
|
+
{% endblocktrans %}
|
|
48
|
+
{% if wagtailsites_index_url %}
|
|
49
|
+
<a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
|
|
50
|
+
{% endif %}
|
|
51
|
+
{% else %}
|
|
52
|
+
{% blocktrans trimmed %}
|
|
53
|
+
There is no site record for this location. Pages created here will not be accessible at any URL.
|
|
54
|
+
{% endblocktrans %}
|
|
55
|
+
{% endif %}
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
{% endif %}
|
|
59
|
+
{% endif %}
|
|
60
|
+
{% endblock %}
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
{% extends "wagtailadmin/
|
|
2
|
-
{% load wagtailadmin_tags i18n %}
|
|
3
|
-
|
|
4
|
-
{% block header %}
|
|
5
|
-
{% include 'wagtailadmin/shared/headers/slim_header.html' with title=header_title icon_name=header_icon search_url=index_results_url buttons=header_buttons %}
|
|
6
|
-
{% endblock %}
|
|
7
|
-
|
|
8
|
-
{% block listing %}
|
|
9
|
-
<div id="listing-results">
|
|
10
|
-
{% comment %}
|
|
11
|
-
This div will be replaced on AJAX refreshes.
|
|
12
|
-
Do not add page furniture here unless you intend it to disappear on AJAX refresh
|
|
13
|
-
{% endcomment %}
|
|
14
|
-
{% include 'wagtailadmin/pages/index_results.html' %}
|
|
15
|
-
</div>
|
|
16
|
-
{% endblock %}
|
|
17
|
-
{% block bulk_actions %}
|
|
18
|
-
{% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=_("Select all pages in listing") app_label='wagtailcore' model_name='page' objects=page_obj %}
|
|
19
|
-
{% endblock %}
|
|
20
|
-
|
|
21
|
-
{% block extra_js %}
|
|
22
|
-
{{ block.super }}
|
|
23
|
-
|
|
24
|
-
<script src="{% versioned_static 'wagtailadmin/js/privacy-switch.js' %}"></script>
|
|
25
|
-
|
|
26
|
-
{% comment %}
|
|
27
|
-
The first column will display checkboxes only if ordering is not being carried out, in which case
|
|
28
|
-
that column will have the drag and drop buttons to enable ordering
|
|
29
|
-
{% endcomment %}
|
|
30
|
-
{% if not show_ordering_column %}
|
|
31
|
-
<script>
|
|
32
|
-
window.wagtailConfig.BULK_ACTION_ITEM_TYPE = 'PAGE';
|
|
33
|
-
</script>
|
|
34
|
-
<script defer src="{% versioned_static 'wagtailadmin/js/bulk-actions.js' %}"></script>
|
|
35
|
-
{% endif %}
|
|
36
|
-
{% endblock %}
|
|
1
|
+
{% extends "wagtailadmin/pages/listing.html" %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load wagtailadmin_tags
|
|
1
|
+
{% load wagtailadmin_tags %}
|
|
2
2
|
|
|
3
3
|
{% if view.active_filters %}
|
|
4
4
|
{% include "wagtailadmin/shared/active_filters.html" with active_filters=view.active_filters %}
|
|
@@ -13,55 +13,7 @@
|
|
|
13
13
|
<form id="page-reorder-form">
|
|
14
14
|
{% csrf_token %}
|
|
15
15
|
|
|
16
|
-
{%
|
|
17
|
-
{% if parent_page.is_root %}
|
|
18
|
-
<div class="nice-padding">
|
|
19
|
-
<div class="help-block help-info">
|
|
20
|
-
{% icon name='help' %}
|
|
21
|
-
{% if perms.wagtailcore.add_site %}
|
|
22
|
-
{% url 'wagtailsites:index' as wagtailsites_index_url %}
|
|
23
|
-
<p>
|
|
24
|
-
{% blocktrans trimmed %}
|
|
25
|
-
The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site.
|
|
26
|
-
{% endblocktrans %}
|
|
27
|
-
{% if wagtailsites_index_url %}
|
|
28
|
-
<a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
|
|
29
|
-
{% endif %}
|
|
30
|
-
</p>
|
|
31
|
-
<p>
|
|
32
|
-
{% blocktrans trimmed %}
|
|
33
|
-
If you just want to add pages to an existing site, create them as children of the homepage instead.
|
|
34
|
-
{% endblocktrans %}
|
|
35
|
-
</p>
|
|
36
|
-
{% else %}
|
|
37
|
-
{% blocktrans trimmed %}
|
|
38
|
-
Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage.
|
|
39
|
-
{% endblocktrans %}
|
|
40
|
-
{% endif %}
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
{# get_url_parts will return None is the page has no site #}
|
|
44
|
-
{% elif not parent_page.get_url_parts %}
|
|
45
|
-
<div class="nice-padding">
|
|
46
|
-
<div class="help-block help-warning">
|
|
47
|
-
{% icon name='warning' %}
|
|
48
|
-
{% if perms.wagtailcore.add_site %}
|
|
49
|
-
{% url 'wagtailsites:index' as wagtailsites_index_url %}
|
|
50
|
-
{% blocktrans trimmed %}
|
|
51
|
-
There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location.
|
|
52
|
-
{% endblocktrans %}
|
|
53
|
-
{% if wagtailsites_index_url %}
|
|
54
|
-
<a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
|
|
55
|
-
{% endif %}
|
|
56
|
-
{% else %}
|
|
57
|
-
{% blocktrans trimmed %}
|
|
58
|
-
There is no site record for this location. Pages created here will not be accessible at any URL.
|
|
59
|
-
{% endblocktrans %}
|
|
60
|
-
{% endif %}
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
{% endif %}
|
|
64
|
-
{% endif %}
|
|
16
|
+
{% block before_results %}{% endblock %}
|
|
65
17
|
|
|
66
18
|
{% component table %}
|
|
67
19
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
{% if page.locked %}
|
|
10
10
|
<span
|
|
11
|
-
class="indicator
|
|
11
|
+
class="indicator {% if page.locked_by_id != request.user.pk %}indicator--is-dimmed{% endif %}"
|
|
12
12
|
title="{% if page.locked_by_id == request.user.pk %}{% trans 'This page is locked, by you, to further editing' %}{% else %}{% trans 'This page is locked to further editing' %}{% endif %}"
|
|
13
13
|
>
|
|
14
14
|
{% icon name="lock" classname="initial" %}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<span class="w-sr-only">
|
|
12
12
|
{% trans 'Drag' %}
|
|
13
13
|
<span>
|
|
14
|
-
{% blocktranslate trimmed with index=row.index|add:1 total=table.row_count %}Item {{ index }} of {{ total }}{% endblocktranslate %}
|
|
14
|
+
{% blocktranslate trimmed with index=row.index|add:1|intcomma total=table.row_count|intcomma %}Item {{ index }} of {{ total }}{% endblocktranslate %}
|
|
15
15
|
</span>
|
|
16
16
|
</span>
|
|
17
17
|
</button>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
{% trans "Actions" as title %}
|
|
4
4
|
<nav aria-label="{{ title }}">
|
|
5
|
-
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=title toggle_classname="w-p-0 w-
|
|
5
|
+
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=title toggle_classname="w-p-0 w-outline-offset-inside w-relative w-z-30" toggle_tooltip_offset="[0, -2]" %}
|
|
6
6
|
{% block content %}
|
|
7
7
|
{% include "wagtailadmin/pages/listing/_dropdown_items.html" with buttons=buttons only %}
|
|
8
8
|
{% endblock %}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{% block after_label %}
|
|
5
5
|
{% if result_scope == "whole_tree" %}
|
|
6
6
|
{% if items_count %}
|
|
7
|
-
{% blocktranslate trimmed %}
|
|
7
|
+
{% blocktranslate trimmed with start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %}
|
|
8
8
|
{{ start_index }}-{{ end_index }} of {{ items_count }} across entire site.
|
|
9
9
|
{% endblocktranslate %}
|
|
10
10
|
{% else %}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</a>
|
|
18
18
|
{% elif result_scope == "parent" %}
|
|
19
19
|
{% if items_count %}
|
|
20
|
-
{% blocktranslate trimmed with title=parent_page.get_admin_display_title %}
|
|
20
|
+
{% blocktranslate trimmed with title=parent_page.get_admin_display_title start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %}
|
|
21
21
|
{{ start_index }}-{{ end_index }} of {{ items_count }} in '<span class="w-title-ellipsis">{{ title }}</span>'.
|
|
22
22
|
{% endblocktranslate %}
|
|
23
23
|
{% else %}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{% translate "Search the whole site" %}
|
|
30
30
|
</a>
|
|
31
31
|
{% else %}
|
|
32
|
-
{% blocktranslate trimmed %}
|
|
32
|
+
{% blocktranslate trimmed with start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %}
|
|
33
33
|
{{ start_index }}-{{ end_index }} of {{ items_count }}
|
|
34
34
|
{% endblocktranslate %}
|
|
35
35
|
{% endif %}
|
|
@@ -5,7 +5,7 @@ Pagination for page listings. Used by the `{% paginate %}` template tag.
|
|
|
5
5
|
{% endcomment %}
|
|
6
6
|
|
|
7
7
|
<nav class="pagination" aria-label="{% trans 'Pagination' %}">
|
|
8
|
-
<p>{% blocktrans trimmed with page_number=page.number num_pages=paginator.num_pages %}
|
|
8
|
+
<p>{% blocktrans trimmed with page_number=page.number|intcomma num_pages=paginator.num_pages|intcomma %}
|
|
9
9
|
Page {{ page_number }} of {{ num_pages }}.
|
|
10
10
|
{% endblocktrans %}</p>
|
|
11
11
|
<ul>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{% extends "wagtailadmin/generic/index.html" %}
|
|
2
|
+
{% load wagtailadmin_tags i18n %}
|
|
3
|
+
{% comment %}
|
|
4
|
+
A base template for listing pages in the Wagtail admin. This is used as-is
|
|
5
|
+
by non-explorable listings, e.g. in a `PageListingViewSet`'s `IndexView` and
|
|
6
|
+
in the main "Search" view. It is also extended by explorable_index.html for
|
|
7
|
+
additional functionality.
|
|
8
|
+
{% endcomment %}
|
|
9
|
+
|
|
10
|
+
{% block bulk_actions %}
|
|
11
|
+
{% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=_("Select all pages in listing") app_label='wagtailcore' model_name='page' objects=page_obj %}
|
|
12
|
+
{% endblock %}
|
|
13
|
+
|
|
14
|
+
{% block extra_js %}
|
|
15
|
+
{{ block.super }}
|
|
16
|
+
|
|
17
|
+
{% comment %}
|
|
18
|
+
The first column will display checkboxes only if ordering is not being carried out, in which case
|
|
19
|
+
that column will have the drag and drop buttons to enable ordering
|
|
20
|
+
{% endcomment %}
|
|
21
|
+
{% if not show_ordering_column %}
|
|
22
|
+
<script defer src="{% versioned_static 'wagtailadmin/js/bulk-actions.js' %}"></script>
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% endblock %}
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
{% extends "wagtailadmin/
|
|
2
|
-
{% load wagtailadmin_tags i18n %}
|
|
3
|
-
{% block titletag %}{% trans 'Search' %}{% endblock %}
|
|
4
|
-
{% block extra_js %}
|
|
5
|
-
{{ block.super }}
|
|
6
|
-
<script>
|
|
7
|
-
window.wagtailConfig.BULK_ACTION_ITEM_TYPE = 'PAGE';
|
|
8
|
-
</script>
|
|
9
|
-
<script defer src="{% versioned_static 'wagtailadmin/js/bulk-actions.js' %}"></script>
|
|
10
|
-
{% endblock %}
|
|
11
|
-
|
|
12
|
-
{% block content %}
|
|
13
|
-
{% url 'wagtailadmin_pages:search_results' as search_results_url %}
|
|
14
|
-
{% include "wagtailadmin/shared/header.html" with title=_("Search") search_url="wagtailadmin_pages:search" icon="search" search_results_url=search_results_url search_target="#page-results" %}
|
|
15
|
-
<div id="page-results">
|
|
16
|
-
{% include "wagtailadmin/pages/search_results.html" %}
|
|
17
|
-
</div>
|
|
18
|
-
{% trans "Select all pages in listing" as select_all_text %}
|
|
19
|
-
{% include 'wagtailadmin/bulk_actions/footer.html' with app_label='wagtailcore' model_name='page' objects=page_obj select_all_obj_text=select_all_text %}
|
|
20
|
-
{% endblock %}
|
|
1
|
+
{% extends "wagtailadmin/pages/listing.html" %}
|