Blame view

app/modules/admin/views/text/_form.php 1.08 KB
bf807468   Alex Savenko   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  <?php

  use yii\helpers\Html;

  use yii\bootstrap\ActiveForm;

  use app\components\ckeditor\CKEditor;

  use app\mihaildev\elfinder\ElFinder;

  

  ?>

  

      <?php $form = ActiveForm::begin([

          'id' => 'form',

          'options' => ['class' => 'form-vertical'],

  

      ]); ?>

  

      <?= $form->field($model, 'title') ?>

  

      <? /*$form->field($model, 'translit', [

              'addon' => ['prepend' => ['content'=>'@']]

          ]);*/?>

      <?= $form->field($model, 'translit',[

          'inputTemplate' => '<div class="input-group"><span class="input-group-addon">text/</span>{input}</div>',

      ]);?>

  

      <?=$form->field($model, 'body')->widget(CKEditor::className(),[

      'editorOptions' => ElFinder::ckeditorOptions('elfinder',[/* Some CKEditor Options */]),

      ]);

      ?>

  

      <?= $form->field($model, 'meta_title') ?>

  

      <?= $form->field($model, 'meta_keywords') ?>

  

      <?= $form->field($model, 'meta_description') ?>

  

  

      <?= Html::submitButton('Сохранить', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>

  

  

  

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