Esempio n. 1
0
<?php

/**
 * @var $this  yii\web\View
 * @var $model jarrus90\User\models\Role
 */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->params['breadcrumbs'][] = $this->title;
$this->beginContent('@jarrus90/Blog/views/_adminLayout.php');
$form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false, 'fieldConfig' => ['horizontalCssClasses' => ['wrapper' => 'col-sm-9']]]);
echo $form->field($model, 'key');
echo $form->field($model, 'title');
echo $form->field($model, 'content')->widget(\jarrus90\Blog\Widgets\Redactor::className(), ['clientOptions' => ['lang' => Yii::$app->language, 'minHeight' => 200, 'plugins' => ['fontsize', 'fontcolor', 'fontfamily', 'table', 'counter', 'fullscreen', 'imagemanager']]]);
echo Html::submitButton(Yii::t('content', 'Save'), ['class' => 'btn btn-success btn-block']);
ActiveForm::end();
$this->endContent();