0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

13569 Commits

Author SHA1 Message Date
Sage Abdullah
7dacdcb920 Resolve history url from the side panel code to make it generic 2022-07-04 11:43:15 +01:00
Sage Abdullah
534a19edb1 Resolve model name and description from the side panel code to make it generic 2022-07-04 11:43:15 +01:00
Sage Abdullah
03487c7d35 Use object context variable in status templates that can be generic 2022-07-04 11:43:15 +01:00
Sage Abdullah
83aa3cfcb2 Use object as context variable name in BaseSidePanel 2022-07-04 11:43:15 +01:00
Sage Abdullah
feea6e637a Split StatusSidePanel into BaseStatusSidePanel and PageStatusSidePanel 2022-07-04 11:43:15 +01:00
Sage Abdullah
9cb75b0aca Move status side panel includes to a subdirectory 2022-07-04 11:43:15 +01:00
Sage Abdullah
bde74d9023 Move side_panels.py to wagtail/admin/ui 2022-07-04 11:43:15 +01:00
Sage Abdullah
238e9c5131 Move side panel templates to shared directory 2022-07-04 11:43:15 +01:00
Matt Westcott
ffda558015 Remove outdated references to old db search backend in docs 2022-07-04 07:59:23 +10:00
LB Johnston
c577554838 documentation - upgrading - fix formatting issue
- fix issue introduced by #8769
2022-07-04 07:58:46 +10:00
LB Johnston
2ba00d99b0 fix - ensure tooltips get re-initialised
- chooser modals (e.g. documents)
- header search
2022-07-04 07:57:16 +10:00
Sævar Öfjörð Magnússon
34734d252f Remove the edit link from edit bird in previews to avoid confusion 2022-07-03 13:34:57 +01:00
Dan Braghis
a9b947723e
Remove custom treebeard MP_Node patch (#8786)
https://github.com/django-treebeard/django-treebeard/pull/165 was released in treebeard 4.4 and we're requiring >= 4.5.1
2022-07-01 10:06:37 +01:00
Matt Westcott
e300b39c41 Squash testapp migrations 2022-06-30 22:41:41 +01:00
LB Johnston
d4f6773940 fix documentation markdown conversion issue
- introduced in #8569
2022-06-30 16:55:42 +10:00
LB Johnston
cda437804e fix up markdown docs conversion issues
- introduced in #8759 & #8569
2022-06-30 16:36:37 +10:00
SilvestriStefano
f535a0cc43 Documentation - migrate reference/** files to markdown content
- relates to #8383
2022-06-30 09:57:26 +10:00
LB Johnston
0afe2f9c89 Documentation - rename docs/reference/**
- rename all files from rst to md so git history is preserved
2022-06-30 09:57:26 +10:00
LB Johnston
86cb09a534 Documentation - fix streamfield reference issue
- myst was building a doc link `streamfield` and also had a ref link `streamfield` which was causing conflicts
2022-06-30 09:57:26 +10:00
LB Johnston
4e7accda55 documentation migrate rest of topics/search/** to markdown 2022-06-30 09:16:42 +10:00
LB Johnston
7d2545cddc documentation - topics/search - rename files
- adding as separate commit to preserve file history
2022-06-30 09:16:42 +10:00
Matt Westcott
a0de60b1ea
Test against Django stable/4.1.x branch (#8774)
* Test against Django stable/4.1.x branch

* Use postgres 12 for stable/4.1.x
2022-06-29 10:18:41 +01:00
LB Johnston
2be5b823ad test fix from #8640 2022-06-29 15:09:33 +10:00
Tidiane Dia
b4fded5958 Prefetch workflow states in page edit view
- Add test to show initial number of performed queries
- Add test to show number of queries performed when workflow states are prefetched
2022-06-29 14:45:01 +10:00
Josh Michael Karamuth
3374ccee5e Make password reset form customisable
- Use a setting called WAGTAILADMIN_USER_PASSWORD_RESET_FORM to allow
users to specify a custom form for use in PasswordResetView

- Add an extra_fields property so that fields other than the
mandatory email field can be easily rendered in the template.

- Add extra blocks to the default template to allow users to
easily add their own stuff.

- Render extra fields in the template like we're doing in the
login template.
2022-06-29 14:40:24 +10:00
Steve Steinwand
daa47baddd Add legacy and new status tags to the pattern library 2022-06-29 13:58:04 +10:00
Matt Westcott
172b133568 Eliminate the custom response name 'snippetChosen'
This makes the snippet chooser modal code a completely vanilla implementation of ChooserModalOnloadHandlerFactory, so we don't need snippet-chooser-modal.js at all.
2022-06-29 13:42:04 +10:00
Matt Westcott
be5b8c41c7 Deprecate createSnippetChooser 2022-06-29 13:42:04 +10:00
Matt Westcott
f3e40571f1 Make SnippetChooser a subclass of Chooser 2022-06-29 13:42:04 +10:00
Matt Westcott
b5733d92d4 eliminate jquery from SnippetChooser 2022-06-29 13:42:04 +10:00
Matt Westcott
9af3efd261 Refactor a SnippetChooser class out of createSnippetChooser
Use the client/src/components/ChooserWidget Chooser class as a guide, but don't copy code from there (so that any snippet-specific customisations don't get lost in translation)
2022-06-29 13:42:04 +10:00
Matt Westcott
9086300a4a Remove special-case handling of cross-links between chooser views
The viewset deals with those correctly now.
2022-06-29 13:34:30 +10:00
Matt Westcott
6b6d3b1f7e Register snippet chooser views using viewsets 2022-06-29 13:34:30 +10:00
Matt Westcott
65cf8488b8 Refactor chooser views into separate urlconfs per model 2022-06-29 13:34:30 +10:00
Matt Westcott
7304547657 Move remaining snippet urlconfs into wagtail_hooks
This will make it easier to refactor the chooser views into separate urlconfs per model.
2022-06-29 13:34:30 +10:00
Matt Westcott
d259d2067a Use generic ChosenView for snippets 2022-06-29 13:34:30 +10:00
Matt Westcott
6041df231b Add mixins to eliminate duplication on ChooseView / ChooseResultsView 2022-06-29 13:34:30 +10:00
Matt Westcott
64f2a57137 Make BaseSnippetChooseView inherit from generic BaseChooseView 2022-06-29 13:34:30 +10:00
Matt Westcott
9a877e319b Add fallback ordering on primary key to generic chooser 2022-06-29 13:34:30 +10:00
Matt Westcott
eb22a209e4 Add properties for columns and per_page 2022-06-29 13:34:30 +10:00
Matt Westcott
787691e762 Make snippet chooser results template inherit from generic chooser results 2022-06-29 13:34:30 +10:00
Matt Westcott
c293438121 Use generic chooser.html template 2022-06-29 13:34:30 +10:00
Matt Westcott
75d268d104 rename 'items' to 'results' for consistency with generic view 2022-06-29 13:34:30 +10:00
Matt Westcott
8c40292938 Add a get_results_url method to accommodate setups where the URL routing is more complex than a static route name with no arguments 2022-06-29 13:34:30 +10:00
Matt Westcott
5debdaa1f8 Pass icon / page_title / page_subtitle from view class 2022-06-29 13:34:30 +10:00
Matt Westcott
0eedf10aec Support passing a page subtitle on ModalPageFurnitureMixin 2022-06-29 13:34:30 +10:00
Matt Westcott
8735472ace Move locale chooser into filter_form
Remove the hidden 'locale' field, as it's not clear why it's needed - there's no UI mechanism for reverting back to the locale we initially opened the modal on, so there's no reason to persist it between modal view loads.
2022-06-29 13:34:30 +10:00
Matt Westcott
4f511f0fd4 Migrate snippet chooser search form to get_filter_form_class
to match generic implementation in wagtail.admin.views.generic.chooser
2022-06-29 13:34:30 +10:00
Matt Westcott
fe700b9292 Split out a get_context_data method 2022-06-29 13:34:30 +10:00
Matt Westcott
20f49137b6 Split out a get_object_list method 2022-06-29 13:34:30 +10:00