2023-08-08 08:34:09 +02:00
|
|
|
{% 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 %}
|
2023-11-11 21:26:11 +01:00
|
|
|
<div class="row">
|
2024-03-14 18:33:57 +01:00
|
|
|
{% if config('ifsg_enabled') and ifsg %}
|
2024-03-05 17:42:38 +01:00
|
|
|
<form
|
|
|
|
action="{{ url('/settings/certificates/ifsg') }}"
|
|
|
|
enctype="multipart/form-data" method="post"
|
|
|
|
>
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ csrf() }}
|
|
|
|
<div class="col-md-12 pb-3">
|
|
|
|
<h3>{{ __('settings.certificates.title.ifsg') }}</h3>
|
|
|
|
{{ m.info(__('settings.certificates.info')) }}
|
2024-03-05 17:42:38 +01:00
|
|
|
{% if certificates.ifsg_confirmed %}
|
|
|
|
<p class="text-success">{{ __('settings.certificates.ifsg_confirmed.hint') }}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{% if config('ifsg_light_enabled') %}
|
|
|
|
{{ f.checkbox('ifsg_certificate_light', __('settings.certificates.ifsg_light'), {
|
2024-03-05 17:42:38 +01:00
|
|
|
'checked': certificates.ifsg_certificate_light,
|
|
|
|
'disabled': certificates.ifsg_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
|
|
|
{% endif %}
|
2024-03-05 17:42:38 +01:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('ifsg_certificate', __('settings.certificates.ifsg'), {
|
2024-03-05 17:42:38 +01:00
|
|
|
'checked': certificates.ifsg_certificate,
|
|
|
|
'disabled': certificates.ifsg_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
2024-03-05 17:42:38 +01:00
|
|
|
|
|
|
|
{% if not certificates.ifsg_confirmed %}
|
|
|
|
{{ f.submit(__('form.save'), {'icon_left': 'save'}) }}
|
|
|
|
{% endif %}
|
2023-11-11 21:26:11 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
2024-03-14 18:33:57 +01:00
|
|
|
{% if config('driving_license_enabled') and driving_license %}
|
|
|
|
<form
|
|
|
|
action="{{ url('/settings/certificates/driving') }}"
|
|
|
|
enctype="multipart/form-data" method="post"
|
|
|
|
>
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ csrf() }}
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3>{{ __('settings.certificates.driving_license') }}</h3>
|
|
|
|
{{ m.info(__('settings.certificates.info')) }}
|
2024-03-14 18:33:57 +01:00
|
|
|
{% if certificates.drive_confirmed %}
|
|
|
|
<p class="text-success">{{ __('settings.certificates.drive_confirmed.hint') }}</p>
|
|
|
|
{% endif %}
|
2023-08-08 08:34:09 +02:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('drive_car', __('settings.certificates.drive_car'), {
|
2024-03-14 18:33:57 +01:00
|
|
|
'checked': certificates.drive_car,
|
|
|
|
'disabled': certificates.drive_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
2024-03-14 18:33:57 +01:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('drive_3_5t', __('settings.certificates.drive_3_5t'), {
|
2024-03-14 18:33:57 +01:00
|
|
|
'checked': certificates.drive_3_5t,
|
|
|
|
'disabled': certificates.drive_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
2024-03-14 18:33:57 +01:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('drive_7_5t', __('settings.certificates.drive_7_5t'), {
|
2024-03-14 18:33:57 +01:00
|
|
|
'checked': certificates.drive_7_5t,
|
|
|
|
'disabled': certificates.drive_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
2024-03-14 18:33:57 +01:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('drive_12t', __('settings.certificates.drive_12t'), {
|
2024-03-14 18:33:57 +01:00
|
|
|
'checked': certificates.drive_12t,
|
|
|
|
'disabled': certificates.drive_confirmed,
|
2023-08-25 20:33:14 +02:00
|
|
|
}) }}
|
2024-03-14 18:33:57 +01:00
|
|
|
|
2023-11-11 21:26:11 +01:00
|
|
|
{{ f.checkbox('drive_forklift', __('settings.certificates.drive_forklift'), {
|
2024-03-14 18:33:57 +01:00
|
|
|
'checked': certificates.drive_forklift,
|
|
|
|
'disabled': certificates.drive_confirmed,
|
2023-11-11 21:26:11 +01:00
|
|
|
}) }}
|
|
|
|
|
|
|
|
{{ f.checkbox('has_car', __('settings.certificates.has_car'), {
|
|
|
|
'checked': certificates.has_car,
|
|
|
|
}) }}
|
|
|
|
|
2023-12-21 13:08:29 +01:00
|
|
|
{{ f.submit(__('form.save'), {'icon_left': 'save'} ) }}
|
2023-11-11 21:26:11 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-08-10 11:33:06 +02:00
|
|
|
{% endblock %}
|