0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

13556 Commits

Author SHA1 Message Date
Matt Westcott
da33faf220 Use ChosenViewMixin for image chosen view 2022-08-02 19:28:49 +02:00
Matt Westcott
e831d8e6cc Use standard modal step names (choose / chosen) for image chooser 2022-08-02 19:28:49 +02:00
Matt Westcott
386a7d7c95 Make image chooser views inherit from ChooseViewMixin / ChooseResultsViewMixin 2022-08-02 19:28:49 +02:00
Matt Westcott
2be596212f Inherit from BaseChooseView on image chooser views 2022-08-02 19:28:49 +02:00
Matt Westcott
c75e29b364 Use CreationFormMixin to handle image upload form 2022-08-02 19:28:49 +02:00
Matt Westcott
3aa69c5e31 Use the generic creation_form.html for the image chooser 2022-08-02 19:28:49 +02:00
Matt Westcott
81293058cf Make image chooser results.html inherit from generic template 2022-08-02 19:28:49 +02:00
Matt Westcott
be368d1361 Make images chooser.html inherit from generic template
Remove the `w-tabs__wrapper` element from the generic template, as it isn't needed (its primary purpose is to handle the tab list overflowing/scrolling) and adds unwanted bottom margin.
2022-08-02 19:28:49 +02:00
Matt Westcott
68a265b1c1 Tweak wagtailimages/chooser/chooser.html to better match generic template 2022-08-02 19:28:49 +02:00
Matt Westcott
7ed50d5364 Use ModalPageFurnitureMixin to pass icon / page title 2022-08-02 19:28:49 +02:00
Matt Westcott
e124a08e8d Use ContextMixin for image chooser views
so that we can use other mixins to populate the context
2022-08-02 19:28:49 +02:00
Matt Westcott
dd892a6508 Use ChosenResponseMixin for returning 'image chosen' responses 2022-08-02 19:28:49 +02:00
Matt Westcott
de2662ff56 Make chooser upload view into a class-based view 2022-08-02 19:28:49 +02:00
Matt Westcott
db41ae4dde Make image_chosen view into a class-based view 2022-08-02 19:28:49 +02:00
Matt Westcott
ade352d538 Split out get_object_list and filter_object_list methods 2022-08-02 19:28:49 +02:00
Matt Westcott
f861bf991e Move collection filter into filter form 2022-08-02 19:28:49 +02:00
Matt Westcott
0ab0ecc78f Remove unnecessary seek operation
file.open does this already.
2022-08-02 18:53:56 +02:00
Matt Westcott
8ca7cc72d5 Remove now-unnecessary save_object methods 2022-08-02 18:53:56 +02:00
Matt Westcott
9d7f0d16c5 Handle deletion of original file in form.save 2022-08-02 18:53:56 +02:00
Matt Westcott
9667088e98 Move setting metadata / reindexing into form.save() 2022-08-02 18:53:56 +02:00
Matt Westcott
fe73506747 Move file.open call into set-file-metadata method
If the file is already open this is the same as seek(0), so there are no unwanted side effects from this.
2022-08-02 18:53:56 +02:00
Matt Westcott
fcb2776383 Add a _set_document_file_metadata helper method 2022-08-02 18:53:56 +02:00
Matt Westcott
a9aa3cdc21 Add a _set_image_file_metadata helper method 2022-08-02 18:53:56 +02:00
Matt Westcott
112f2ea7da Fix focus() to focus the correct button in the 'chosen' vs 'unchosen' divs according to the widget state 2022-08-02 16:41:46 +02:00
Matt Westcott
f91daa7f3e Use textContent rather than innerText for accessing title element
innerText is unimplemented by jest / jsdom, as per https://github.com/jsdom/jsdom/issues/1245
2022-08-02 16:41:45 +02:00
Matt Westcott
d1f21993dc Deprecate createPageChooser 2022-08-02 16:38:28 +02:00
Matt Westcott
e21e1d6644 Correctly handle edit link element being omitted from chooser widget 2022-08-02 16:37:24 +02:00
Matt Westcott
7d2f1d4286 Make PageChooser widget inherit from base Chooser 2022-08-02 16:35:59 +02:00
Matt Westcott
f048970b73 make the 'edit_link' key name customisable 2022-08-02 16:35:58 +02:00
Matt Westcott
edb40be2a0 Support urlParams when calling ModalWorkflow from chooser widgets 2022-08-02 16:32:49 +02:00
Matt Westcott
dc4deae871 eliminate jQuery from PageChooser 2022-08-02 16:32:49 +02:00
Matt Westcott
3a7c302228 Refactor a PageChooser class out of createPageChooser 2022-08-02 16:32:49 +02:00
LB (Ben Johnston)
8cda62471d
Add third party tutorials (#8924) 2022-08-01 09:25:41 -04:00
Paritosh Kabra
63e0181f93 Fix query search in filtered image admin listing
- fixes #8029
- Fix Search Images within a Collection and an empty search query param - `admin/images/?collection_id=1&q=1`
2022-08-01 20:20:46 +10:00
LB Johnston
65f2512b87 changelog for #8903 2022-08-01 08:22:27 +10:00
Sage Abdullah
d87d53fca8 Fix privacy dialog toggle color in status side panel 2022-08-01 08:22:27 +10:00
Sage Abdullah
2961c90ae1 Add missing type="button" in collections/_privacy_switch.html 2022-08-01 08:22:27 +10:00
LB Johnston
18ad15a18f changelog entry for #8922
- resolves #8818
2022-07-31 04:11:07 +10:00
LB Johnston
22e904fb01 Refine dashboard design - summary panels
* Update colours and icons for summary panels
* add h1 id for aria referencing
* rework layout to use flex box & not floats
* move summary styles to own component scss file
* now functions correctly in RTL mode
2022-07-31 04:11:07 +10:00
PaarthAgarwal
684c173729 Refine dashboard design - header
* Updated header - updated avatar alignment, use theme variables
* pulled header_description out of h1, added info of header_description
* #8818
2022-07-31 04:11:07 +10:00
Jaap Roes
649a8623a0 Correctly validate from/to column index in redirect import
- fixes #8813
- relates to #6913 #8814
- add file hash check to ensure that no content can be tampered with mid-request after form submis
2022-07-30 17:54:02 +10:00
PaarthAgarwal
37b83a3976 updated page listings header to new designs
- fixes #8868
2022-07-30 17:30:21 +10:00
Scott Cranfill
f72aec9b61 Ensure consistent sidebar icon position whether expanded or collapsed
Adding vertical margin gives them same height when collapsed as the text with line-height when expanded.
2022-07-30 17:22:49 +10:00
PaarthAgarwal
bcb5b2baac fix breadcrumbs for root page on page listing
- when breadcrumbs show in the root page - it is the only item
- ensure the content is inset so that it shows correctly
2022-07-26 22:46:24 +10:00
PaarthAgarwal
887a259723 added translate button to header actions dropdown, removed all the instances of is_parent
- Fixed failing tests, added check for simple_translations enabled
- resolves #8866
2022-07-26 22:36:35 +10:00
PaarthAgarwal
2a751e9b00 updated help block colours & link styles
- resolves #8896
2022-07-26 22:01:12 +10:00
LB (Ben Johnston)
7313419fc9
add links to styleguide help blocks for easier validation (#8899) 2022-07-25 13:59:55 -04:00
LB Johnston
dc61036614 changelog for #8777 & #8778 2022-07-23 11:33:01 +10:00
Matt Westcott
157f7674bc Eliminate the custom response name 'imageChosen' 2022-07-23 11:33:01 +10:00
Matt Westcott
dec7cdd9bf Deprecate createImageChooser 2022-07-23 11:33:01 +10:00