beginPage() ?> <?= Html::encode($this->title) ?> head() ?> beginBody() ?>
*/ NavBar::begin([ 'innerContainerOptions' => ['class' => 'container'], 'brandLabel' => '', 'brandUrl' => Yii::$app->homeUrl, 'options' => [ 'class' => 'navbar-fixed-top navbar-custom',//navbar-inverse ], ]); $adminToolsDropdown = [ ['label' => Yii::t('app', 'Roles and Permissions'), 'url' => ['/admin-tools/index'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'User Import'), 'url' => ['/admin-tools/userimport'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Gii'), 'url' => ['/gii'], 'visible' => !Yii::$app->user->isGuest], ]; $hrToolsDropdown = [ ['label' => Yii::t('app', 'Groups Editor'), 'url' => ['/hr-tools/groups'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Workflow Configuration'), 'url' => ['/hr-tools/workflow'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Tasks Editor'), 'url' => ['/hr-tools/tasks'], 'visible' => !Yii::$app->user->isGuest], ]; $userDropdown = [ ['label' => Yii::t('app', 'My profile'), 'url' => ['/site/account'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Settings'), 'url' => ['/site/settings'], 'visible' => !Yii::$app->user->isGuest] ]; echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right nav-menu'], 'items' => [ ['label' => Yii::t('app', 'My tasks'), 'url' => ['/site/index'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Workflow'), 'url' => ['/site/workflow'], 'visible' => !Yii::$app->user->isGuest], ['label' => Yii::t('app', 'Organigram'), 'url' => ['/site/organigram'], 'visible' => !Yii::$app->user->isGuest], (Yii::$app->user->can('permission_hr') or Yii::$app->user->can('permission_admin'))?['label' => Yii::t('app', 'HR Tools'), 'url' => ['#'], 'visible' => !Yii::$app->user->isGuest, 'items' => $hrToolsDropdown]: '', (Yii::$app->user->can('permission_admin'))?['label' => Yii::t('app', 'Admin Tools'), 'url' => ['#'], 'visible' => !Yii::$app->user->isGuest, 'items' => $adminToolsDropdown]: '', ['label' => Yii::t('app', 'Profile') /*Yii::$app->user->identity->username*/, 'url' => ['#'], 'visible' => !Yii::$app->user->isGuest, 'items' => $userDropdown], Yii::$app->user->isGuest ? ( ['label' => 'Login', 'url' => ['/site/login'], 'visible' => false] ) : ( '
  • ' . Html::beginForm(['/site/logout'], 'post') . Html::submitButton( Yii::t('app', 'Logout').' (' . Yii::$app->user->identity->username . ')', ['class' => 'btn btn-link logout'] ) . Html::endForm() . '
  • ' ), ], ]); NavBar::end(); ?>
    endBody() ?> endPage() ?>