TemplatesForms module

Forms templates

Default templates the Forms 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

forms/backend/form-submissions/manage.html FormSubmissions\Manage

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

The admin template receives
VariableTypeDescription
$formSubmissions Collection<FormSubmission> Collection of FormSubmissions

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

Customise this admin screen: create templates/forms/backend/form-submissions/manage.html in your site repository.

forms/backend/forms/add.html Forms\Add

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

The admin template receives
VariableTypeDescription
$form Form Single (empty) Form record

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

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

forms/backend/forms/custom-fields.html Forms\CustomFields

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

The admin template receives
VariableTypeDescription
$form Form Retrieved Form record

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

Customise this admin screen: create templates/forms/backend/forms/custom-fields.html in your site repository.

forms/backend/forms/manage.html Forms\Manage

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

The admin template receives
VariableTypeDescription
$forms Collection<Form> Collection of Forms

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

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