_form.php 993 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model app\models\Categories */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="categories-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  11. <?= $form->field($model, 'description')->textInput(['maxlength' => true]) ?>
  12. <?= $form->field($model, 'key_words')->textInput(['maxlength' => true]) ?>
  13. <?= $form->field($model, 'title_ru')->textInput(['maxlength' => true]) ?>
  14. <?= $form->field($model, 'description_ru')->textInput(['maxlength' => true]) ?>
  15. <?= $form->field($model, 'key_words_ru')->textInput(['maxlength' => true]) ?>
  16. <div class="form-group">
  17. <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  18. </div>
  19. <?php ActiveForm::end(); ?>
  20. </div>