{% extends "layouts/app.twig" %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('user.edit.shirt') }}{% endblock %} {% block content %}

{{ block('title') }}

{% include 'layouts/parts/messages.twig' %}
{{ csrf() }}
{{ f.select('shirt_size', config('tshirt_sizes'), __('user.shirt_size'), userdata.personalData.shirt_size) }}
{% if has_permission_to('admin_arrive') %} {{ f.switch('arrived', __('user.arrived'), userdata.state.arrived) }} {% endif %} {% if userdata.state.force_active %} {{ f.switch('force_active', __('user.force_active'), true, {'disabled': true}) }} {% endif %} {{ f.switch('active', __('user.active'), userdata.state.active) }} {{ f.switch('got_shirt', __('user.got_shirt'), userdata.state.got_shirt) }}
{{ f.submit(__('form.save')) }}
{% endblock %}