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

{{ m.button(m.icon('chevron-left'), url('/admin-active'), {'size': 'sm', 'title': __('general.back')}) }} {{ block('title') }}: {{ m.user(userdata) }}

{% include 'layouts/parts/messages.twig' %}
{{ csrf() }}
{% if is_tshirt %}
{{ f.select('shirt_size', __('user.shirt_size'), config('tshirt_sizes'), { 'selected': userdata.personalData.shirt_size, 'required': true, 'required_icon': true, 'default_option': __('form.select_placeholder'), }) }}
{% endif %}
{{ f.switch('arrived', __('user.arrived'), { 'checked': userdata.state.arrived, 'disabled': not can('admin_arrive'), }) }} {% if userdata.state.force_active and config('enable_force_active') %} {{ f.switch('force_active', __('user.force_active'), { 'checked': true, 'disabled': true, }) }} {% endif %} {{ f.switch('active', __('user.active'), { 'checked': userdata.state.active, }) }} {{ f.switch('got_goodie', is_tshirt ? __('user.got_shirt') : __('user.got_goodie'), { 'checked': userdata.state.got_goodie, }) }}
{{ f.submit(__('form.save'), {'icon_left': 'save'}) }}
{% endblock %}