_assignments.php 768 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. use dektrium\rbac\widgets\Assignments;
  11. /**
  12. * @var yii\web\View $this
  13. * @var dektrium\user\models\User $user
  14. */
  15. ?>
  16. <?php $this->beginContent('@dektrium/user/views/admin/update.php', ['user' => $user]) ?>
  17. <?= yii\bootstrap\Alert::widget([
  18. 'options' => [
  19. 'class' => 'alert-info alert-dismissible',
  20. ],
  21. 'body' => Yii::t('user', 'You can assign multiple roles or permissions to user by using the form below'),
  22. ]) ?>
  23. <?= Assignments::widget(['userId' => $user->id]) ?>
  24. <?php $this->endContent() ?>