<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/** @var yii\web\View $this */
/** @var app\models\Tour $model */
/** @var yii\widgets\ActiveForm $form */
?>
<section class="content">
<div class="tour-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name',  [
        'inputOptions' => [
            'class' => 'admin-tour-field',

        ]])->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'country_id',  [
        'inputOptions' => [
            'class' => 'admin-tour-field',

        ]])->textInput() ?>

    <?= $form->field($model, 'city',  [
        'inputOptions' => [
            'class' => 'admin-tour-field',

        ]])->textInput(['maxlength' => true]) ?>

<!--    --><?php //= $form->field($model, 'image',  [
//        'inputOptions' => [
//            'class' => 'admin-tour-field',
//
//        ]])->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'days',  [
        'inputOptions' => [
            'class' => 'admin-tour-field',

        ]])->textInput() ?>

    <?= $form->field($model, 'price',  [
        'inputOptions' => [
            'class' => 'admin-tour-field',

        ]])->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
    </div>

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

</div>
</section>