- on create: only create and pushlish, no need for revision save
- on edit -> publish, log the draft save and publish separately
- on edit -> submit for moderation, ditto
- on deleting parent, log children deletion
- workflow:
- log task resubmission (workflow resume)
- log workflow cancellation
* Update home style
- make the panels follow the edit page style
- add unlock action to the locked pages panel
- order workflow-related items by date, desc
- update workflow-related columns
* Use a simplified timesince filter
i.e.
19 hours, 48 minutes ago -> 19 hours ago
1 week, 1 day ago -> 1 week ago
0 minutes ago -> just now
* Use TaskState.started_at in home panels
* Use plain old Django forms for tasks
* Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one"
This reverts commit 62961b74bb.
* Move Workflow edit handler creation into Workflow forms
Only advantage of having it the way it was before is that allows
overriding the edit handler in subclasses. But nobody will be doing this
with workflows.
I've added a note into the code pointing out that we might want to
rethink using edit handlers if:
- It gets easier to style formsets without using InlinePanel
- We want to allow customisation of the form (the use of edit handlers
should be considered an internal implementation detail at the moment)
* Make task name readonly but groups editable
* Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update wagtail/admin/forms/workflows.py
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Give "Create task" its own template
* Implement workflow pages formset
* Delete 'add workflow to page' view
* Moved $object-title-height to variables.scss
* Add comment to TaskState
* Add ability for Task on_action to accept kwargs, and a get_form_for_action method to request a form to enter addition kwargs for an action
* Refactor workflow_action to take more arguments rather than getting them from POST data, and add a GET version that returns a modal. Use this to add a way to add approve/reject comments on tasks
* Make tasks set finished_by
* Make workflow history timeline view the default, and fix comment display
* Add link to workflow history/comments on 'needs changes' message
* Fix tests to use new workflow action url
* Remove now-unnecessary check for TaskState copying on notifier
* Add comments to rejection emails
* Change needs changes banner to warning style, and reverse timeline order to show more recent events and crucially comments first
* Create template include for Wagtail standard form rendering, and use it in workflow action modal
Replace WorkflowState STATUS_REJECTED with STATUS_NEEDS_CHANGES, which does not end a workflow, and add cancellation and resubmit to rejector options. Make Workflows lock pages to non-reviewers. Make the linear mode of workflow the default.