瀏覽代碼

Merge branch 'dev'

prodstable
Guillaume 2 年之前
父節點
當前提交
92c36a8274
共有 2 個文件被更改,包括 8 次插入5 次删除
  1. +2
    -2
      frontend/controllers/SiteController.php
  2. +6
    -3
      frontend/views/site/signup.php

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

@@ -250,7 +250,7 @@ class SiteController extends FrontendController
public function actionSignup()
{
$model = new SignupForm();
if ($model->load(Yii::$app->request->post())) {
/*if ($model->load(Yii::$app->request->post())) {
$user = $model->signup();
if ($user) {
if (Yii::$app->getUser()->login($user)) {
@@ -266,7 +266,7 @@ class SiteController extends FrontendController
}
}
}
}
}*/

// liste des établissements disponibles
$producersArray = Producer::getProducerPopulateDropdown();

+ 6
- 3
frontend/views/site/signup.php 查看文件

@@ -49,9 +49,12 @@ $this->setMeta('description', 'Inscrivez-vous afin de profiter des fonctionnalit
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-signup">

<h1 class="title-system-order"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<?= Html::encode($this->title) ?></h1>
<div class="row">

<div class="alert alert-warning">Inscription momentanément désactivée</div>

<!--<div class="row">
<div class="col-lg-5">
<?php if(YII_ENV == 'demo'): ?>
<div class="alert alert-warning">
@@ -112,7 +115,7 @@ $this->params['breadcrumbs'][] = $this->title;
</div>
</div>
</div>-->
</div>

<!-- CGV -->

Loading…
取消
儲存