da8366ac
Administrator
upload project
|
1
2
3
4
|
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
|
c4db9709
Administrator
VItaliy 27.11.2015
|
5
6
|
use mihaildev\ckeditor\CKEditor;
use mihaildev\elfinder\ElFinder;
|
da8366ac
Administrator
upload project
|
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* @var $this yii\web\View */
/* @var $model common\models\Page */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="page-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
|
c4db9709
Administrator
VItaliy 27.11.2015
|
20
21
22
23
|
<?= $form->field($model, 'content')->widget(CKEditor::className(),[
'editorOptions' => ElFinder::ckeditorOptions('elfinder',[
'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать
'inline' => false, //по умолчанию false]),
|
d17f076f
Administrator
VItaliy 30.11.2015
|
24
|
'allowedContent' => true,
|
c4db9709
Administrator
VItaliy 27.11.2015
|
25
26
27
28
|
'filebrowserUploadUrl'=>Yii::$app->getUrlManager()->createUrl('page/images-upload')
]
)
]); ?>
|
da8366ac
Administrator
upload project
|
29
30
31
32
33
34
35
36
37
|
<?= $form->field($model, 'sort')->textInput() ?>
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kwords')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?>
|
c4db9709
Administrator
VItaliy 27.11.2015
|
38
|
<?= $form->field($model, 'is_active')->checkbox() ?>
|
da8366ac
Administrator
upload project
|
39
40
41
42
43
44
45
46
|
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
|