| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use yii\widgets\ActiveForm;
- use common\enums\StatusEnum;
- $this->title = '编辑';
- $this->params['breadcrumbs'][] = ['label' => '配置信息', 'url' => ['index']];
- $this->params['breadcrumbs'][] = ['label' => $this->title];
- ?>
- <div class="row">
- <div class="col-12">
- <div class="box">
- <div class="box-header with-border">
- <h3 class="box-title">基本信息</h3>
- </div>
- <?php $form = ActiveForm::begin([
- 'fieldConfig' => [
- 'template' => "<div class='row'><div class='col-1 text-right'>{label}</div><div class='col-11'>{input}\n{hint}\n{error}</div></div>",
- ]
- ]); ?>
- <div class="box-body">
- <?= $form->field($model, 'title')->textInput() ?>
- <?= $this->render($model['name'], [
- 'model' => $model,
- 'dataModel' => $dataModel,
- 'form' => $form,
- ]) ?>
- <?= $form->field($model, 'sort')->textInput() ?>
- <?= $form->field($model, 'remark')->textarea() ?>
- <?= $form->field($model, 'status')->radioList(StatusEnum::getMap()) ?>
- </div>
- <div class="box-footer text-center">
- <button class="btn btn-primary" type="submit">保存</button>
- <span class="btn btn-white" onclick="history.go(-1)">返回</span>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
|