{% extends "base.html.twig" %} {% trans_default_domain 'www' %} {% set t_root = 'coach.client' %} {% block title %}{{ new ? (t_root ~ '.edit-page.new-title')|trans : (t_root ~ '.edit-page.edit-title')|trans({'%name%': form.vars.data.fullname})|raw }}{% endblock %} {% block page_title %} {{ new ? (t_root ~ '.edit-page.new-title')|trans : (t_root ~ '.edit-page.edit-title')|trans({'%name%': form.vars.data.fullname})|raw }} {% if not new %} {{ 'coach.client.actions.coach'|trans }} {% endif %} {% endblock %} {% block body %}
{# {{ dump(form) }} #} {{ form_start(form) }}
{{ form_errors(form) }}
{{ form_label(form.active, t_root ~ '.fields.active', { 'label_attr': {'class': 'form-check-label'} }) }} {{ form_widget(form.active, { 'attr': {'class': 'form-check-input'} }) }}
{{ form_label(form.first_name, t_root ~ '.fields.@first-name.label', { 'label_attr': {'class': 'form-label'} }) }}
{{ form_errors(form.first_name) }}
{{ form_widget(form.first_name, { 'attr': {'class': 'form-control', 'placeholder': t_root ~ '.fields.@first-name.placeholder'} }) }}
{{ form_label(form.last_name, t_root ~ '.fields.@last-name.label', { 'label_attr': {'class': 'form-label'} }) }}
{{ form_errors(form.last_name) }}
{{ form_widget(form.last_name, { 'attr': {'class': 'form-control', 'placeholder': t_root ~ '.fields.@last-name.placeholder'} }) }}
{{ form_label(form.email, t_root ~ '.fields.@email.label', { 'label_attr': {'class': 'form-label'} }) }}
{{ form_errors(form.email) }}
{{ form_widget(form.email, { 'attr': {'class': 'form-control', 'placeholder': t_root ~ '.fields.@email.placeholder'} }) }}
{{ form_label(form.access_type, t_root ~ '.fields.@access-type.label', { 'label_attr': {'class': 'form-label'} }) }}
{{ form_errors(form.access_type) }}
{{ form_widget(form.access_type, { 'attr': {'class': 'form-select'} }) }} {{ form_help(form.access_type) }}
{% if new == false %} {% endif %}
{{ form_end(form) }}
{% endblock %}