Blame view

common/components/developeruz/db_rbac/views/user/view.php 592 Bytes
b0f143c3   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
  namespace developeruz\db_rbac\views\user;
  
  use Yii;
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
  ?>
  <h3><?=Yii::t('db_rbac', 'Управление ролями пользователя');?> <?= $user->getUserName(); ?></h3>
  <?php $form = ActiveForm::begin(['action' => ["/{$moduleName}/user/update", 'id' => $user->getId()]]); ?>
  
  <?= Html::checkboxList('roles', $user_permit, $roles, ['separator' => '<br>']); ?>
  
  <div class="form-group">
      <?= Html::submitButton(Yii::t('db_rbac', 'Сохранить'), ['class' => 'btn btn-success']) ?>
  </div>
  
  <?php ActiveForm::end(); ?>