Sage Abdullah
3a9e5a2680
Add StatusSidePanel to generic EditView
2023-10-04 11:20:31 +01:00
Sage Abdullah
e6bd210a0f
Rename BaseStatusSidePanel to StatusSidePanel
2023-10-04 11:20:31 +01:00
Sage Abdullah
7f131603ff
Add default content for no_results_message block in listing_results.html template
2023-10-04 11:20:30 +01:00
Sage Abdullah
4593eabff8
Add usage view to ModelViewSet
...
- Move permission_required from snippets' UsageView to generic UsageView
- Fix breadcrumbs item missing capfirst()
- Move usage view config in SnippetViewSet to ModelViewSet
2023-10-04 11:20:30 +01:00
Sage Abdullah
055485f0ab
Move usage_url resolution from snippets EditView to generic EditView
2023-10-04 11:20:30 +01:00
Sage Abdullah
7a045cc7e6
Pass last updated info from the view to the status side panel via __init__
2023-10-04 11:20:30 +01:00
Sage Abdullah
2b4a206d76
Remove unused preview_url context variable in the create/edit view mixin
...
Was mistakenly added in the PR that moved the side panels context variables to the view
2023-10-04 11:20:30 +01:00
Sage Abdullah
dab55a69fb
Move StatusSidePanel's history_url resolution to __init__
2023-10-04 11:20:29 +01:00
Sage Abdullah
9701be79e4
Move StatusSidePanel's usage_url resolution to __init__
2023-10-04 11:20:29 +01:00
MugoBrian
b1de0e5860
Python3-venv Installation Instructions For Ubuntu ( #10988 )
2023-10-04 11:12:02 +01:00
Sage Abdullah
5a0bd78e68
Release notes for #10919
2023-10-04 10:51:28 +01:00
Sage Abdullah
d73f48a735
Add tests for ModelViewSet's history view
2023-10-04 10:42:01 +01:00
Sage Abdullah
d7e32c79cc
Add link to history view in generic EditView
2023-10-04 10:42:01 +01:00
Sage Abdullah
31694dc141
Remove snippets edit_header.html in favour of generic slim_header.html
...
This is now possible now that the slim_header.html template has the history icon link include
2023-10-04 10:42:01 +01:00
Sage Abdullah
2b89685f80
Incorporate history icon link to slim_header.html template
2023-10-04 10:42:00 +01:00
Sage Abdullah
569552570f
Extract history icon link for slim header's actions into a template include
2023-10-04 10:42:00 +01:00
Sage Abdullah
bc2004cf7b
Add history view to ModelViewSet
2023-10-04 10:42:00 +01:00
Sage Abdullah
dc049cd880
Extract generic HistoryView from snippets history view
2023-10-04 10:42:00 +01:00
Sage Abdullah
79c3771cef
Allow generic index template to override header action icon
2023-10-04 10:25:22 +01:00
LB Johnston
45ceaddd54
Cleanup from #10956 - no need to import email_management_enabled
...
- email_management_enabled is declared in the same file
- See https://github.com/wagtail/wagtail/pull/10956/files#r1344317294
2023-10-04 08:06:14 +11:00
LB Johnston
76a0c4968a
Adopt classname
instead of classnames
in all MenuItem/Sidebar usage
...
- Adds a deprecation path, including documentation to further remove unpredictable naming of adding `classname` in Python APIs
- Intentionally keeps `classNames` in Telepath adaptor inner usage as this convention is not set, however, the server side value passed in will use `classname`
- See https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#use-classname-in-python-html-template-tag-variables
- See #9769 & #9770
2023-10-04 08:05:52 +11:00
Sage Abdullah
d4108d8f52
Add Sandro Rodrigues to contributors
2023-10-03 17:18:35 +01:00
Sage Abdullah
a0335d2919
Release notes for #10983 in 5.1.3
2023-10-03 17:10:11 +01:00
Sandro
d67545e2d6
Fixed SnippetBulkAction not respecting models definition
...
Amends c1a4528b8a
to use Django's
classproperty util instead of a get_models() method that replaces the
models definition that may be overridden in custom bulk actions.
2023-10-03 16:29:41 +01:00
Sage Abdullah
87f1310a40
Release notes for #10884
2023-10-03 16:06:16 +01:00
Sage Abdullah
84a483589d
Make the last item in the breadcrumbs a link to itself
2023-10-03 15:46:40 +01:00
Sage Abdullah
3b7aa245a8
Add breadcrumbs to the snippets model index view
2023-10-03 15:03:06 +01:00
Sage Abdullah
fb5d22ae1d
Add missing capfirst() in generic usage view breadcrumbs item
2023-10-03 15:03:05 +01:00
Sage Abdullah
8fa39eaff0
Add tests for rendering breadcrumbs on snippets views
2023-10-03 15:03:05 +01:00
Sage Abdullah
8dc376ce26
Add tests for rendering breadcrumbs on workflows and tasks views
2023-10-03 15:03:05 +01:00
Sage Abdullah
5bc3fbf615
Add tests for rendering breadcrumbs on locales views
2023-10-03 15:03:05 +01:00
Sage Abdullah
e090d747fd
Add tests for rendering breadcrumbs on sites views
2023-10-03 15:03:05 +01:00
Sage Abdullah
4bf2a93260
Add tests for rendering breadcrumbs on collections views
2023-10-03 15:03:05 +01:00
Sage Abdullah
76ad1bf4c1
Add tests for rendering breadcrumbs on user and group views
2023-10-03 15:03:04 +01:00
Sage Abdullah
5349252bbd
Extract AdminTemplateTestUtils.assertBreadcrumbsItemsRendered from ModelViewSet breadcrumbs tests
2023-10-03 15:02:58 +01:00
Sage Abdullah
b487ea67ea
Fix failing tests due to str(response.content) when parsing HTML
2023-10-03 15:01:52 +01:00
Sage Abdullah
815bf01cff
Use base Task verbose name for task index breadcrumb item
2023-10-03 15:01:52 +01:00
Sage Abdullah
8322dd0136
Extend generic confirm_delete template for workflows and tasks confirm_disable template
2023-10-03 15:01:52 +01:00
Sage Abdullah
21b7383a41
Extend generic base template for workflows and tasks create and edit templates
2023-10-03 15:01:51 +01:00
Sage Abdullah
fc33e4a3d7
Override specific blocks in workflows and tasks index templates to reuse the slim header
2023-10-03 15:01:51 +01:00
Sage Abdullah
b291c9b6c0
Extend generic form template for users create template
2023-10-03 15:01:51 +01:00
Sage Abdullah
466d2b6557
Extend generic confirm_delete template for users confirm_delete template
2023-10-03 15:01:51 +01:00
Sage Abdullah
f90f900e73
Extend generic form template for users edit template
2023-10-03 15:01:51 +01:00
Sage Abdullah
f7b597be91
Reuse header definition from the generic index view for users index view
2023-10-03 15:01:51 +01:00
Sage Abdullah
c2b8a717ca
Extend generic confirm_delete template for collections delete_not_empty template
2023-10-03 15:01:50 +01:00
Sage Abdullah
0ac0402602
Extend generic confirm_delete template for locale confirm_delete template
2023-10-03 15:01:50 +01:00
Sage Abdullah
5cf38dd654
Extend generic confirm_delete template for groups confirm_delete template
2023-10-03 15:01:50 +01:00
Sage Abdullah
52721613b7
Extend generic base template for groups edit template
...
This allows us to reuse the breadcrumbs.
2023-10-03 15:01:50 +01:00
Sage Abdullah
0709c31933
Extend generic base template for groups create template
...
This allows us to reuse the header parts, including breadcrumbs.
2023-10-03 15:01:49 +01:00
Sage Abdullah
7e7fc56d6c
Add missing model attribute in collections create view to allow breadcrumbs to appear
2023-10-03 15:01:49 +01:00