Breadcrumb->render([ [ 'title' => 'Home', 'icon' => 'fa fa-home', 'url' => '/', ], [ 'title' => __('Configurazioni'), 'icon' => 'fa fa-wrench', ], [ 'title' => __('Lista Utenti'), 'icon' => 'fa fa-list', 'url' => ['controller' => 'users', 'action' => 'index'], ], [ 'title' => __('Dettaglio Utente'), 'icon' => 'fa fa-info', 'url' => ['controller' => 'users', 'action' => 'view', $user->id], ], [ 'title' => __('Modifica Utente'), 'icon' => 'fa fa-pencil-alt', ], ]); ?>

Form->create($user, ['role' => 'form', 'type' => 'file']) ?>
Form->control('username', ['label' => __('Nome utente')]); ?>
Form->control('name', ['label' => __('Nome')]); ?>
Form->control('surname', ['label' => __('Cognome')]); ?>
Form->control('tax_code', ['label' => __('Codice Fiscale')]); ?>
Form->control('password', ['label' => __('Password')]); ?>
Form->control('birthday', ['type' => 'date', 'label' => __('Data di nascita'), 'max' => $today->format('Y-m-d')]); ?>
Form->control('birthplace', ['label' => __('Luogo di nascita')]); ?>
Form->control('gender', ['label' => __('Sesso'), 'type' => 'select', 'options' => ['M' => 'M', 'F' => 'F'], 'empty' => false, 'style="width: 100%']); ?>
Form->control('address', ['label' => __('Indirizzo')]); ?>
Form->control('city', ['label' => __('Città')]); ?>
Form->control('cap', ['label' => __('CAP')]); ?>
Form->control('language_id', ['label' => __('Lingua preferita'), 'style="width: 100%']); ?>
Form->control('organisation_id', ['label' => __('Organizzazione'), 'style="width: 100%']); ?>
Form->control('user_photo', ['label' => __('Foto del profilo (solo jpeg di dimensioni 160x160!)'), 'type' => 'file', 'accept' => '.jpeg']); ?>
Form->control('groups._ids', ['label' => __('Profili'), 'options' => $groups, 'multiple' => true, 'disabled' => !$can_handle_profiles, 'style="width: 100%']); ?>
Form->end(); ?>