|
- <?php
-
-
-
- use domain\Producer\Producer\ProducerModule;
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
- use yii\captcha\Captcha;
-
- $producerModule = ProducerModule::getInstance();
-
- $this->setTitle('Contact');
- $this->setMeta('description', $producerModule->getSeoGenerator()->generateMetaDescriptionContact());
-
- ?>
- <div class="site-contact">
- <div class="row">
- <div class="col-lg-6">
- <?php $form = ActiveForm::begin(['id' => 'contact-form', 'enableClientValidation' => false,]); ?>
- <?= $form->field($model, 'name') ?>
- <?= $form->field($model, 'email') ?>
- <?= $form->field($model, 'subject') ?>
- <?= $form->field($model, 'body')->textArea(['rows' => 6]) ?>
- <?= $form->field($model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className())->label('') ?>
- <?= $form->field($model, 'isTest')->hiddenInput() ?>
- <div class="form-group form-buttons">
- <?= Html::submitButton('<i class="bi bi-send"></i> Envoyer', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- <div class="col-lg-6">
- <br />
- <div class="card">
- <div class="card-body">
- <h5 class="card-title">
- <i class="bi bi-geo-alt"></i>
- Adresse
- </h5>
- <div class="card-text">
- <strong><?= Html::encode($producer->name); ?></strong><br />
- <?= nl2br(Html::encode($producer->address)); ?><br />
- <?= Html::encode($producer->postcode); ?> <?= Html::encode($producer->city); ?><br />
- </div>
- </div>
- </div>
-
- <?php if($producer->website): ?>
- <br />
- <br />
- <a href="<?= Html::encode($producer->website); ?>" target="_blank" class="btn btn-secondary">
- <i class="bi bi-globe"></i>
- Site web
- </a>
- <?php endif; ?>
- </div>
- </div>
- </div>
|