<?php

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

?>

<div class="group-form">

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

    <?= $form->field($model, 'endDate', ['enableAjaxValidation' => true])->textInput(['type' => 'date', 'min' => date('Y-m-d', strtotime($model->endDate))]) ?>

    <div class="center-elements">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success btn-expanded', 'id' => 'submit-button']) ?>
    </div>

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

</div>