Matt Westcott
e3d7f4219f
Move repeated get_context_data logic into helper methods
2022-01-16 14:27:59 +10:00
Matt Westcott
180f78aae5
Split out get_context_data methods
2022-01-16 14:27:59 +10:00
Matt Westcott
e48e34d8cf
Add a create_tab.html include for both the create form and the select-task-type view
...
This way, the logic for deciding which view to show only happens in one place, rather than being duplicated between the chooser.html template and the TaskChooserCreateView view.
2022-01-16 14:27:59 +10:00
Matt Westcott
ef31e160d9
Consistently use create_form and search_form as context variables
2022-01-16 14:27:59 +10:00
Matt Westcott
05fdea0394
Use standard form styling for 'create task' form
2022-01-16 14:27:59 +10:00
Matt Westcott
d8b81df487
Move 'create' form handling into its own view that only renders that one tab
2022-01-16 14:27:59 +10:00
Matt Westcott
5ce89f11ff
Split ajaxify code for the 'new' tab into its own function
...
This will be useful shortly when we move the form handling into its own view that renders that tab independently
2022-01-16 14:27:59 +10:00
Matt Westcott
284380672d
add another helper method get_task_type_filter_choices
2022-01-16 14:27:59 +10:00
Matt Westcott
60ba39ffb5
replace get_task_result_data helper with more useful one get_task_chosen_response
2022-01-16 14:27:59 +10:00
Matt Westcott
2af6b35203
Move get_chooser_context helper inline
...
It's only used in one place
2022-01-16 14:27:59 +10:00
Matt Westcott
fb48f9863d
Split out data retrieval methods from BaseTaskChooserView.dispatch
...
This ensures that we don't do redundant setup for sub-views that don't need it, e.g. setting up creation forms for the results-only view.
2022-01-16 14:27:59 +10:00
Matt Westcott
b3c765f14d
Split search/pagination actions into their own view
...
rather than switching behaviour based on the presence of certain URL parameters
2022-01-16 14:27:59 +10:00
Matt Westcott
889ce5945a
Move 'choose a different task type' link to create_form.html
...
This will let us refactor to only refresh the 'create' tab on the creation-related actions.
2022-01-16 14:27:59 +10:00
Matt Westcott
dd612b100c
Use can_create as the condition for displaying the 'create one now' message
...
There are several cases where createform is unavailable here even if creation is possible: namely, when displaying the results partial response, and when the 'select task type' view is shown
2022-01-16 14:27:59 +10:00
Matt Westcott
225f0b12bf
split up GET and POST cases
2022-01-16 14:27:59 +10:00
Matt Westcott
43c6a525a4
Split response rendering into its own method
2022-01-16 14:27:59 +10:00
Matt Westcott
04a08a7040
Swap around if/else clauses for request==POST and createform_class
...
This will make it easier to splitout the POST case later...
2022-01-16 14:27:59 +10:00
Matt Westcott
6c5f82bb7b
Don't use HTTP 201 to distinguish creations versus validation errors
...
That's what 'step': 'task_chosen' versus 'step': 'chooser' in the modal response is for...
2022-01-16 14:27:59 +10:00
Matt Westcott
1437484260
Convert task chooser to a class-based view
2022-01-16 14:27:59 +10:00
Andy Babic
0063484368
Fix incorrect logging of 'move' actions as 'reorder' actions when target
is an intended sibling
2022-01-16 14:26:25 +10:00
Jason Attwood
10f9de2459
Fix Dropdown issues in windows High contrast mode
...
- Fixes #7450
2022-01-16 14:09:45 +10:00
LB Johnston
efa21b7bf7
fix typo in release notes
2022-01-15 23:52:32 +10:00
Jason Attwood
a0e55cedee
Fix comment buttons not displaying correctly in high contrast mode
...
- fixes #7459
2022-01-15 23:41:42 +10:00
Shariq Jamil
28d9ded998
Add border to help/warning blocks for high contrast mode
...
- ensures the content has visible separation in windows high contrast mode
- fixes #7447
2022-01-15 23:37:05 +10:00
Jérôme Lebleu
318d3d81a9
Make homepage site summary items responsive
2022-01-15 22:45:20 +10:00
Jérôme Lebleu
55be8f3763
Use SVG icon in homepage's site summary items
2022-01-15 22:45:20 +10:00
Krzysztof Jeziorny
8fa614eaf7
Render horizontal listing as a flex container
...
- Don't set fixed height on listed images
- Improve display of image listing for long image titles
2022-01-15 22:21:46 +10:00
Jason Attwood
bc3ce80f8c
Fix gulp to correctly watch files
2022-01-15 22:11:48 +10:00
Matt Westcott
064f1926cd
Set default submit button label on generic create views to 'Create' instead of 'Save'
...
As per #7763
2022-01-15 22:02:53 +10:00
LB Johnston
7def921880
update changelog for #7751
2022-01-15 21:46:21 +10:00
Thibaud Colas
a5b563fc07
Switch to npm ci instead of npm install
2022-01-15 21:44:36 +10:00
Thibaud Colas
940fd1d041
Document full integration test steps
2022-01-15 21:44:36 +10:00
Thibaud Colas
1c2ef89957
Support changing which origin the integration tests are run on
2022-01-15 21:44:36 +10:00
Thibaud Colas
7630bcf231
Fix package-lock.json package name
2022-01-15 21:44:36 +10:00
Thibaud Colas
60fe493999
Skip editbird tests
2022-01-15 21:44:36 +10:00
Thibaud Colas
44fd1852ee
Trial browser tests in CircleCI
2022-01-15 21:44:36 +10:00
Scott Cranfill
bc7566104c
TypedTableBlock: Add borders to help visualize rows and columns ( #7670 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-15 10:57:12 +00:00
Jake Howard
0a9b23979b
Update links to wagtail.io website to point to wagtail.org
...
This covers only links to the website, not other sites
2022-01-15 20:23:44 +10:00
Jake Howard
e9183a95c8
Update docs links to reference new domain
2022-01-15 20:04:24 +10:00
LB (Ben Johnston)
1deed5f5af
Rename admin/expanding-formset.js (using kebab-case file) ( #7833 )
2022-01-15 01:00:02 +00:00
LB (Ben Johnston)
a7aabf76ac
modal-workflow - block additional opens & add trigger focus management ( #7568 ). Fix #4006
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-15 00:47:23 +00:00
Matt Westcott
317f100a78
Release note for #7805
2022-01-14 17:21:27 +00:00
Matt Westcott
ec84b35761
Update move_breadcrumb markup to match explorer breadcrumb
2022-01-14 17:07:50 +00:00
Tidiane Dia
d2c1392281
Include root and current section in breadcrumb
2022-01-14 17:07:50 +00:00
Tidiane Dia
d927343ca8
Add test
2022-01-14 17:07:50 +00:00
Tidiane Dia
bc7e116c75
Style move breadcrumb
2022-01-14 17:07:50 +00:00
Tidiane Dia
92477fb840
Add move breadcrumb
2022-01-14 17:07:50 +00:00
Tidiane Dia
a78996042e
Set default page level to parent of page to move instead of root
2022-01-14 17:07:50 +00:00
Thibaud Colas
4809621259
Use more findable token for code to be removed
...
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-01-14 15:59:37 +00:00
Thibaud Colas
1547f0a6d3
Add borders to critical sidebar components for high-contrast mode
2022-01-14 15:59:37 +00:00