You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

7 years ago
<?php
3 years ago
use backend\forms\rbac\RbacEditRoleForm;
7 years ago
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
3 years ago
/* @var $this yii\web\View */
/* @var $model RbacEditRoleForm*/
7 years ago
$this->title = Yii::t('user', 'Update Role: {role}', ['role' => $model->name]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('user', 'Roles'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->name]];
$this->params['breadcrumbs'][] = Yii::t('buttons', 'Editing');
?>
<div class="users-rbac-role-update">
<?php $form = ActiveForm::begin(); ?>
3 years ago
<div class="card">
<div class="card-body">
7 years ago
<?= $form->field($model, 'name')->textInput(['maxLength' => true]) ?>
<?= $form->field($model, 'description')->textarea() ?>
<?= $form->field($model, 'rule_name')->textInput(['maxLength' => true]) ?>
<?= $form->field($model, 'data')->textarea() ?>
</div>
3 years ago
<card class="card-footer text-right">
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-success']) ?>
</card>
7 years ago
</div>
<?php ActiveForm::end(); ?>
3 years ago
</div>