edit.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. use common\widgets\webuploader\Files;
  4. $this->title = '编辑';
  5. $this->params['breadcrumbs'][] = ['label' => '公告管理', 'url' => ['index']];
  6. $this->params['breadcrumbs'][] = ['label' => $this->title];
  7. ?>
  8. <div class="row">
  9. <div class="col-lg-12">
  10. <div class="box">
  11. <div class="box-header with-border">
  12. <h3 class="box-title">基本信息</h3>
  13. </div>
  14. <?php $form = ActiveForm::begin([
  15. 'fieldConfig' => [
  16. 'template' => "<div class='row'><div class='col-sm-1 text-right'>{label}</div><div class='col-sm-11'>{input}{hint}{error}</div></div>",
  17. ]
  18. ]); ?>
  19. <div class="box-body">
  20. <?= $form->field($model, 'title')->textInput() ?>
  21. <?= $form->field($model, 'content')->widget(\common\widgets\ueditor\UEditor::class) ?>
  22. </div>
  23. <!-- /.box-body -->
  24. <div class="box-footer">
  25. <div class="col-sm-12 text-center">
  26. <button class="btn btn-primary" type="submit">保存</button>
  27. <span class="btn btn-white" onclick="history.go(-1)">返回</span>
  28. </div>
  29. </div>
  30. <?php ActiveForm::end(); ?>
  31. </div>
  32. </div>
  33. </div>
粤ICP备19079148号