user-management

Information

Folder
src/components/apps/cloud/user-management

Files

Schema
// src/components/apps/cloud/user-management/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/cloud/user-management
$defs:
  user_data:
    $anchor: UserDataSchema
    type: array
    items:
      type: object
      required:
        - avatar_url
        - id
        - name
        - unit
        - email
        - login
        - services
        - user_status
      additionalProperties: false
      properties:
        avatar_url:
          type: string
          format: uri-reference
        id:
          type: number
        name:
          type: string
        unit:
          type: string
        email:
          type: string
        login:
          type: string
        role:
          type: string
        services:
          type: array
          items:
            additionalProperties: false
            type: object
            required:
              - id
              - label
              - permissions
            properties:
              id:
                type: number
              label:
                type: string
              permissions:
                type: array
                items:
                  additionalProperties: false
                  type: object
                  required:
                    - active
                    - label
                    - value
                  properties:
                    active:
                      type: boolean
                    label:
                      type: string
                    value:
                      type: number
        user_status:
          additionalProperties: false
          type: object
          required:
            - status
          properties:
            status:
              type: string
              enum:
                - active
                - pending
            ticket:
              additionalProperties: false
              type: object
              required:
                - id
                - url
              properties:
                id:
                  type: number
                url:
                  type: string
                  format: uri-reference
  deactivation_reasons:
    $anchor: DeactivationReasonsSchema
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - label
      properties:
        label:
          type: string
        selected:
          type: boolean
        value:
          type: number
  services:
    $anchor: ServicesSchema
    type: array
    items:
      service:
        type: object
        additionalProperties: false
        required:
          - id
          - label
          - permissions
        properties:
          id:
            type: number
          label:
            type: string
          permissions:
            type: array
            items:
              additionalProperties: false
              type: object
              required:
                - label
                - value
              properties:
                label:
                  type: string
                value:
                  type: string
type: object
required:
  - breadcrumb
  - deactivation_reasons
  - is_employee
  - services
  - self
  - support_email
additionalProperties: false
properties:
  breadcrumb:
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - text
      properties:
        text:
          type: string
        url:
          type: string
          format: uri-reference
  deactivation_reasons:
    $ref: '#DeactivationReasonsSchema'
  form_create_user_api:
    format: uri-reference
    type: string
  form_deactivate_user_api:
    format: uri-reference
    type: string
  form_update_permissions_api:
    format: uri-reference
    type: string
  is_employee:
    type: boolean
  services:
    $ref: '#ServicesSchema'
  support_email:
    type: string
  self:
    $ref: '#UserDataSchema'
  team:
    $ref: '#UserDataSchema'
Mocks
// src/components/apps/cloud/user-management/mocks.yaml

$hidden: true
form_deactivate_user_api: user-management/user/deactivate
form_create_user_api: user-management/user/create
form_update_permissions_api: user-management/permissions/update
deactivation_reasons:
  - label: Reason
    selected: true
  - label: Employee changes roles
    value: 1
  - label: Employee leaves the company
    value: 2
is_employee: false
services:
  - id: 1
    label: Contacts
    permissions:
      - label: Admin
        value: 1
      - label: Read and Write
        value: 2
      - label: Read
        value: 3
      - label: Delete
        value: 4
  - id: 2
    label: Composer
    permissions:
      - label: Admin
        value: 5
      - label: Read and Write
        value: 6
      - label: Read
        value: 7
      - label: Delete
        value: 8
  - id: 3
    label: Webmonitor
    permissions:
      - label: Admin
        value: 9
      - label: Read and Write
        value: 10
      - label: Read
        value: 11
      - label: Delete
        value: 12
      - label: Office staff
        value: 13
      - label: View Order
        value: 14
      - label: Customer mail
        value: 15
support_email: support@finstral.com
self:
  - avatar_url: /build/assets/img/dummy/avatar/1.webp
    id: 1
    name: Tiziana Lagomarsino
    unit: Admin SICURCASA
    email: tlagomarsino@finstral.com
    login: tlagomarsino@finstral.com
    role: Techniker, Composer
    services:
      - id: 1
        label: Contacts
        permissions:
          - active: true
            label: Admin
            value: 1
          - active: true
            label: Read and Write
            value: 2
          - active: true
            label: Read
            value: 3
          - active: true
            label: Delete
            value: 4
      - id: 2
        label: Composer
        permissions:
          - active: true
            label: Admin
            value: 5
          - active: true
            label: Read and Write
            value: 6
          - active: true
            label: Read
            value: 7
          - active: true
            label: Delete
            value: 8
      - id: 3
        label: Webmonitor
        permissions:
          - active: true
            label: Admin
            value: 9
          - active: true
            label: Read and Write
            value: 10
          - active: true
            label: Read
            value: 11
          - active: true
            label: Delete
            value: 12
    user_status:
      status: active
