Ejemplo n.º 1
0
use roman444uk\magnificPopup\MagnificPopup;
use roman444uk\users\UsersModule;
use roman444uk\users\components\GhostHtml;
use roman444uk\users\models\rbacDB\Role;
use roman444uk\users\models\User;
use roman444uk\yii\grid\GridBulkActions;
use roman444uk\yii\widgets\jui\LinkAjaxDialog;
use roman444uk\yii\widgets\WidgetPageSize;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\web\AssetManager;
use yii\widgets\Pjax;
$eauthAssetPath = Yii::$app->assetManager->publish(Yii::$app->getModule('eauth')->basePath . '/assets');
$eauthAssetPath = $eauthAssetPath[0];
$this->title = EauthModule::t('Service users');
$this->params['breadcrumbs'][] = $this->title;
?>


<?php 
Pjax::begin(['id' => 'user-grid-pjax']);
?>

    <?php 
echo GridView::widget(['id' => 'service-user-grid', 'dataProvider' => $dataProvider, 'pager' => ['options' => ['class' => 'pagination pagination-sm'], 'hideOnSinglePage' => true, 'lastPageLabel' => '>>', 'firstPageLabel' => '<<'], 'filterModel' => $searchModel, 'layout' => '
            <div class="row">
                <div class="col-sm-4">
                    ' . GhostHtml::a('<span class="glyphicon glyphicon-plus-sign"></span> ' . UsersModule::t('back', 'Create'), ['/eauth/service-user/create'], ['id' => 'service-user-grid-create-button', 'class' => 'btn btn-success btn-sm']) . '
                </div>
                <div class="col-sm-4 text-center">
Ejemplo n.º 2
0
 /**
  * @inheridoc
  */
 public function attributeLabels()
 {
     return ['id' => 'Id', 'avatar_url' => EauthModule::t('Avatar'), 'status' => EauthModule::t('Status'), 'username' => EauthModule::t('Имя')];
 }
Ejemplo n.º 3
0
<?php

use roman444uk\eauth\EauthModule;
$this->title = EauthModule::t('User edition') . ': ' . $model->username;
$this->params['breadcrumbs'][] = ['label' => EauthModule::t('Service users'), 'url' => ['list']];
$this->params['breadcrumbs'][] = ['label' => $model->username, 'url' => ['view', 'id' => $model->serviceId]];
$this->params['breadcrumbs'][] = EauthModule::t('Editing');
Ejemplo n.º 4
0
<?php

use roman444uk\eauth\EauthModule;
$this->title = EauthModule::t('main', 'User creation');
$this->params['breadcrumbs'][] = ['label' => EauthModule::t('main', 'Service users'), 'url' => ['list']];
$this->params['breadcrumbs'][] = $this->title;