<commit_before><?php
/**
 * Created: <NAME>
 * Date: 2015.10.07.
 * Time: 11:27
 */

use yii\helpers\Html;
//use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

use kartik\form\ActiveForm;
use kartik\builder\Form;


/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\ContactForm */

$this->title = 'Ötletbörze';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-contact">


    <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?>

        <div class="alert alert-success">
            Köszönjük az üzenetét! Igyekszünk mihamarabb válaszolni rá.
        </div>



    <?php else: ?>

        <h4 class="text-center alert alert-info">

            Ha valami nem tetszik az oldalon, vagy van rá ötleted mivel lehetne még jobbá varázsolni, ne habozz
            megosztani velünk!

        </h4>


        <div class="row">
            <div class="col-lg-2 text-center">
                <img style="" class="img-responsive" src="/images/thinking.jpg" alt=""/>
            </div>
            <div class="col-lg-10 col-sm-12">
                <?php $form = ActiveForm::begin(['type' => ActiveForm::TYPE_VERTICAL, 'id' => 'contact-form']);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 2,
                    'attributes' => [
                        'name'  => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Név...']],
                        'email' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'E-mail...']],
                    ]

                ]);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 1,
                    'attributes' => [
                        'subject' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Tárgy...']],
                    ]

                ]);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 1,
                    'attributes' => [
                        'body' => ['type' => Form::INPUT_TEXTAREA, 'options' => ['placeholder' => 'Üzenet...']],
                    ]

                ]);

                ?>

                <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
                    'template' => '<div class="row"><div class="col-lg-3 text-right">{image}</div><div class="col-lg-3">{input}</div></div>',
                ]) ?>
                <div class="form-group">
                    <?= Html::submitButton('Elküldöm', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
                </div>
                <?php ActiveForm::end(); ?>
            </div>

        </div><commit_msg>resolved #54 Technikai problémák jelentése<commit_after><?php
/**
 * Created: <NAME>
 * Date: 2015.10.07.
 * Time: 11:27
 */

use yii\helpers\Html;
//use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

use kartik\form\ActiveForm;
use kartik\builder\Form;


/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\ContactForm */

$this->title = 'Ötletbörze';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-contact">


    <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?>

        <div class="alert alert-success">
            Köszönjük az üzenetét! Igyekszünk mihamarabb válaszolni rá.
        </div>



    <?php else: ?>

        <h4 class="text-center alert alert-info">

            Ha valami nem tetszik az oldalon, vagy van rá ötleted mivel lehetne még jobbá varázsolni, ne habozz
            megosztani velünk!

        </h4>


        <div class="row">
            <div class="col-lg-2 text-center">
                <img style="" class="img-responsive" src="/images/thinking.jpg" alt=""/>
            </div>
            <div class="col-lg-10 col-sm-12">
                <?php $form = ActiveForm::begin(['type' => ActiveForm::TYPE_VERTICAL, 'id' => 'contact-form']);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 2,
                    'attributes' => [
                        'name'  => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Név...']],
                        'email' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'E-mail...']],
                    ]

                ]);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 1,
                    'attributes' => [
                        'subject' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Cím...']],
                    ]

                ]);

                echo Form::widget([
                    'model'      => $model,
                    'form'       => $form,
                    'columns'    => 1,
                    'attributes' => [
                        'body' => ['type' => Form::INPUT_TEXTAREA, 'options' => ['placeholder' => 'Üzenet...']],
                    ]

                ]);

                ?>

                <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
                    'template' => '<div class="row"><div class="col-lg-3 text-right">{image}</div><div class="col-lg-3">{input}</div></div>',
                ]) ?>
                <div class="form-group">
                    <?= Html::submitButton('Elküldöm', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
                </div>
                <?php ActiveForm::end(); ?>
            </div>

        </div>
{'fraction_non_alphanumeric': 0.18167938931297709, 'fraction_numerical': 0.008481764206955046, 'mean_word_length': 1.4804375262936476, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2936042', 'n_tokens_mistral': 1838, 'n_tokens_neox': 1713, 'n_words': 331}