* * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ use Da\User\Model\User; use yii\bootstrap\Nav; use yii\web\View; use yii\helpers\Html; /* * @var View $this * @var User $user * @var string $content */ $this->title = Yii::t('usuario', 'Update user account'); $this->params['breadcrumbs'][] = ['label' => Yii::t('usuario', 'Users'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
render( '/shared/_alert', [ 'module' => Yii::$app->getModule('user'), ] ) ?>

title) ?>

render('/shared/_menu') ?>
[ 'class' => 'nav-pills nav-stacked', ], 'items' => [ [ 'label' => Yii::t('usuario', 'Account details'), 'url' => ['/user/admin/update', 'id' => $user->id], ], [ 'label' => Yii::t('usuario', 'Profile details'), 'url' => ['/user/admin/update-profile', 'id' => $user->id], ], [ 'label' => Yii::t('usuario', 'Information'), 'url' => ['/user/admin/info', 'id' => $user->id], ], [ 'label' => Yii::t('usuario', 'Assignments'), 'url' => ['/user/admin/assignments', 'id' => $user->id], ], '
', [ 'label' => Yii::t('usuario', 'Confirm'), 'url' => ['/user/admin/confirm', 'id' => $user->id], 'visible' => !$user->isConfirmed, 'linkOptions' => [ 'class' => 'text-success', 'data-method' => 'post', 'data-confirm' => Yii::t( 'usuario', 'Are you sure you want to confirm this user?' ), ], ], [ 'label' => Yii::t('usuario', 'Block'), 'url' => ['/user/admin/block', 'id' => $user->id], 'visible' => !$user->isBlocked, 'linkOptions' => [ 'class' => 'text-danger', 'data-method' => 'post', 'data-confirm' => Yii::t( 'usuario', 'Are you sure you want to block this user?' ), ], ], [ 'label' => Yii::t('usuario', 'Unblock'), 'url' => ['/user/admin/block', 'id' => $user->id], 'visible' => $user->isBlocked, 'linkOptions' => [ 'class' => 'text-success', 'data-method' => 'post', 'data-confirm' => Yii::t( 'usuario', 'Are you sure you want to unblock this user?' ), ], ], [ 'label' => Yii::t('usuario', 'Delete'), 'url' => ['/user/admin/delete', 'id' => $user->id], 'linkOptions' => [ 'class' => 'text-danger', 'data-method' => 'post', 'data-confirm' => Yii::t( 'usuario', 'Are you sure you want to delete this user?' ), ], ], ], ] ) ?>