0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
Commit Graph

11948 Commits

Author SHA1 Message Date
Coen van der Kamp
efb1024a72 Drop overflow hack 2021-10-15 14:20:56 +01:00
Coen van der Kamp
516f0dd7e1 Add table wrapper, makes any number of columns possible 2021-10-15 14:20:56 +01:00
Matt Westcott
78389caa95 Remove unnecessary indentation from code examples 2021-10-15 14:20:56 +01:00
Matt Westcott
6012291707 Documentation formatting fixes
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2021-10-15 14:20:56 +01:00
Matt Westcott
2626dec7d7 fixup! CSS tweaks as per https://github.com/wagtail/wagtail/pull/7470#issuecomment-941369676 2021-10-15 14:20:56 +01:00
Matt Westcott
39978caf53 Revert to initial empty state after removing all columns 2021-10-15 14:20:56 +01:00
Matt Westcott
1b3baaf975 Change 'insert here' tooltips to 'insert' 2021-10-15 14:20:56 +01:00
Matt Westcott
83871f641e CSS tweaks as per https://github.com/wagtail/wagtail/pull/7470#issuecomment-941369676 2021-10-15 14:20:56 +01:00
Matt Westcott
55c72fd3ba Docs for typed table block 2021-10-15 14:20:56 +01:00
Matt Westcott
a6649c0080 Add frontend tests for TypedTableBlock 2021-10-15 14:20:56 +01:00
Matt Westcott
3635ad8280 Upgrade jest / jsdom
typed table block uses replaceChildren, which was added to jsdom in 16.6.0
2021-10-15 14:20:56 +01:00
Matt Westcott
803316080f Add server-side tests for TypedTableBlock 2021-10-15 14:20:56 +01:00
Matt Westcott
3753b7a9e4 implement getTextLabel 2021-10-15 14:20:56 +01:00
Matt Westcott
33e015d1e7 Implement focus 2021-10-15 14:20:56 +01:00
Matt Westcott
d41dcd6381 styling for add-column menu 2021-10-15 14:20:56 +01:00
Matt Westcott
cdf8e9d409 Improve consistency of buttons 2021-10-15 14:20:56 +01:00
Matt Westcott
0270e769d6 Add title text for 'add column' button 2021-10-15 14:20:56 +01:00
Matt Westcott
6abca18817 Make strings translatable 2021-10-15 14:20:56 +01:00
Matt Westcott
4706daf274 Button style/positioning 2021-10-15 14:20:56 +01:00
Matt Westcott
62ead9a1fb Implement validation 2021-10-15 14:20:56 +01:00
Matt Westcott
cb6960037d Add front-end rendering for TypedTableBlock 2021-10-15 14:20:56 +01:00
Matt Westcott
1cd2ff3024 Add a dedicated TypedTable class to serve as the value of TypedTableBlock
This will help with creating the front-end rendering, as we can attach a helper method to return cells as BoundBlocks.
2021-10-15 14:20:56 +01:00
Matt Westcott
a03bcfee6d Replace 'enumerate's with 'zip's
Makes things a bit neater when iterating over row contents to perform some operation from the corresponding block.
2021-10-15 14:20:56 +01:00
Matt Westcott
bef6ffb64e Implement row insertion 2021-10-15 14:20:56 +01:00
Matt Westcott
bb57efc77a Implement row deletion 2021-10-15 14:20:56 +01:00
Matt Westcott
cc1e8282c0 Add hidden fields to keep track of row ordering and deletion 2021-10-15 14:20:56 +01:00
Matt Westcott
b78c658e0f Refactor this.rows so that each element is an object, and the list of blocks is just one property of that object 2021-10-15 14:20:56 +01:00
Matt Westcott
25652970a9 Add a trailing cell to each data row that will contain the 'delete row' button 2021-10-15 14:20:56 +01:00
Matt Westcott
76ef050146 Implement button for inserting column in any position 2021-10-15 14:20:56 +01:00
Matt Westcott
886bce0d0f implement button for deleting columns 2021-10-15 14:20:56 +01:00
Matt Westcott
8e0c88354a Skip deleted columns when saving tables to db 2021-10-15 14:20:56 +01:00
Matt Westcott
9ee21b9c9c Add hidden fields to keep track of deleted columns 2021-10-15 14:20:56 +01:00
Matt Westcott
47ee7df270 implement retrieving typed table block from database 2021-10-15 14:20:56 +01:00
Matt Westcott
1b1ee32cf7 Implement saving to database 2021-10-15 14:20:56 +01:00
Matt Westcott
8bd1801103 Add hidden field for column ordering 2021-10-15 14:20:56 +01:00
Matt Westcott
caefa52941 Add a hidden field for column type 2021-10-15 14:20:56 +01:00
Matt Westcott
da14ebaf7c implement setState 2021-10-15 14:20:56 +01:00
Matt Westcott
44d89d330d Add header inputs 2021-10-15 14:20:56 +01:00
Matt Westcott
2b76ce0db0 correct initialisation of cell ID prefixes and initial state 2021-10-15 14:20:56 +01:00
Matt Westcott
614c23c9a0 Typed table block - initial block class and client-side mechanism for adding columns/rows 2021-10-15 14:20:56 +01:00
Karl Hobley
ff76931aa4 Change log and release note for new database search backend 2021-10-15 11:15:03 +01:00
LB Johnston
b3366749d9 update release notes 2021-10-15 19:12:17 +10:00
LB Johnston
307d0126a2 add ability to customise the pre-filled document title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- add documentation
- fixes #7508
- see also #4945
- update image docs for same behaviour to be more readable
2021-10-15 18:25:23 +10:00
Noah Hall
300163b845 replace hard-coded colors for admin filters with variables
- fixes #7584
2021-10-15 17:49:20 +10:00
Matt Westcott
29e6bbe79c Update latest.txt for 2.14.2 release 2021-10-15 01:17:56 +01:00
Matt Westcott
f7fcae0a1d Release note for #6945 2021-10-15 01:16:33 +01:00
Cynthia Kiser
8f823f8803 Corrected how we pull related group and permission objects in migration 2021-10-15 00:44:20 +01:00
Cynthia Kiser
045197da5a Tighten up conditionals in collections_user_has_any_permission_for
Co-authored-by: Andy Babic <andyjbabic@gmail.com>
2021-10-15 00:44:20 +01:00
Cynthia Kiser
6e5131c20c Fixed delete so no one can delete root collections from the admin interface 2021-10-15 00:44:19 +01:00
Cynthia Kiser
c2f3bbea00 Fixed forward migration
I was always assigning all 3 permissions to a group - even if the group had originally only had a subset of permissions to manage the entire model
2021-10-15 00:44:19 +01:00