form_contact_support.page_title
form_contact_support.sub_text
global.required_fields_note
src/components/apps/cloud/support-ticket
// src/components/apps/cloud/support-ticket/schema.yaml
$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/cloud/support-ticket
$defs:
attachments_config:
$anchor: AttachmentsConfigSchema
accepted_formats:
type: array
items:
type: string
multiple:
type: boolean
max_file_count:
type: number
max_filesize_message:
type: string
max_filesize:
additionalProperties: false
type: object
properties:
accumulative:
type: boolean
size:
type: number
unit:
type: string
enum:
- Bytes
- KB
- MB
topics:
$anchor: TopicsSchema
type: array
items:
type: object
additionalProperties: false
properties:
categories:
type: array
items:
type: object
additionalProperties: false
properties:
checked:
type: boolean
label:
type: string
name:
type: string
value:
type: number
checked:
type: boolean
label:
type: string
value:
type: number
type: object
required:
- breadcrumb
- form_action
- is_employee
- topics
additionalProperties: false
properties:
attachments_config:
$ref: '#AttachmentsConfigSchema'
breadcrumb:
type: array
items:
type: object
additionalProperties: false
required:
- text
properties:
text:
type: string
url:
type: string
format: uri-reference
form_action:
type: string
is_employee:
type: boolean
topics:
$ref: '#TopicsSchema'
// src/components/apps/cloud/support-ticket/mocks.yaml
$hidden: true
attachments_config:
accepted_formats:
- image/*
- application/pdf
multiple: true
max_filesize:
accumulative: true
form_action: /support-request
is_employee: false
topics:
- categories:
- checked: true
label: Password/login/connection
name: composer-categories
value: 42
- label: Entry/printing
name: composer-categories
value: 38
- label: Other
name: composer-categories
value: 37
checked: true
label: Composer
value: 162
- categories:
- label: Login/user rights
name: contacts-categories
value: 41
- label: Error
name: contacts-categories
value: 39
- label: Information/wishes
name: contacts-categories
value: 40
label: Contacts
value: 157
- categories:
- label: Login/user rights
name: webmonitor-categories
value: 41
- label: Error
name: webmonitor-categories
value: 39
label: Webmonitor
value: 22
$variants:
- $name: Full page
breadcrumb:
- text: Dashboard
url: url
- text: Contact support
- $name: 'Employee: Full page'
breadcrumb:
- text: Dashboard
url: url
- text: Contact support
is_employee: true
// src/components/apps/cloud/support-ticket/support-ticket.twig
{% set template_components_breadcrumb %}
{% include "@template-components/breadcrumb/breadcrumb.twig" with {
breadcrumb: breadcrumb
} only %}
{% endset %}
{% set patterns_form_contact_support %}
{% include "@apps/cloud/support-ticket/form-contact-support/form-contact-support.twig" with {
attachments_config: attachments_config,
form_action: form_action,
is_employee: is_employee,
topics: topics,
} only %}
{% endset %}
{% include "@templates/cloud/cloud.twig" with {
breadcrumb: template_components_breadcrumb,
content: patterns_form_contact_support
} only %}
Full page mock data
attachments_config:
accepted_formats:
- image/*
- application/pdf
multiple: true
max_filesize:
accumulative: true
form_action: /support-request
is_employee: false
topics:
- categories:
- checked: true
label: Password/login/connection
name: composer-categories
value: 42
- label: Entry/printing
name: composer-categories
value: 38
- label: Other
name: composer-categories
value: 37
checked: true
label: Composer
value: 162
- categories:
- label: Login/user rights
name: contacts-categories
value: 41
- label: Error
name: contacts-categories
value: 39
- label: Information/wishes
name: contacts-categories
value: 40
label: Contacts
value: 157
- categories:
- label: Login/user rights
name: webmonitor-categories
value: 41
- label: Error
name: webmonitor-categories
value: 39
label: Webmonitor
value: 22
breadcrumb:
- text: Dashboard
url: url
- text: Contact support
form_contact_support.sub_text
global.required_fields_note
Employee: Full page mock data
attachments_config:
accepted_formats:
- image/*
- application/pdf
multiple: true
max_filesize:
accumulative: true
form_action: /support-request
is_employee: true
topics:
- categories:
- checked: true
label: Password/login/connection
name: composer-categories
value: 42
- label: Entry/printing
name: composer-categories
value: 38
- label: Other
name: composer-categories
value: 37
checked: true
label: Composer
value: 162
- categories:
- label: Login/user rights
name: contacts-categories
value: 41
- label: Error
name: contacts-categories
value: 39
- label: Information/wishes
name: contacts-categories
value: 40
label: Contacts
value: 157
- categories:
- label: Login/user rights
name: webmonitor-categories
value: 41
- label: Error
name: webmonitor-categories
value: 39
label: Webmonitor
value: 22
breadcrumb:
- text: Dashboard
url: url
- text: Contact support
form_contact_support.sub_text
global.required_fields_note