Przeglądaj źródła

Merge branch 'develop'

master
Guillaume Bourgeois 1 rok temu
rodzic
commit
f7cfba492d
2 zmienionych plików z 5 dodań i 4 usunięć
  1. +2
    -2
      producer/controllers/SiteController.php
  2. +3
    -2
      producer/views/site/contact.php

+ 2
- 2
producer/controllers/SiteController.php Wyświetl plik

@@ -181,7 +181,7 @@ class SiteController extends ProducerBaseController
$model = new ContactForm();
$producer = $this->getProducerCurrent();

if ($model->load(\Yii::$app->request->post()) && $model->validate()) {
/*if ($model->load(\Yii::$app->request->post()) && $model->validate()) {
$isSent = false;
if (is_array($producer->contact)) {
$email = $this->getProducerModule()->getMainContactEmail($producer);
@@ -197,7 +197,7 @@ class SiteController extends ProducerBaseController
}

$model = new ContactForm();
}
}*/

return $this->render('contact', [
'model' => $model,

+ 3
- 2
producer/views/site/contact.php Wyświetl plik

@@ -44,7 +44,8 @@ $this->setTitle('Contact');

?>
<div class="site-contact">
<div class="row">
<div class="alert alert-warning">Page en maintenance</div>
<!--<div class="row">
<div class="col-lg-5">
<?php $form = ActiveForm::begin(['id' => 'contact-form', 'enableClientValidation' => false,]); ?>
<?= $form->field($model, 'name') ?>
@@ -61,5 +62,5 @@ $this->setTitle('Contact');
</div>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>-->
</div>

Ładowanie…
Anuluj
Zapisz