= $this->Form->control('username', ['label' => __('Nome utente')]); ?>
getName() ?? ''): ?>
= $this->Form->control('name', ['label' => __('Nome'),
'value' => $citizenRegistrationData?->getName() ?? '',
'readonly' => $citizenRegistrationData?->getName() ? true : false
]); ?>
= $this->Form->control('name', ['label' => __('Nome'), 'required' => true]); ?>
getSurname() ?? ''): ?>
= $this->Form->control('surname', ['label' => __('Cognome'),
'value' => $citizenRegistrationData?->getSurname() ?? '',
'readonly' => $citizenRegistrationData?->getSurname() ? true : false
]); ?>
= $this->Form->control('surname', ['label' => __('Cognome'), 'required' => true]); ?>
getFiscalCode() ?? ''): ?>
= $this->Form->control('tax_code', ['label' => __('Codice Fiscale'),
'value' => $citizenRegistrationData?->getFiscalCode() ?? '',
'readonly' => $citizenRegistrationData?->getFiscalCode() ? true : false
]); ?>
= $this->Form->control('tax_code', ['label' => __('Codice Fiscale'), 'required' => true]); ?>
= $this->Form->control('email', ['label' => __('Email'), 'required' => true, 'type' => 'email']); ?>
= $this->Form->control('password', ['label' => __('Password')]); ?>
= $this->Form->control('confirmPassword', ['label' => __('Conferma password'), 'type' => 'password', 'required' => true]); ?>
getBirthdate() ?? ''): ?>
= $this->Form->control('birthday', ['label' => __('Data di nascita'),
'type' => 'date',
'value' => $citizenRegistrationData?->getBirthdate() ?? '',
'readonly' => $citizenRegistrationData?->getBirthdate() ? true : false
]); ?>
= $this->Form->control('birthday', ['type' => 'date', 'label' => __('Data di nascita'), 'max' => $today->format('Y-m-d')]); ?>
= $this->Form->control('birthplace', ['label' => __('Luogo di nascita')]); ?>
getGender() ?? ''): ?>
= $this->Form->control('gender', ['label' => __('Sesso'),
'value' => $citizenRegistrationData?->getGender() ?? '',
'readonly' => $citizenRegistrationData?->getGender() ? true : false
]); ?>
= $this->Form->control('gender', ['label' => __('Sesso'), 'type' => 'select', 'options' => ['M' => 'M', 'F' => 'F'], 'empty' => false, 'style="width: 100%']); ?>
= $this->Form->control('address', ['label' => __('Indirizzo')]); ?>
= $this->Form->control('city', ['label' => __('Città ')]); ?>
= $this->Form->control('cap', ['label' => __('CAP')]); ?>
= $this->Form->control('language_id', ['label' => __('Lingua preferita'), 'style="width: 100%']); ?>
= $this->Form->control('user_photo', ['label' => __('Foto del profilo (solo jpeg di dimensioni 160x160!)'), 'type' => 'file', 'accept' => '.jpeg']); ?>