Blame view

frontend/views/option/_form.php 909 Bytes
b0f143c3   Yarik   first commit
1
2
3
4
5
6
  <?php
  
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
  /* @var $this yii\web\View */
cdb04594   Yarik   test
7
  /* @var $model common\models\Option */
b0f143c3   Yarik   first commit
8
9
10
11
  /* @var $form yii\widgets\ActiveForm */
  ?>
  
  <div class="option-form">
cdb04594   Yarik   test
12
  
b0f143c3   Yarik   first commit
13
      <?php $form = ActiveForm::begin(); ?>
cdb04594   Yarik   test
14
15
16
17
18
19
20
21
22
23
24
25
26
  
      <?= $form->field($model, 'model')->textInput(['maxlength' => true]) ?>
  
      <?= $form->field($model, 'model_id')->textInput() ?>
  
      <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  
      <?= $form->field($model, 'template')->textInput(['maxlength' => true]) ?>
  
      <?= $form->field($model, 'option_pid')->textInput() ?>
  
      <?= $form->field($model, 'date_add')->textInput() ?>
  
b0f143c3   Yarik   first commit
27
28
29
30
31
      <div class="form-group">
          <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
      </div>
  
      <?php ActiveForm::end(); ?>
cdb04594   Yarik   test
32
  
b0f143c3   Yarik   first commit
33
  </div>