<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Comment */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="box box-success">
    <div class="box-body">
        <?php $form = ActiveForm::begin(); ?>

        <?= $form->field($model, 'content')->widget(\common\widgets\editor\editormd\Editormd::className(), ['mode' => 'mini']) ?>
        <div class="form-group form-submit">
            <?= Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success btn-block' : 'btn btn-success btn-block']) ?>
        </div>

        <?php ActiveForm::end(); ?>
    </div>
</div>
