Exemplo n.º 1
0
<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\user */
use app\modules\rbacm\Module;
$this->title = Module::t('module', 'Create User');
$this->params['breadcrumbs'][] = ['label' => Module::t('module', 'Users'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-create">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <?php 
echo $this->render('_form', ['model' => $model]);
?>

</div>
Exemplo n.º 2
0
Arquivo: view.php Projeto: sea129/kbay
$this->params['breadcrumbs'][] = ['label' => Module::t('module', 'Roles'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="auth-item-view">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a(Module::t('module', 'Update'), ['update', 'name' => $model->name], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Module::t('module', 'Delete'), ['delete', 'name' => $model->name], ['class' => 'btn btn-danger', 'data-confirm' => Module::t('module', 'Are you sure to delete this item?'), 'data-method' => 'post']);
?>
    </p>
    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['name', 'description:ntext', 'rule_name', 'data:ntext']]);
?>

</div>
<div class="row">
    <div class="col-xs-12">
        <h3 class="header smaller lighter blue">Assigned Permissions</h3>
        <?php 
echo GridView::widget(['dataProvider' => $allPermissions, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', 'description:ntext', 'ruleName', 'data:ntext']]);
?>
    </div>
    
Exemplo n.º 3
0
Arquivo: Rule.php Projeto: sea129/kbay
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return ['name' => Module::t('module', 'Rule Name'), 'className' => Module::t('module', 'Class Name')];
 }
Exemplo n.º 4
0
<?php

use yii\helpers\Html;
use app\modules\rbacm\Module;
$this->title = Module::t('module', 'Update Permission') . ': ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Permissions', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->name]];
$this->params['breadcrumbs'][] = Module::t('module', 'Update');
?>
<div class="auth-item-update">

	<h1><?php 
echo Html::encode($this->title);
?>
</h1>
	<?php 
echo $this->render('_form', ['model' => $model]);
?>
</div>
Exemplo n.º 5
0
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\rbacm\models\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
use app\modules\rbacm\Module;
$this->title = Module::t('module', 'Users');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a(Module::t('module', 'Create User'), ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', 'username', 'auth_key', 'password_hash', 'password_reset_token', ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>
Exemplo n.º 6
0
    <?php 
// echo $form->field($model, 'email')
?>

    <?php 
// echo $form->field($model, 'status')
?>

    <?php 
// echo $form->field($model, 'created_at')
?>

    <?php 
// echo $form->field($model, 'updated_at')
?>

    <div class="form-group">
        <?php 
echo Html::submitButton(Module::t('module', 'Search'), ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::resetButton(Module::t('module', 'Reset'), ['class' => 'btn btn-default']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Exemplo n.º 7
0
/* @var $form yii\widgets\ActiveForm */
use app\modules\rbacm\Module;
?>

<div class="auth-item-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
    
    <?php 
echo $form->field($model, 'className')->textInput(['maxlength' => true]);
?>

<div class="form-group">
    <?php 
echo Html::submitButton(Module::t('module', 'Save'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>


    <?php 
ActiveForm::end();
?>
    
</div>
Exemplo n.º 8
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\user */
/* @var $form yii\widgets\ActiveForm */
use app\modules\rbacm\Module;
?>

<div class="user-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'status')->textInput();
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Module::t('module', 'Create') : Module::t('module', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>