Blame view

backend/views/cat/_form.php 751 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
  
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
  /* @var $this yii\web\View */
  /* @var $model common\models\Cat */
  /* @var $form yii\widgets\ActiveForm */
  ?>
  
  <div class="cat-form">
  
      <?php $form = ActiveForm::begin(); ?>
  
      <?= $form->field($model, 'description')->textInput(['maxlength' => true]) ?>
  
      <?= $form->field($model, 'sort')->textInput() ?>
  
      <?= $form->field($model, 'is_active')->textInput() ?>
  
      <?= $form->field($model, 'parent_id')->textInput() ?>
  
      <div class="form-group">
5a9f41f9   Administrator   VItaliy 16.12.2015
24
          <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
0084d336   Administrator   Importers CRUD
25
26
27
28
29
      </div>
  
      <?php ActiveForm::end(); ?>
  
  </div>