@@ -81,7 +81,7 @@ |
||
81 | 81 | $model = new UserAuthItem(null); |
82 | 82 | $model->type = $this->type; |
83 | 83 | if ($model->load(Yii::$app->getRequest()->post()) && $model->save()) { |
84 | - Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Create success.')); |
|
84 | + Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Create success.')); |
|
85 | 85 | return $this->redirect(['view', 'id' => $model->name]); |
86 | 86 | } else { |
87 | 87 | return $this->render('create', ['model' => $model]); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | unset($rules[RouteRule::RULE_NAME]); |
16 | 16 | ?> |
17 | 17 | |
18 | -<?php $form = ActiveForm::begin(['layout' => 'horizontal',]); ?> |
|
18 | +<?php $form = ActiveForm::begin(['layout' => 'horizontal', ]); ?> |
|
19 | 19 | <?= $form->field($model, 'name')->textInput(['maxlength' => 64]) ?> |
20 | 20 | <div class="hr-line-dashed"></div> |
21 | 21 | <?= $form->field($model, 'description')->textarea(['rows' => 2]) ?> |
@@ -81,7 +81,7 @@ |
||
81 | 81 | 'attribute' => 'description', |
82 | 82 | 'label' => Yii::t('yuncms', 'Role Description'), |
83 | 83 | ], |
84 | - ['class' => 'yuncms\grid\ActionColumn',], |
|
84 | + ['class' => 'yuncms\grid\ActionColumn', ], |
|
85 | 85 | ], |
86 | 86 | ]) |
87 | 87 | ?> |