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

13446 Commits

Author SHA1 Message Date
Matt Westcott
dc99bd02c1 Change create tab ID back to 'upload'
This allows the 'upload one now' link to work again without having to update the translation string (which has tab-upload hard-coded)
2022-07-04 19:01:28 +01:00
Matt Westcott
cbe8e3e794 move collection chooser into filter form 2022-07-04 19:01:28 +01:00
Matt Westcott
7fd45a6693 Use a CollectionQuerySet method to simplify displaying indented collection lists 2022-07-04 19:01:28 +01:00
Matt Westcott
988b7c8c39 Use ChooseResultsViewMixin for document chooser results view 2022-07-04 19:01:28 +01:00
Matt Westcott
f130141147 Use CreateViewMixin for document upload view 2022-07-04 19:01:28 +01:00
Matt Westcott
89de23de58 Use CreationFormMixin for document chooser views that work with upload forms 2022-07-04 19:01:28 +01:00
Matt Westcott
52696c467c Add CreationFormMixin to ChooseResultsView
Among other creation-form-related methods, this makes `can_create` available on the results view, which is useful for selectively outputting the "no objects found; would you like to create one now?" message.
2022-07-04 19:01:28 +01:00
Matt Westcott
ee1867e766 Add some more customisation hooks to creation form handling 2022-07-04 19:01:28 +01:00
Matt Westcott
7563b3d52b Use DocumentChosenResponseMixin for upload view 2022-07-04 19:01:28 +01:00
Matt Westcott
e23bb1cec6 Convert document chooser upload view to a class-based view 2022-07-04 19:01:28 +01:00
Matt Westcott
0159913261 use generic creation_form.html for document chooser upload template 2022-07-04 19:01:28 +01:00
Matt Westcott
5244d005ce Use generic ChosenView on document chooser 2022-07-04 19:01:28 +01:00
Matt Westcott
3b993611b0 Inherit from generic chooser.html template 2022-07-04 19:01:28 +01:00
Matt Westcott
aa42e075f3 Inherit from generic chooser results template 2022-07-04 19:01:28 +01:00
Matt Westcott
a39e12433b Use ContextMixin for document chooser views 2022-07-04 19:01:28 +01:00
Matt Westcott
14a56b99b0 Split out a get_object_list method 2022-07-04 19:01:28 +01:00
Matt Westcott
20ffd8cf9c Add permission check for creation form 2022-07-04 13:48:35 +01:00
Matt Westcott
f1bf6b3463 Add POST handling to create view 2022-07-04 13:48:35 +01:00
Matt Westcott
30054eda39 Add a 'create' view with a GET request handler 2022-07-04 13:48:35 +01:00
Matt Westcott
4dd3483617 Add a (non-functional) 'create' form to generic chooser modal 2022-07-04 13:48:35 +01:00
Matt Westcott
960dba276e Add ID for "non-existent field" system check
Partially addresses #8762.
2022-07-04 12:02:04 +01:00
LB Johnston
04839f7caf Migrate Portal React component to Typescript 2022-07-04 11:57:28 +01:00
LB Johnston
d9350bc91b add react-dom types so that Portal is correctly recognised 2022-07-04 11:57:28 +01:00
Sage Abdullah
291538ca1d Add test for ensuring side panel ordering 2022-07-04 11:43:15 +01:00
Sage Abdullah
c6e6f46c29 Sort side panels by order 2022-07-04 11:43:15 +01:00
Sage Abdullah
80643e0680 Extract BaseSidePanels from PageSidePanels 2022-07-04 11:43:15 +01:00
Sage Abdullah
dcc91b7857 Extract get_status_templates() to define status templates to include 2022-07-04 11:43:15 +01:00
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