Browse Source

Merge branch 'dev'

prodstable
Guillaume 2 years ago
parent
commit
92c36a8274
2 changed files with 8 additions and 5 deletions
  1. +2
    -2
      frontend/controllers/SiteController.php
  2. +6
    -3
      frontend/views/site/signup.php

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

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

@@ -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…
Cancel
Save