TemplatesWorkflows module

Workflows templates

Default templates the Workflows module renders, the controller that renders each one and what it receives. A file at the same path in your site repository replaces the platform's.

View cdna-admin screens you can override in your site repository.

Admin view

workflows/backend/branch-transitions/add.html BranchTransitions\Add

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$branchTransition BranchTransition Single (empty) BranchTransition record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/workflows/backend/branch-transitions/add.html in your site repository.

workflows/backend/workflows/add.html Workflows\Add

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$workflow Workflow Single (empty) Workflow record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/workflows/backend/workflows/add.html in your site repository.

workflows/backend/workflows/edit.html Workflows\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$workflow Workflow Retrieved Workflow record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/workflows/backend/workflows/edit.html in your site repository.

workflows/backend/workflows/manage.html Workflows\Manage

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$workflows Collection<Workflow> Collection of Workflows

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/workflows/backend/workflows/manage.html in your site repository.