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

13336 Commits

Author SHA1 Message Date
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
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