Wykres commitów

11148 Commity (7423d72efe58d38e9a287999940b9b302cac58e4)

Autor SHA1 Wiadomość Data
Karl Hobley e80cc79359 Update tests for ListBlock 2021-03-17 23:32:48 +00:00
Karl Hobley d0d3eb838b Update tests for StructBlock 2021-03-17 23:32:48 +00:00
Matt Westcott dac71cd4a7 Pass translation strings for list/stream buttons to JS 2021-03-17 23:32:47 +00:00
Karl Hobley ab40114edb Delete EmbedBlock form render test
It's just a URL Block with no customisations so not worth a test
2021-03-17 23:32:47 +00:00
Karl Hobley ad14ac774a Add tests for SnippetChooserBlock and AdminSnippetChooser adapters 2021-03-17 23:32:47 +00:00
Karl Hobley 0bef68cc3f Add tests for PageChooserBlock and AdminPageChooser adapters 2021-03-17 23:32:47 +00:00
Matt Westcott dac969a372 Test reordering 2021-03-17 23:32:46 +00:00
Matt Westcott 9f82264b33 Implement ordering controls on ListBlock 2021-03-17 23:32:46 +00:00
Matt Westcott f96c567353 Implement ordering controls on StreamBlock 2021-03-17 23:32:46 +00:00
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