display.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. use common\widgets\webuploader\Files;
  4. $this->title = '参数设置';
  5. $this->params['breadcrumbs'][] = ['label' => $this->title];
  6. ?>
  7. <div class="row">
  8. <div class="col-lg-12">
  9. <div class="box">
  10. <div class="box-header with-border">
  11. <h3 class="box-title">微信分享设置</h3>
  12. </div>
  13. <?php $form = ActiveForm::begin([]); ?>
  14. <div class="box-body">
  15. <div class="col-sm-12">
  16. <?= $form->field($model, 'share_title')->textInput(); ?>
  17. <?= $form->field($model, 'share_cover')->widget(Files::class, [
  18. 'type' => 'images',
  19. 'theme' => 'default',
  20. 'themeConfig' => [],
  21. 'config' => [
  22. 'pick' => [
  23. 'multiple' => false,
  24. ],
  25. ]
  26. ]); ?>
  27. <?= $form->field($model, 'share_desc')->textarea(); ?>
  28. <?= $form->field($model, 'share_link')->textInput(); ?>
  29. </div>
  30. </div>
  31. <div class="box-footer text-center">
  32. <button class="btn btn-primary" type="submit">保存</button>
  33. <span class="btn btn-white" onclick="history.go(-1)">返回</span>
  34. </div>
  35. <?php ActiveForm::end(); ?>
  36. </div>
  37. </div>
  38. </div>
粤ICP备19079148号