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

11239 Commits

Author SHA1 Message Date
Matt Westcott
ffcf8a2ca0 enable/disable reorder buttons on add/delete 2021-03-17 23:32:46 +00:00
Matt Westcott
0e317a0895 Defer rendering StreamBlock menu until opened
A small optimisation for large StreamBlocks - most stream menus will never be expanded, so it's wasted work to render the menu contents up-front.
2021-03-17 23:32:45 +00:00
Karl Hobley
379c9983df Move block tests into components 2021-03-17 23:32:45 +00:00
Karl Hobley
e712e6240d Split telepath blocks into separate files 2021-03-17 23:32:45 +00:00
Karl Hobley
1c9cc7a56d Update tests for RawHTMLBlock 2021-03-17 23:32:45 +00:00
Karl Hobley
0565001f7e Update tests for MultipleChoiceBlock 2021-03-17 23:32:44 +00:00
Karl Hobley
872e076349 Update tests for ChoiceBlock 2021-03-17 23:32:44 +00:00
Karl Hobley
85deaee396 Update tests for RichTextBlock 2021-03-17 23:32:44 +00:00
Karl Hobley
c26d1507b5 Update RegexBlock custom error message test 2021-03-17 23:32:44 +00:00
Karl Hobley
e292fd5887 Call Field.prepare_value() from FieldBlock.get_form_state() 2021-03-17 23:32:43 +00:00
Karl Hobley
0d586fd53a Add support for classname and form_classname Meta attributes 2021-03-17 23:32:43 +00:00
Karl Hobley
0416c28f72 Update tests for FieldBlock 2021-03-17 23:32:43 +00:00
Matt Westcott
88ab533590 Keep references to raw values during packing to prevent ID recycling 2021-03-17 23:32:42 +00:00
Matt Westcott
9bdb55584c failing test for ID collisions 2021-03-17 23:32:42 +00:00
Matt Westcott
2899968123 Reorganise try/except to avoid masking unrelated TypeErrors happening during pack 2021-03-17 23:32:42 +00:00
Matt Westcott
96f1cf4486 Don't reassign id to nodes if they already have one
It doesn't break either way (because the last-assigned ID will be the one used in the output) but it's neater and avoids weird gaps in the ID sequence...
2021-03-17 23:32:42 +00:00
Karl Hobley
cd0e447b56 Merge most of ListChild and StreamChild into BaseSequenceChild 2021-03-17 23:32:41 +00:00
Karl Hobley
2738b21bf3 Add opening animation to ListChild 2021-03-17 23:32:41 +00:00
Karl Hobley
e5dd68ed6d Remove data attributes that contained type name 2021-03-17 23:32:41 +00:00
Karl Hobley
affe84f20c Remove unused ids from ListChild 2021-03-17 23:32:41 +00:00
Karl Hobley
ce85081b3f Add type field on ListChild 2021-03-17 23:32:40 +00:00
Karl Hobley
0574c6b6f1 Add an id field to ListChild
This brings it slightly closer to StreamChild, and we'll need it later
for https://github.com/wagtail/rfcs/pull/65
2021-03-17 23:32:40 +00:00
Karl Hobley
f78c96e73e Set index input in ListBlock child 2021-03-17 23:32:40 +00:00
Karl Hobley
565a0079b5 Telepath: Deletion of ListBlock items 2021-03-17 23:32:39 +00:00
Karl Hobley
9def22c292 Implement adding new list block children 2021-03-17 23:32:39 +00:00
Karl Hobley
2f6a635054 Refactor a ListChild out of ListBlock
Based on 73be2a6ffe
2021-03-17 23:32:39 +00:00
Matt Westcott
99f7e3e557 Support custom form_template on StructBlock 2021-03-17 23:32:39 +00:00
Matt Westcott
84b44b50b4 Populate label 'for' attribute on render 2021-03-17 23:32:38 +00:00
Matt Westcott
35dd2f2d3f Include help text on block rendering 2021-03-17 23:32:38 +00:00
Matt Westcott
71e2d542ff Add required asterisk to StructBlock children 2021-03-17 23:32:38 +00:00
Karl Hobley
f0635165b3 Unit tests for StreamBlock 2021-03-17 23:32:38 +00:00
Karl Hobley
889689f754 Unit tests for ListBlock 2021-03-17 23:32:37 +00:00
Karl Hobley
5518c5ea34 Unit tests for StructBlock 2021-03-17 23:32:37 +00:00
Karl Hobley
87cdc215bd Telepath: Validation 2021-03-17 23:32:37 +00:00
Karl Hobley
7477ce1e1c Unit tests for FieldBlock 2021-03-17 23:32:36 +00:00
Karl Hobley
43995c7665 Unit tests for TableInput 2021-03-17 23:32:36 +00:00
Karl Hobley
996aa149cb Unit tests for date/time widgets 2021-03-17 23:32:36 +00:00
Karl Hobley
a2baf4a99a Remove TableBlock's legacy widget rendering 2021-03-17 23:32:36 +00:00
Karl Hobley
f083770d8d Make TableBlock translatable again 2021-03-17 23:32:35 +00:00
Karl Hobley
d09938d400 Implement telepath adapter for TableInput 2021-03-17 23:32:35 +00:00
Karl Hobley
2314922ae1 Lint table.js 2021-03-17 23:32:35 +00:00
Karl Hobley
3664bfa838 Convert table.js to use 2-space indentation 2021-03-17 23:32:35 +00:00
Karl Hobley
84010b92a7 Moved TableBlock block's table.js into client 2021-03-17 23:32:34 +00:00
Matt Westcott
24d393d7cb Fix setting of initial state for datetime fields 2021-03-17 23:32:34 +00:00
Karl Hobley
7bc28b46b1 Telepath: Date time inputs 2021-03-17 23:32:34 +00:00
Karl Hobley
c50ee54659 Add unit tests for DraftailRichTextArea 2021-03-17 23:32:34 +00:00
Karl Hobley
0a2f71856a Add unit tests for AdminAutoHeightTextInput 2021-03-17 23:32:33 +00:00
Karl Hobley
e23e7c1c6e Add unit tests for PageChooser 2021-03-17 23:32:33 +00:00
Karl Hobley
ca87668cb9 Add unit tests for RadioSelect/BoundRadioSelect 2021-03-17 23:32:33 +00:00
Karl Hobley
1d894ee6e7 Add unit tests for Widget/BoundWidget 2021-03-17 23:32:33 +00:00