|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
-
-
-
- use common\logic\Config\TaxRate\Model\TaxRate;
- use common\logic\User\User\Wrapper\UserManager;
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
- use yii\helpers\ArrayHelper;
-
- $this->setTitle('Inscription') ;
- $this->setMeta('description', 'Inscrivez-vous afin de profiter des fonctionnalités de la plateforme.');
- $this->params['breadcrumbs'][] = $this->title;
-
- $userManager = UserManager::getInstance();
- $urlRedirect = null;
- if($userManager->isProducer($user)) {
- $urlRedirect = $this->getUrlManagerBackend()->createAbsoluteUrl(['site/index']);
- $redirectLabel = "Redirection vers votre tableau de bord ...";
- }
- elseif($producerRedirect) {
- $urlRedirect = $this->getUrlManagerProducer()->createAbsoluteUrl(['site/index', 'slug_producer' => $producerRedirect->slug]);
- $redirectLabel = "Redirection vers l'espace de votre producteur ...";
- }
-
- ?>
- <div class="site-signup-confirm">
- <h1 class="title-system-order"><span class="glyphicon glyphicon-check"></span> Inscription confirmée</h1>
- <div class="alert alert-success">
- Votre inscription a bien été prise en compte.
- </div>
-
- <?php if($urlRedirect): ?>
- <p><?= $redirectLabel ?></p>
- <script>
- window.setTimeout(function(){
- window.location.href = "<?= $urlRedirect ?>";
- }, 3000);
- </script>
- <?php endif; ?>
- </div>
|