@@ -155,7 +155,7 @@ |
||
| 155 | 155 | if (($model = Task::findOne($id)) !== null) { |
| 156 | 156 | return $model; |
| 157 | 157 | } else { |
| 158 | - throw new NotFoundHttpException (Yii::t('yii', 'The requested page does not exist.')); |
|
| 158 | + throw new NotFoundHttpException(Yii::t('yii', 'The requested page does not exist.')); |
|
| 159 | 159 | } |
| 160 | 160 | } |
| 161 | 161 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | /* @var yuncms\models\Task $model */ |
| 8 | 8 | /* @var ActiveForm $form */ |
| 9 | 9 | ?> |
| 10 | -<?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false,]); ?> |
|
| 10 | +<?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, ]); ?> |
|
| 11 | 11 | |
| 12 | 12 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
| 13 | 13 | <div class="hr-line-dashed"></div> |
@@ -70,14 +70,14 @@ |
||
| 70 | 70 | 'crontab_str', |
| 71 | 71 | [ |
| 72 | 72 | 'attribute' => 'switch', |
| 73 | - 'value' => function ($model) { |
|
| 73 | + 'value' => function($model) { |
|
| 74 | 74 | return $model->switch == Task::SWITCH_ACTIVE ? Yii::t('yuncms', 'Active') : Yii::t('yuncms', 'Disable'); |
| 75 | 75 | }, |
| 76 | 76 | 'label' => Yii::t('yuncms', 'Task Switch'), |
| 77 | 77 | ], |
| 78 | 78 | [ |
| 79 | 79 | 'attribute' => 'status', |
| 80 | - 'value' => function ($model) { |
|
| 80 | + 'value' => function($model) { |
|
| 81 | 81 | return $model->switch == Task::STATUS_NORMAL ? Yii::t('yuncms', 'normal') : Yii::t('yuncms', 'Save'); |
| 82 | 82 | }, |
| 83 | 83 | 'label' => Yii::t('yuncms', 'Task Status'), |