services

Information

Folder
src/components/apps/cloud/profile/profile-edit/services

Files

Schema
// src/components/apps/cloud/profile/profile-edit/services/schema.yaml

$schema: http://json-schema.org/draft-07/schema
type: object
required:
  - services
additionalProperties: false
properties:
  services:
    $ref: https://finstral.com/apps/cloud/profile#ServicesSchema
Mocks
// src/components/apps/cloud/profile/profile-edit/services/mocks.yaml

services:
  - service: Contacts
    status: active
  - service: Composer
    status: active
  - service: Webmonitor
    status: inactive
Template
// src/components/apps/cloud/profile/profile-edit/services/services.twig

<h2 class="u-typo-HeadlineS ProfileEditServices-title">{{ "profile_edit.services.title"|tc }}</h2>

<ul class="ProfileEditServices">
	{% for item in services %}
		<li class="ProfileEditServices-item">
			<h3 class="u-typo-HeadlineS">{{ item.service }}</h3>
			<span class="ProfileEditServices-status u-typo-TextS">
				{% include "@elements/icon/icon.twig" with {
					classes: ['ProfileEditServices-icon--' ~ item.status],
					name: item.status == "active" ? "check_circle_filled" : "delete_filled",
					size: "small"
				} only %}
				{{ ("profile_edit_services.status." ~ item.status)|tc }}
			</span>
		</li>
	{% endfor %}
</ul>

Variants

default
Open

profile_edit.services.title

  • Contacts

    profile_edit_services.status.active
  • Composer

    profile_edit_services.status.active
  • Webmonitor

    profile_edit_services.status.inactive