<?php

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

?>

<div class="group-form">

    <h4><?= 'Are you sure you want to terminate this campaign?' ?></h4>
    <h4><?= 'If yes, please write down the termination reason' ?></h4>

    <br>

    <?php $form = ActiveForm::begin(['options' => ['id' => 'terminate-campagin']]); ?>

    <?= $form->field($model, 'terminationReason')->textarea(['style' => 'resize: none;', 'rows' => 6]) ?>

    <div class="center-elements">
        <?= Html::submitButton(Yii::t('app', 'Terminate'), ['class' => 'btn btn-danger btn-expanded', 'id' => 'submit-button']) ?>
        <?= Html::button(Yii::t('app', 'Close'), ['class' => 'btn btn-default btn-expanded', 'data-dismiss' => 'modal']) ?>
    </div>

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

</div>