<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;

use common\modules\bids\models\Bid;
?>

<div class="row">
    <div class="col-md-12 col-xs-12 col-sm-12">
        <div class="keys_send_mail">
            <p><?=\Yii::t('form', 'The cases description process require a lot of time. Thus, we write them at free time. Subscribe to follow the updates.')?></p>
            <?php 
            $model = new Bid;
            $model->setScenario(Bid::SCENARIO_SUBSCRIBE);
            $model->form = Bid::FORM_SUBSCRIBE;

            $form = ActiveForm::begin([
                'action' => '/bids/bid/add',
                'enableClientValidation' => false,
                'options' => [
                    'class' => 'keys_mail_form bids-form',
                    'data-title' => 'Страница Кейсы',
                    'data-form' => 'Подпись на обновления в кейсах',
                    'data-tag' => Bid::TAG_INVOLVEMENT
                ],
            ]); ?>

                <div class="message-box send_secce">Теперь вы подписаны на обновления кейсов.</div>

                <div class="content">

                    <?php echo Html::hiddenInput('scenario', $model->scenario, ['class' => 'not_clear']); ?>
                    
                    <?php echo $form->field($model, 'form', ['template' => '{input}'])->hiddenInput(['class' => 'not_clear']); ?>
                    
                    <?php echo $form->field($model, 'email', [
                        'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
                        'errorOptions' => []
                    ])->textInput([
                        'placeholder' => 'E-mail*'
                    ]); ?>
                    
                    <?php echo Html::submitButton(\Yii::t('form', 'Subscribe'), ['class' => 'save-button']); ?>

                </div>

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