2022-10-03 18:58:04 +02:00
|
|
|
{% extends 'pages/settings/settings.twig' %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
|
2022-10-24 14:59:34 +02:00
|
|
|
{% block title %}{{ __('settings.profile') }}{% endblock %}
|
2022-10-03 18:58:04 +02:00
|
|
|
|
|
|
|
{% block row_content %}
|
|
|
|
<form action="" enctype="multipart/form-data" method="post">
|
|
|
|
{{ csrf() }}
|
|
|
|
|
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-12">
|
2022-10-24 14:59:34 +02:00
|
|
|
<strong class="help-block">
|
|
|
|
{{ f.entry_required() }} = {{ __('settings.profile.entry_required') }}
|
|
|
|
</strong>
|
|
|
|
</div>
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-lg-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'nick',
|
|
|
|
__('settings.profile.nick'),
|
|
|
|
'text',
|
|
|
|
{'value': user.name, 'disabled': true}
|
|
|
|
) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
|
|
|
{% if config('enable_pronoun') %}
|
|
|
|
<div class="col-lg-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'pronoun',
|
|
|
|
__('settings.profile.pronoun'),
|
|
|
|
'text',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'value': user.personalData.pronoun ,'max_length': 15}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
|
|
|
{{ m.info(__('settings.profile.pronoun.info')) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if config('enable_user_name') %}
|
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-sm-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'first_name',
|
|
|
|
__('settings.profile.firstname'),
|
|
|
|
'text',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'value': user.personalData.first_name, 'max_length': 64}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'last_name',
|
|
|
|
__('settings.profile.lastname'),
|
|
|
|
'text',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'value': user.personalData.last_name, 'max_length': 64}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-10-03 18:58:04 +02:00
|
|
|
|
2023-04-01 18:15:29 +02:00
|
|
|
{% if config('enable_planned_arrival') %}
|
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-sm-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'planned_arrival_date',
|
|
|
|
__('settings.profile.planned_arrival_date'),
|
|
|
|
'date',
|
|
|
|
{
|
2022-10-13 20:23:22 +02:00
|
|
|
'value': user.personalData.planned_arrival_date.format('Y-m-d'),
|
2022-10-03 18:58:04 +02:00
|
|
|
'required': true,
|
2022-10-13 20:23:22 +02:00
|
|
|
'entry_required_icon': true,
|
|
|
|
'min': config('buildup_start') ? config('buildup_start').format('Y-m-d') : '',
|
|
|
|
'max': config('teardown_end') ? config('teardown_end').format('Y-m-d') : '',
|
2022-10-03 18:58:04 +02:00
|
|
|
}
|
|
|
|
) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2022-10-15 23:08:45 +02:00
|
|
|
{% set planned_departure_date = user.personalData.planned_departure_date %}
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'planned_departure_date',
|
|
|
|
__('settings.profile.planned_departure_date'),
|
2022-10-13 20:23:22 +02:00
|
|
|
'date',
|
|
|
|
{
|
2022-10-15 23:08:45 +02:00
|
|
|
'value': planned_departure_date ? planned_departure_date.format('Y-m-d') : '',
|
2022-10-13 20:23:22 +02:00
|
|
|
'min': config('buildup_start') ? config('buildup_start').format('Y-m-d') : '',
|
|
|
|
'max': config('teardown_end') ? config('teardown_end').format('Y-m-d') : '',
|
|
|
|
}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
|
|
|
</div>
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-10-03 18:58:04 +02:00
|
|
|
|
2023-04-01 18:15:29 +02:00
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
{% if config('enable_dect') %}
|
|
|
|
<div class="col-md-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
2022-10-13 20:23:22 +02:00
|
|
|
'dect',
|
|
|
|
__('settings.profile.dect'),
|
|
|
|
'text',
|
|
|
|
{'value': user.contact.dect, 'max_length': 40}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="col-md-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'mobile',
|
|
|
|
__('settings.profile.mobile'),
|
|
|
|
'text',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'value': user.contact.mobile, 'max_length': 40}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
2022-10-20 21:44:58 +02:00
|
|
|
{% if config('enable_mobile_show') %}
|
|
|
|
{{ f.checkbox(
|
|
|
|
'mobile_show',
|
|
|
|
__('settings.profile.mobile_show'),
|
|
|
|
user.settings.mobile_show
|
|
|
|
) }}
|
|
|
|
{% endif %}
|
2023-01-27 11:19:35 +01:00
|
|
|
</div>
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row g-4">
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-md-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.input(
|
|
|
|
'email',
|
|
|
|
__('settings.profile.email'),
|
|
|
|
'email',
|
2022-10-13 20:23:22 +02:00
|
|
|
{'value': user.email, 'max_length': 254, 'required': true, 'entry_required_icon': true}
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
|
|
|
</div>
|
|
|
|
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-md-6">
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.checkbox(
|
|
|
|
'email_shiftinfo',
|
2022-10-13 20:23:22 +02:00
|
|
|
__('settings.profile.email_shiftinfo', [config('app_name')]),
|
2022-10-03 18:58:04 +02:00
|
|
|
user.settings.email_shiftinfo
|
|
|
|
) }}
|
|
|
|
{{ f.checkbox(
|
|
|
|
'email_news',
|
|
|
|
__('settings.profile.email_news'),
|
|
|
|
user.settings.email_news
|
|
|
|
) }}
|
2023-02-26 16:18:16 +01:00
|
|
|
{{ f.checkbox(
|
|
|
|
'email_messages',
|
|
|
|
__('settings.profile.email_messages'),
|
|
|
|
user.settings.email_messages
|
|
|
|
) }}
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.checkbox(
|
|
|
|
'email_human',
|
|
|
|
__('settings.profile.email_by_human_allowed'),
|
|
|
|
user.settings.email_human
|
|
|
|
) }}
|
2023-03-05 03:00:38 +01:00
|
|
|
{% if goodie_enabled %}
|
2022-10-13 20:23:22 +02:00
|
|
|
{% set privacy_email = config('privacy_email') %}
|
|
|
|
{% set email_goody_label = __('settings.profile.email_goody') ~
|
|
|
|
(privacy_email ? ' ' ~ __('settings.profile.privacy', [privacy_email]) : '')
|
|
|
|
%}
|
2022-10-03 18:58:04 +02:00
|
|
|
{{ f.checkbox(
|
|
|
|
'email_goody',
|
2022-10-13 20:23:22 +02:00
|
|
|
email_goody_label,
|
|
|
|
user.settings.email_goody,
|
|
|
|
user.settings.email_goody,
|
|
|
|
false,
|
|
|
|
true
|
2022-10-03 18:58:04 +02:00
|
|
|
) }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-04-01 18:15:29 +02:00
|
|
|
</div>
|
2022-10-03 18:58:04 +02:00
|
|
|
|
2023-04-01 18:15:29 +02:00
|
|
|
<div class="row g-4">
|
2023-03-05 03:00:38 +01:00
|
|
|
{% if goodie_tshirt %}
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-12">
|
2022-10-24 14:59:34 +02:00
|
|
|
{{ f.select(
|
|
|
|
'shirt_size',
|
|
|
|
config('tshirt_sizes'),
|
|
|
|
__('settings.profile.shirt_size'),
|
|
|
|
user.personalData.shirt_size,
|
|
|
|
{'required': true, 'entry_required_icon': true}
|
|
|
|
) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-12">
|
2022-10-24 14:59:34 +02:00
|
|
|
{{ m.info(__('settings.profile.angeltypes.info', [url('/angeltypes')]), true) }}
|
2022-10-03 18:58:04 +02:00
|
|
|
</div>
|
|
|
|
|
2023-01-27 11:19:35 +01:00
|
|
|
<div class="col-12">
|
2022-12-10 02:27:24 +01:00
|
|
|
{{ f.submit(__('form.save')) }}
|
2022-10-03 18:58:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|