-
Notifications
You must be signed in to change notification settings - Fork 0
/
_form.php
29 lines (23 loc) · 809 Bytes
/
_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 2016/12/16
* Time: 下午5:42
*/
use yii\helpers\Html;
use yii\helpers\Markdown;
use backend\widgets\ActiveForm;
?>
<div class="box box-solid">
<div class="box-body">
<?php $form = Activeform::begin() ?>
<?= $form->field($model, 'book_name') ?>
<?= $form->field($model, 'book_cover')->widget(\common\widgets\upload\SingleWidget::className()) ?>
<?= $form->field($model, 'book_description')->widget(\common\widgets\editormd\Editormd::className(), ['clientOptions' => ['watch' => true, 'height' => 1000]]) ?>
<div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn bg-maroon btn-flat btn-block']) ?>
</div>
<?php ActiveForm::end() ?>
</div>
</div>