2021-09-24 20:28:51 +02:00
|
|
|
{% extends "layouts/app.twig" %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
|
2023-01-27 21:01:23 +01:00
|
|
|
{% block title %}
|
|
|
|
{% if config('other_goodie') %}
|
|
|
|
{{ __('user.edit.goodie') }}
|
|
|
|
{% else %}
|
|
|
|
{{ __('user.edit.shirt') }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2021-09-24 20:28:51 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
<h1>{{ block('title') }}</h1>
|
|
|
|
|
|
|
|
{% include 'layouts/parts/messages.twig' %}
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
{{ csrf() }}
|
|
|
|
|
|
|
|
<div class="row">
|
2023-01-27 21:01:23 +01:00
|
|
|
{% if not config('other_goodie') %}
|
|
|
|
<div class="col-md-6">
|
|
|
|
{{ f.select('shirt_size', config('tshirt_sizes'), __('user.shirt_size'), userdata.personalData.shirt_size) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-10-26 16:08:27 +02:00
|
|
|
<div class="col-md-6">
|
2021-10-23 17:02:33 +02:00
|
|
|
{{ f.switch('arrived', __('user.arrived'), userdata.state.arrived, {'disabled': not has_permission_to('admin_arrive')}) }}
|
2021-09-24 20:28:51 +02:00
|
|
|
|
|
|
|
{% if userdata.state.force_active %}
|
|
|
|
{{ f.switch('force_active', __('user.force_active'), true, {'disabled': true}) }}
|
|
|
|
{% endif %}
|
|
|
|
|
2021-10-26 16:08:27 +02:00
|
|
|
{{ f.switch('active', __('user.active'), userdata.state.active) }}
|
|
|
|
|
2023-01-27 21:01:23 +01:00
|
|
|
{% if config('other_goodie') %}
|
|
|
|
{{ f.switch('got_shirt', __('user.got_goodie'), userdata.state.got_shirt) }}
|
|
|
|
{% else %}
|
|
|
|
{{ f.switch('got_shirt', __('user.got_shirt'), userdata.state.got_shirt) }}
|
|
|
|
{% endif %}
|
2021-09-24 20:28:51 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
{{ f.submit(__('form.save')) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|