<?php

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

/* @var $this yii\web\View */
/* @var $model common\models\InterviewLog */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="page-header">
    <div class="alert alert-success" role="alert"><?= '当前访谈【' . $interview->title . '】' ?></div>
</div>
<div class="box box-success">
    <div class="box-body">
        <?php $form = ActiveForm::begin(); ?>

        <?= $form->field($model, 'type')->dropDownList(config('interview_type')) ?>

        <?= $form->field($model, 'content')->widget(\common\widgets\EditorWidget::className(),  ['type' => config('page_editor_type')]) ?>


        <div class="form-group form-submit">
            <?= Html::submitButton($model->isNewRecord ? Yii::t('common', 'Create') : Yii::t('common', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-success']) ?>
        </div>


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