Karl Hobley
4bf28b502c
Fix docs for construct_page_listing_buttons
2020-07-31 11:14:48 +01:00
jacobtoppm
faa57ce0af
Remove 'and publish' from final workflow step approve button if using a nonlinear workflow mode where approval might not actually publish the page
2020-07-31 11:10:01 +01:00
jacobtoppm
f915a69a93
Compare StreamField blocks by serialised value when checking has_changed for a form, preventing form.has_changed from always returning True for pages with StreamFields
2020-07-31 11:10:01 +01:00
Karl Hobley
f3f932d2e5
Add before_{create,edit,delete}_snippet hooks
2020-07-30 08:08:40 +01:00
Karl Hobley
873160dd9a
Fix test name typo
2020-07-29 17:44:09 +01:00
Dan Braghis
d74be82319
Add Draftail button hover border
2020-07-28 17:18:50 +01:00
Dan Braghis
d9b692a2e8
Add missing richtext features SVG icons
2020-07-28 17:18:50 +01:00
Matt Westcott
e0dc53d9ad
Remove versionadded/versionchanged notes for 2.9
2020-07-28 12:53:22 +01:00
Matt Westcott
545a05338e
Rotate deprecation warnings
2020-07-28 12:53:22 +01:00
Matt Westcott
48dee654b4
Move SiteMiddleware to wagtail.contrib.legacy
2020-07-28 12:53:22 +01:00
Matt Westcott
7451500054
Add release note sections for 2.11
2020-07-28 12:53:22 +01:00
Matt Westcott
cc83f956e6
Version bump to start work on 2.11
2020-07-28 12:53:22 +01:00
Chris Contolini
4231d9ef11
Fix minor typo in TableBlock docs ( #6259 )
...
Also a small grammatical fix.
2020-07-28 07:14:05 -04:00
Matt Westcott
b6455ecfb9
Fetch new translations
2020-07-27 11:10:50 +01:00
Matt Westcott
e25ee3da89
Generate new strings for translation
2020-07-24 18:09:12 +01:00
Matt Westcott
b1adc6b042
Fix translation string formatting in redirect import views
2020-07-24 18:09:12 +01:00
Matt Westcott
a23551b890
Fetch new translations from Transifex
2020-07-24 18:09:12 +01:00
Matt Westcott
622d439e6d
Release note for workflow
2020-07-24 17:11:08 +01:00
Matt Westcott
33e4c0ec7b
Change 'Page history' link to 'History' to reduce clutter
2020-07-24 16:59:33 +01:00
Matt Westcott
eb5b17c281
Remove final vestiges of clipboard-list being part of the icon font
2020-07-24 16:59:33 +01:00
Matt Westcott
c263d82e39
Refactor workflow action button JS so that the form submission goes through the edit view
2020-07-24 16:59:33 +01:00
Matt Westcott
0634394c2e
Handle workflow actions within the page edit view
2020-07-24 16:59:33 +01:00
Matt Westcott
d3f7ffa369
Add a variant of WorkflowAction that just collects, validates and returns form data so that the action can be performed separately
2020-07-24 16:59:33 +01:00
Matt Westcott
336f5a75c5
move modal form rendering into its own helper method
2020-07-24 16:59:33 +01:00
Matt Westcott
2ec9886cb1
Split WorkflowAction into GET and POST cases
2020-07-24 16:59:33 +01:00
Matt Westcott
3fda2b8761
make various local variables into instance variables for ease of splitting up logic
2020-07-24 16:59:33 +01:00
Matt Westcott
ef9c95f630
Convert workflow_action to a class-based view
2020-07-24 16:59:33 +01:00
Dan Braghis
9e46023acd
Add message when the page is locked from editing for a user
2020-07-24 16:59:33 +01:00
Matt Westcott
0017ff89c2
Always publish the latest version of a page on workflow completion
...
This ensures that any edits made by the approving user prior to approval are preserved in the final published page.
2020-07-24 16:59:33 +01:00
jacobtoppm
eedfaf8276
Update purge_revisions command so revisions attached to STATUS_NEEDS_CHANGES workflows are retained (to keep comments)
2020-07-24 16:59:33 +01:00
jacobtoppm
c79668929e
Update reference documentation, custom task guide, and release notes, and fix documentation build errors
2020-07-24 16:59:33 +01:00
Matt Westcott
8e1463f503
Apply permission check on workflow tasks menu item
2020-07-24 16:59:33 +01:00
Matt Westcott
61db62d125
Shorten and de-capitalise default workflow/task name
...
On the out-of-the-box setup, this will create a workflow named "Moderators approval" rather than "Moderators Approval Workflow"; the latter is too long to fit unshortened in the submit button, and the lower-case is a bit friendlier (it makes it an action, rather than a Complicated Concept You Need To Understand).
2020-07-24 16:59:33 +01:00
jacobtoppm
85e4426948
Cancel ongoing workflows when a page is published, depending on the value of a new setting, WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH. Add a warning modal before publication if a workflow will be cancelled
2020-07-24 16:59:33 +01:00
Matt Westcott
bf53123309
Fix sphinx warnings from workflow / audit log documentation
2020-07-24 16:59:33 +01:00
Matt Westcott
6f85bca664
Use % formatting for new workflow / audit log translation strings
...
See #5548 - Transifex recognises % formatting, and will guard against translators introducing errors by attempting to translate the embedded variable names.
2020-07-24 16:59:33 +01:00
Dan Braghis
441bcde1ad
Do not use Site.find_for_request() in the admin
2020-07-24 16:59:33 +01:00
Matt Westcott
c8a8689cee
Document icon_name and classname for register_page_action_menu_item
2020-07-24 16:59:33 +01:00
Dan Braghis
310ea2af35
Add helper class to have form without floated elements
...
and apply for task chooser
2020-07-24 16:59:33 +01:00
Dan Braghis
fb1674eb57
Change user-facing terminology from "revision" to "version"
2020-07-24 16:59:33 +01:00
Dan Braghis
f2efe9d156
Move show/hide workflow/tasks to header
2020-07-24 16:59:33 +01:00
Dan Braghis
ada0c8d502
Update workflow/workflow task add/edit header to be consistent with other admin pages
2020-07-24 16:59:33 +01:00
Dan Braghis
9256a9dfbd
Move disable to action menu and switch all workflow longrunning buttons to svg
2020-07-24 16:59:33 +01:00
Dan Braghis
e0c6aab536
Tweak styles based on design feedback
2020-07-24 16:59:33 +01:00
Dan Braghis
b08dcd6125
Add unlock cta to lock message
2020-07-24 16:59:33 +01:00
Dan Braghis
97e78f4ade
Introduce the concept of "secondary" (less prominent) action in action menu
...
and make delete/unpublish/lock/unlock "secondary"
2020-07-24 16:59:33 +01:00
Dan Braghis
1babf897f7
Update the workflow status modal to include comments
...
and a compare with other revision button
2020-07-24 16:59:33 +01:00
Dan Braghis
d10cc68853
Use workflow name for "submit for moderation"
2020-07-24 16:59:33 +01:00
Dan Braghis
1f8fc4b6d8
Tidy up page edit header
2020-07-24 16:59:33 +01:00
Dan Braghis
1dc7bc2713
Make the publishing bar width fluid
2020-07-24 16:59:33 +01:00