{% extends 'default/form.html.twig' %} {% block content %} {{ form_start(form, {'attr': {'class': 'form-horizontal'}}) }}
{{ form_widget(form.fname, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Fname'|trans}}"}}) }} {{ form_label(form.fname, 'Form.User.Fname' | trans) }}
{{ form_widget(form.lname, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Lname'|trans}}"}}) }} {{ form_label(form.lname, 'Form.User.Lname' | trans) }}
{{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Email'|trans}}"}}) }} {{ form_label(form.email, 'Form.User.Email' | trans) }}
{{ form_widget(form.usergroup, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.User.Group'|trans}}"}}) }} {{ form_label(form.usergroup, 'Form.User.Group' | trans) }}
{% if mode == 'add' %}{# En mode ajout on exige le mode de #}
{{ form_widget(form.plainPassword.first, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Password'|trans}}"}}) }} {{ form_label(form.plainPassword.first, 'Form.Password' | trans) }}
{{ form_widget(form.plainPassword.second, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.RepeatPassword'|trans}}"}}) }} {{ form_label(form.plainPassword.second, 'Form.RepeatPassword' | trans) }}
{% endif %}
{{ form_widget(form.organization, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Organization'|trans}}"}}) }} {{ form_label(form.organization, 'Form.User.Organization' | trans) }}
{{ form_widget(form.title, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Title'|trans}}"}}) }} {{ form_label(form.title, 'Form.User.Title' | trans) }}
{{ form_widget(form.address, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Address'|trans}}"}}) }} {{ form_label(form.address, 'Form.User.Address' | trans) }}
{{ form_widget(form.phone, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Phone'|trans}}"}}) }} {{ form_label(form.phone, 'Form.User.Phone' | trans) }}
{{ form_widget(form.description, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.User.Description'|trans}}"}}) }} {{ form_label(form.description, 'Form.User.Description' | trans) }}
{% for t in form.active %} {{ form_widget(t, {'attr': {'class': ''}}) }} {{ form_label(t) }} {% endfor %}
{{ form_widget(form.country, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.User.Country'|trans}}"}}) }} {{ form_label(form.country, 'Form.User.Country' | trans) }}
{{'Form.Return' | trans}}
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %} {% block custom_js %} {{parent()}} {% endblock %} {#% block validation %}{% endblock %#}