Default Templates
This page lists all default templates, that are officially part of the API of Mayd and can be used for your backend views.
Generic Form
A page that simply shows a single form.

return $this->render("@MaydCore/form/generic-form.html.twig", $variables);
parameters
name | type | default | description |
---|---|---|---|
form | FormView | The form itself. | |
pageTitle | string | Will be translated in the form domain. | |
pageTitleParameters | array | [] | Optional translation parameters for the pageTitle . |
abortUrl | string | undefined | Optional URL for an "abort" button. |
abortLabel | string | "..." | Will be translated in the form domain. |
proceedLabel | string | "..." | Will be translated in the form domain. |
helpIntroHtml | string | "" | A intro help text for the form. Will be pasted raw, so must be HTML escaped. |
breadcrumb | array | [] | Breadcrumb entries. key = label, value = url (nullable). Default [pageTitle => null] . |
Empty Message
An empty message for any view. Regularly used when dealing with empty ViewFilters
.

return $this->render("@MaydCore/message/empty.html.twig", $variables);
parameters
name | type | default | description |
---|---|---|---|
message | string | Will be translated in the backend domain. | |
pageTitle | string | Will be translated in the backend domain. | |
pageTitleParameters | array | [] | Optional translation parameters for the pageTitle . |
actions | array | [] | Additional action links. key = label, value = url (nullable) |
breadcrumb | array | [] | Breadcrumb entries. key = label, value = url (nullable). Default [pageTitle => null] . |
Page Properties
Backend page for a custom page properties page.

return $this->render("@MaydPages/page/properties/properties-form.html.twig", $variables);
parameters
name | type | default | description |
---|---|---|---|
form | FormView | The form itself. | |
pageTitle | string | Will be translated in the form domain. | |
pageTitleParameters | array | [] | Optional translation parameters for the pageTitle . |
proceedLabel | string | "..." | Will be translated in the form domain. |
Simple CRUD Manager
Renders a simple page with just a headline and a CRUD.

return $this->render("@MaydCore/crud/simple-crud.html.twig", $variables);
parameters
name | type | default | description |
---|---|---|---|
headline | string | Will be translated in the backend domain. | |
options | array | [] | The options for the CRUD. See CRUD for details. |
options.headlineTranslationParams | string | Optional translation parameters for the headline . | |
breadcrumb | array | [] | Breadcrumb entries. key = label, value = url (nullable). Default [pageTitle => null] . |
context | array | [] | The CRUD context. |
Table of Contents