浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 1年前
父节点
当前提交
f7cfba492d
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. +2
    -2
      producer/controllers/SiteController.php
  2. +3
    -2
      producer/views/site/contact.php

+ 2
- 2
producer/controllers/SiteController.php 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存