team:
  - avatar_url: /build/assets/img/dummy/avatar/2.webp
    id: 2
    name: Jessica Lo Presti
    unit: Admin SICURCASA
    email: jessica@sicurcasa.it
    login: 2SRA-03@finstral.cloud
    role: Techniker, Composer
    services:
      - id: 1
        label: Contacts
        permissions:
          - active: false
            label: Admin
            value: 1
          - active: false
            label: Read and Write
            value: 2
          - active: true
            label: Read
            value: 3
          - active: false
            label: Delete
            value: 4
      - id: 2
        label: Composer
        permissions:
          - active: true
            label: Admin
            value: 5
          - active: true
            label: Read and Write
            value: 6
          - active: true
            label: Read
            value: 7
          - active: true
            label: Delete
            value: 8
      - id: 3
        label: Webmonitor
        permissions:
          - active: true
            label: Admin
            value: 9
          - active: true
            label: Read and Write
            value: 10
          - active: true
            label: Read
            value: 11
          - active: true
            label: Delete
            value: 12
    user_status:
      status: active
  - avatar_url: /build/assets/img/dummy/avatar/3.webp
    id: 3
    name: Claudia Ricci
    unit: Admin SICURCASA
    email: casarza@sicurcasa.it
    login: 2SRA-04@finstral.cloud
    role: Techniker, Composer
    services:
      - id: 1
        label: Contacts
        permissions:
          - active: false
            label: Admin
            value: 1
          - active: true
            label: Read and Write
            value: 2
          - active: true
            label: Read
            value: 3
          - active: false
            label: Delete
            value: 4
      - id: 2
        label: Composer
        permissions:
          - active: false
            label: Admin
            value: 5
          - active: true
            label: Read and Write
            value: 6
          - active: true
            label: Read
            value: 7
          - active: false
            label: Delete
            value: 8
      - id: 3
        label: Webmonitor
        permissions:
          - active: false
            label: Admin
            value: 9
          - active: true
            label: Read and Write
            value: 10
          - active: true
            label: Read
            value: 11
          - active: false
            label: Delete
            value: 12
    user_status:
      status: pending
      ticket:
        id: 123456
        url: /ticket-overview/123456
  - avatar_url: /build/assets/img/dummy/avatar/4.webp
    id: 4
    name: Patrizia Ciampolini
    unit: Admin SICURCASA
    email: chiavari@sicurcasa.it
    login: 2SRA-06@finstral.cloud
    role: Techniker, Composer
    services:
      - id: 1
        label: Contacts
        permissions:
          - active: false
            label: Admin
            value: 1
          - active: true
            label: Read and Write
            value: 2
          - active: true
            label: Read
            value: 3
          - active: false
            label: Delete
            value: 4
      - id: 2
        label: Composer
        permissions:
          - active: false
            label: Admin
            value: 5
          - active: true
            label: Read and Write
            value: 6
          - active: true
            label: Read
            value: 7
          - active: false
            label: Delete
            value: 8
      - id: 3
        label: Webmonitor
        permissions:
          - active: false
            label: Admin
            value: 9
          - active: true
            label: Read and Write
            value: 10
          - active: true
            label: Read
            value: 11
          - active: false
            label: Delete
            value: 12
    user_status:
      status: pending
      ticket:
        id: 789012
        url: /ticket-overview/789012
  - avatar_url: /build/assets/img/dummy/avatar/5.webp
    id: 5
    name: Mouen Silianane
    unit: Admin SICURCASA
    email: mauro@sicurcasa.it
    login: 2SRA1MF
    role: Verkauf
    services:
      - id: 1
        label: Contacts
        permissions:
          - active: true
            label: Admin
            value: 1
          - active: true
            label: Read and Write
            value: 2
          - active: true
            label: Read
            value: 3
          - active: true
            label: Delete
            value: 4
      - id: 2
        label: Composer
        permissions:
          - active: true
            label: Admin
            value: 5
          - active: true
            label: Read and Write
            value: 6
          - active: true
            label: Read
            value: 7
          - active: true
            label: Delete
            value: 8
      - id: 3
        label: Webmonitor
        permissions:
          - active: true
            label: Admin
            value: 9
          - active: true
            label: Read and Write
            value: 10
          - active: true
            label: Read
            value: 11
          - active: true
            label: Delete
            value: 12
    user_status:
      status: pending
      ticket:
        id: 677589
        url: /ticket-overview/677589
$variants:
  - $name: Full page
    breadcrumb:
      - text: Dashboard
        url: url
      - text: User Management
  - $name: 'Employee: Full page'
    breadcrumb:
      - text: Dashboard
        url: url
      - text: User Management
    is_employee: true
  - $name: 'Read-Only: Full page'
    breadcrumb:
      - text: Dashboard
        url: url
      - text: User Management
    form_deactivate_user_api: ''
    form_create_user_api: ''
    form_update_permissions_api: ''
Template
// src/components/apps/cloud/user-management/user-management.twig

{% set template_components_breadcrumb %}
	{% include "@template-components/breadcrumb/breadcrumb.twig" with {
		breadcrumb: breadcrumb
	} only %}
{% endset %}

