<?php

use backend\models\CustomerInactivateForm;
use yii\widgets\ActiveForm;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model CustomerInactivateForm */

?>

<h1>Inaktiválás</h1>


<?php if ( isset($model, $model->message)  ) {?>
    <div class="alert alert-success" role="alert">
        <p>
            <?= $model->message ?>
        </p>
    </div>
<?php }else { ?>
<div class="customer-form">

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

    <div class="form-group">
        <p>
            <?= $model->activeCardCount ?> kártya inaktiválása
        </p>

        <div class="row">
        <div class="col-md-3">
            <?= $form->field($model, 'inactivateDate') ->widget(\kartik\widgets\DatePicker::classname(), [
                'pluginOptions' => [
                    'autoclose'=>true,
                    'format' => 'yyyy.mm.dd'
                ]
            ])->label("Inaktiválási dátum")  ?>
        </div>
        </div>


        <div class="row">
            <div class="col-md-3">
            <?= Html::submitButton('Inaktiválás',['class' => 'btn btn-danger']) ?>
            </div>
        </div>

    </div>

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

</div>

<?php }?>


