<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datepicker\DatePicker;

?>

<div class="holidays-form">

    <?php $form = ActiveForm::begin(['options' => ['autocomplete' => 'off']]); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true, ]) ?>

    <?= $form->field($model, 'date')->widget(DatePicker::className(), [
            'language' => Yii::$app->language,
            'clientOptions' => [
                'autoclose' => true,
                'format' => 'yyyy-m-d',
                'todayHighlight' => true,
                'todayBtn' => 'linked'
            ],
        ]) ?> 

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
    </div>

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

</div>