{% set apps_cloud_user_management_app_user_management %}
	{% include "@apps/cloud/user-management/app-user-management/app-user-management.twig" with {
		deactivation_reasons: deactivation_reasons,
		is_employee: is_employee,
		form_create_user_api: form_create_user_api,
		form_deactivate_user_api: form_deactivate_user_api,
		form_update_permissions_api: form_update_permissions_api,
		services: services,
		support_email: support_email,
		self: self,
		team: team,
	} only %}
{% endset %}


{% include "@templates/cloud/cloud.twig" with {
    breadcrumb: template_components_breadcrumb,
		content: apps_cloud_user_management_app_user_management
} only %}

Variants

Full page
Open

user_management.title

user_management.self_heading

  • Tiziana Lagomarsino
    Admin SICURCASA
    user_management.label_email
    tlagomarsino@finstral.com
    user_management.label_login
    tlagomarsino@finstral.com
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active
user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Tiziana Lagomarsino
tlagomarsino@finstral.com
Techniker, Composer

user_management.team_heading

  • Jessica Lo Presti
    Admin SICURCASA
    user_management.label_email
    jessica@sicurcasa.it
    user_management.label_login
    2SRA-03@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active
  • Claudia Ricci
    Admin SICURCASA
    user_management.label_email
    casarza@sicurcasa.it
    user_management.label_login
    2SRA-04@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Patrizia Ciampolini
    Admin SICURCASA
    user_management.label_email
    chiavari@sicurcasa.it
    user_management.label_login
    2SRA-06@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Mouen Silianane
    Admin SICURCASA
    user_management.label_email
    mauro@sicurcasa.it
    user_management.label_login
    2SRA1MF
    user_management.label_role
    Verkauf
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Jessica Lo Presti
2SRA-03@finstral.cloud
Techniker, Composer
Claudia Ricci
2SRA-04@finstral.cloud
Techniker, Composer
Patrizia Ciampolini
2SRA-06@finstral.cloud
Techniker, Composer
Mouen Silianane
2SRA1MF
Verkauf
Employee: Full page
Open

user_management.title

user_management.self_heading

  • Tiziana Lagomarsino
    Admin SICURCASA
    user_management.label_email
    tlagomarsino@finstral.com
    user_management.label_login
    tlagomarsino@finstral.com
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active
user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Tiziana Lagomarsino
tlagomarsino@finstral.com
Techniker, Composer

user_management.team_heading

  • Jessica Lo Presti
    Admin SICURCASA
    user_management.label_email
    jessica@sicurcasa.it
    user_management.label_login
    2SRA-03@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active
  • Claudia Ricci
    Admin SICURCASA
    user_management.label_email
    casarza@sicurcasa.it
    user_management.label_login
    2SRA-04@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Patrizia Ciampolini
    Admin SICURCASA
    user_management.label_email
    chiavari@sicurcasa.it
    user_management.label_login
    2SRA-06@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Mouen Silianane
    Admin SICURCASA
    user_management.label_email
    mauro@sicurcasa.it
    user_management.label_login
    2SRA1MF
    user_management.label_role
    Verkauf
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Jessica Lo Presti
2SRA-03@finstral.cloud
Techniker, Composer
Claudia Ricci
2SRA-04@finstral.cloud
Techniker, Composer
Patrizia Ciampolini
2SRA-06@finstral.cloud
Techniker, Composer
Mouen Silianane
2SRA1MF
Verkauf
Read-Only: Full page
Open

user_management.title

user_management.self_heading

  • Tiziana Lagomarsino
    Admin SICURCASA
    user_management.label_email
    tlagomarsino@finstral.com
    user_management.label_login
    tlagomarsino@finstral.com
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.message.readonly

user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Tiziana Lagomarsino
tlagomarsino@finstral.com
Techniker, Composer

user_management.team_heading

  • Jessica Lo Presti
    Admin SICURCASA
    user_management.label_email
    jessica@sicurcasa.it
    user_management.label_login
    2SRA-03@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.message.readonly

  • Claudia Ricci
    Admin SICURCASA
    user_management.label_email
    casarza@sicurcasa.it
    user_management.label_login
    2SRA-04@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Patrizia Ciampolini
    Admin SICURCASA
    user_management.label_email
    chiavari@sicurcasa.it
    user_management.label_login
    2SRA-06@finstral.cloud
    user_management.label_role
    Techniker, Composer
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

  • Mouen Silianane
    Admin SICURCASA
    user_management.label_email
    mauro@sicurcasa.it
    user_management.label_login
    2SRA1MF
    user_management.label_role
    Verkauf
    Contacts
    Composer
    Webmonitor
    user_management.label_active

    global.ticket.processing global.ticket.view.

user_management.label_name user_management.label_email user_management.label_login user_management.label_role Contacts Composer Webmonitor user_management.label_active
Jessica Lo Presti
2SRA-03@finstral.cloud
Techniker, Composer
Claudia Ricci
2SRA-04@finstral.cloud
Techniker, Composer
Patrizia Ciampolini
2SRA-06@finstral.cloud
Techniker, Composer
Mouen Silianane
2SRA1MF
Verkauf