{% extends 'pages/settings/settings.twig' %} {% import 'macros/form.twig' as f %} {% import 'macros/base.twig' as m %} {% block title %}{{ __('settings.certificates') }}{% endblock %} {% block row_content %}
{% if config('ifsg_enabled') and ifsg %}
{{ csrf() }}

{{ __('settings.certificates.title.ifsg') }}

{{ m.info(__('settings.certificates.info')) }} {% if certificates.ifsg_confirmed %}

{{ __('settings.certificates.ifsg_confirmed.hint') }}

{% endif %} {% if config('ifsg_light_enabled') %} {{ f.checkbox('ifsg_certificate_light', __('settings.certificates.ifsg_light'), { 'checked': certificates.ifsg_certificate_light, 'disabled': certificates.ifsg_confirmed, }) }} {% endif %} {{ f.checkbox('ifsg_certificate', __('settings.certificates.ifsg'), { 'checked': certificates.ifsg_certificate, 'disabled': certificates.ifsg_confirmed, }) }} {% if not certificates.ifsg_confirmed %} {{ f.submit(__('form.save'), {'icon_left': 'save'}) }} {% endif %}
{% endif %} {% if config('driving_license_enabled') and driving_license %}
{{ csrf() }}

{{ __('settings.certificates.driving_license') }}

{{ m.info(__('settings.certificates.info')) }} {% if certificates.drive_confirmed %}

{{ __('settings.certificates.drive_confirmed.hint') }}

{% endif %} {{ f.checkbox('drive_car', __('settings.certificates.drive_car'), { 'checked': certificates.drive_car, 'disabled': certificates.drive_confirmed, }) }} {{ f.checkbox('drive_3_5t', __('settings.certificates.drive_3_5t'), { 'checked': certificates.drive_3_5t, 'disabled': certificates.drive_confirmed, }) }} {{ f.checkbox('drive_7_5t', __('settings.certificates.drive_7_5t'), { 'checked': certificates.drive_7_5t, 'disabled': certificates.drive_confirmed, }) }} {{ f.checkbox('drive_12t', __('settings.certificates.drive_12t'), { 'checked': certificates.drive_12t, 'disabled': certificates.drive_confirmed, }) }} {{ f.checkbox('drive_forklift', __('settings.certificates.drive_forklift'), { 'checked': certificates.drive_forklift, 'disabled': certificates.drive_confirmed, }) }} {{ f.checkbox('has_car', __('settings.certificates.has_car'), { 'checked': certificates.has_car, }) }} {{ f.submit(__('form.save'), {'icon_left': 'save'} ) }}
{% endif %}
{% endblock %}