Blame view

frontend/views/option-lang/_form.php 869 Bytes
97fb6489   Yarik   test
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
  <?php
      use common\models\Option;
      use common\models\OptionLang;
      use common\models\User;
      use common\widgets\Multilanguage;
      use yii\bootstrap\ActiveField;
      use yii\helpers\Html;
  use yii\bootstrap\ActiveForm;
  
  /* @var $this yii\web\View */
  /* @var $model common\models\OptionLang */
  /* @var $form yii\widgets\ActiveForm */
  ?>
  
  <div class="option-lang-form">
  
      <?php $form = ActiveForm::begin(); ?>
  
      <?= $form->field($model, 'option_id')->textInput() ?>
  
      <?= $form->field($model, 'language_id')->textInput() ?>
  
      <?= $form->field($model, 'value')->textarea(['rows' => 6]) ?>
  
      <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(); ?>
  
  </div>