Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 1 year ago
parent
commit
f7cfba492d
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      producer/controllers/SiteController.php
  2. +3
    -2
      producer/views/site/contact.php

+ 2
- 2
producer/controllers/SiteController.php View File

@@ -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 View File

@@ -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>

Loading…
Cancel
Save