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 Default templates of the public site.

Templates view

forms/form-submissions/index.html FormSubmissions\Index

Retrieve a list of records and assign them to the template.

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

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

Override it: create templates/forms/form-submissions/index.html in your site repository.

forms/form-submissions/show.html FormSubmissions\Show

Show a single record

The template receives
VariableTypeDescription
$formSubmission FormSubmission Single FormSubmission record

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

Override it: create templates/forms/form-submissions/show.html in your site repository.

forms/forms/index.html Forms\Index

Retrieve a list of records and assign them to the template.

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

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

Override it: create templates/forms/forms/index.html in your site repository.

forms/forms/show.html Forms\Show

Show a single record

The template receives
VariableTypeDescription
$form Form Single Form record

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

Override it: create templates/forms/forms/show.html in your site repository.