|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<h2>Connexion</h2> |
|
|
<h2>Connexion</h2> |
|
|
<?php $form = ActiveForm::begin(['id' => 'login-form','enableClientValidation'=> false]); ?> |
|
|
<?php $form = ActiveForm::begin(['id' => 'login-form','enableClientValidation'=> false]); ?> |
|
|
<?= $form->field($model_login, 'email') ?> |
|
|
|
|
|
<?= $form->field($model_login, 'password')->passwordInput() ?> |
|
|
|
|
|
<?= $form->field($model_login, 'rememberMe')->checkbox() ?> |
|
|
|
|
|
|
|
|
<?= $form->field($loginForm, 'email') ?> |
|
|
|
|
|
<?= $form->field($loginForm, 'password')->passwordInput() ?> |
|
|
|
|
|
<?= $form->field($loginForm, 'rememberMe')->checkbox() ?> |
|
|
<p> |
|
|
<p> |
|
|
Si vous avez oublié votre mot de passe, vous pouvez le <?= Html::a('réinitialiser', ['site/request-password-reset']) ?>. |
|
|
Si vous avez oublié votre mot de passe, vous pouvez le <?= Html::a('réinitialiser', ['site/request-password-reset']) ?>. |
|
|
</p> |
|
|
</p> |
|
|
<?php if(strlen($producer->code)): ?> |
|
|
<?php if(strlen($producer->code)): ?> |
|
|
<?= $form->field($modelLogin, 'code',[ |
|
|
|
|
|
|
|
|
<?= $form->field($loginForm, 'code',[ |
|
|
'inputTemplate' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>{input}</div>', |
|
|
'inputTemplate' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>{input}</div>', |
|
|
]) |
|
|
]) |
|
|
->label('Code du producteur') |
|
|
->label('Code du producteur') |
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<h2>Inscription</h2> |
|
|
<h2>Inscription</h2> |
|
|
<?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?> |
|
|
<?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?> |
|
|
<?= $form->field($model_signup, 'email') ?> |
|
|
|
|
|
<?= $form->field($model_signup, 'password')->passwordInput() ?> |
|
|
|
|
|
<?= $form->field($model_signup, 'lastname') ?> |
|
|
|
|
|
<?= $form->field($model_signup, 'name') ?> |
|
|
|
|
|
<?= $form->field($model_signup, 'phone') ?> |
|
|
|
|
|
|
|
|
<?= $form->field($signupForm, 'email') ?> |
|
|
|
|
|
<?= $form->field($signupForm, 'password')->passwordInput() ?> |
|
|
|
|
|
<?= $form->field($signupForm, 'lastname') ?> |
|
|
|
|
|
<?= $form->field($signupForm, 'name') ?> |
|
|
|
|
|
<?= $form->field($signupForm, 'phone') ?> |
|
|
|
|
|
|
|
|
<?php if(strlen($producer->code)): ?> |
|
|
<?php if(strlen($producer->code)): ?> |
|
|
<?= $form->field($modelSignup, 'code',[ |
|
|
|
|
|
|
|
|
<?= $form->field($signupForm, 'code',[ |
|
|
'inputTemplate' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>{input}</div>', |
|
|
'inputTemplate' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>{input}</div>', |
|
|
]) |
|
|
]) |
|
|
->label('Code du producteur') |
|
|
->label('Code du producteur') |