Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
72 righe
3.3 KiB
72 righe
3.3 KiB
<?php |
|
echo $this->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', |
|
], |
|
]); |
|
?> |
|
<div class="view card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"><?php echo __('Informazioni Utente'); ?></h2> |
|
</div> |
|
<?php if ($user->photo): ?> |
|
<div class="card-header d-sm-flex"> |
|
<span><?= $this->Html->image("/users/getPhoto/" . $user->photo, array('class' => 'img-circle', 'alt' => 'User Image', 'style' => 'margin-right: 5px;')) ?></span> |
|
<span><?= $this->Form->postLink(__('Elimina foto'), ['action' => 'deleteUserPhoto', $user->id], ['confirm' => __('Sei sicuro che vuoi eliminare la foto ?'), 'class'=>'btn btn-danger btn-xs']) ?></span> |
|
</div> |
|
<?php endif; ?> |
|
<div class="card-body"> |
|
<dl class="dl-horizontal"> |
|
<dt scope="row"><?= __('Nome utente') ?></dt> |
|
<dd><?= h($user->username) ?></dd> |
|
<dt scope="row"><?= __('Nome') ?></dt> |
|
<dd><?= h($user->name) ?></dd> |
|
<dt scope="row"><?= __('Cognome') ?></dt> |
|
<dd><?= h($user->surname) ?></dd> |
|
<dt scope="row"><?= __('Codice Fiscale') ?></dt> |
|
<dd><?= h($user->tax_code) ?></dd> |
|
<dt scope="row"><?= __('Data di nascita') ?></dt> |
|
<dd><?= h(isset($user->birthday) ? $user->birthday->format('d/m/Y') : '') ?></dd> |
|
<dt scope="row"><?= __('Luogo di nascita') ?></dt> |
|
<dd><?= h($user->birthplace) ?></dd> |
|
<dt scope="row"><?= __('Sesso') ?></dt> |
|
<dd><?= h($user->gender) ?></dd> |
|
<dt scope="row"><?= __('Indirizzo') ?></dt> |
|
<dd><?= h($user->address) ?></dd> |
|
<dt scope="row"><?= __('Città') ?></dt> |
|
<dd><?= h($user->city) ?></dd> |
|
<dt scope="row"><?= __('CAP') ?></dt> |
|
<dd><?= h($user->cap) ?></dd> |
|
<dt scope="row"><?= __('Lingua preferita') ?></dt> |
|
<dd><?= h(isset($user->language->description) ? $user->language->description : __('Non specificata')) ?></dd> |
|
<dt scope="row"><?= __('Organizzazione') ?></dt> |
|
<dd><?= h(!empty($user->organisation->actor->description) ? $user->organisation->actor->description : '') ?></dd> |
|
<dt scope="row"><?= __('Profili') ?></dt> |
|
<dd><?= h($user->profiles) ?></dd> |
|
<dt scope="row"><?= __('Recapiti:') ?></dt> |
|
<dd><?= h($user->actor->contacts) ?></dd> |
|
</dl> |
|
</div> |
|
<div class="card-footer d-flex"> |
|
<div class="ml-auto"> |
|
<?= $user->can_handle_contacts ? $this->Html->link(__('Gestione recapiti'), ['controller' => 'Deliveries', 'action' => 'index', $user->actor_id], ['class'=>'btn btn-info btn-xs']) : null ?> |
|
<?= $user->can_edit ? $this->Html->link(__('Modifica'), ['action' => 'edit', $user->id], ['class'=>'btn btn-warning btn-xs']) : null ?> |
|
<?= $user->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $user->id], ['confirm' => __('Sei sicuro che vuoi cancellare l\'utente "{0}" ?', $user->actor->description), 'class'=>'btn btn-danger btn-xs']) : null ?> |
|
</div> |
|
</div> |
|
</div>
|
|
|