| 1234567891011121314151617181920212223242526272829 |
- <?php
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- /* @var $this yii\web\View */
- /* @var $model app\models\Posts */
- /* @var $form yii\widgets\ActiveForm */
- ?>
- <div class="posts-form">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'page')->textInput() ?>
- <!-- <?= $form->field($model, 'text')->textarea(['rows' => 6]) ?> --!>
- <?= $form->field($model, 'text')->widget(\yii\redactor\widgets\Redactor::className()) ?>
- <!-- <?= $form->field($model, 'status')->textInput() ?> --!>
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
|