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.
Templates view
forms/form-submissions/index.html
FormSubmissions\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$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
| Variable | Type | Description |
|---|---|---|
$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.
| Variable | Type | Description |
|---|---|---|
$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
| Variable | Type | Description |
|---|---|---|
$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.