|
|
@@ -54,14 +54,14 @@ $this->title = 'Producteur '.Html::encode($producer->name) ; |
|
|
|
<div class="col-md-6"> |
|
|
|
<h2>Connexion</h2> |
|
|
|
<?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> |
|
|
|
Si vous avez oublié votre mot de passe, vous pouvez le <?= Html::a('réinitialiser', ['site/request-password-reset']) ?>. |
|
|
|
</p> |
|
|
|
<?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>', |
|
|
|
]) |
|
|
|
->label('Code du producteur') |
|
|
@@ -76,14 +76,14 @@ $this->title = 'Producteur '.Html::encode($producer->name) ; |
|
|
|
<div class="col-md-6"> |
|
|
|
<h2>Inscription</h2> |
|
|
|
<?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)): ?> |
|
|
|
<?= $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>', |
|
|
|
]) |
|
|
|
->label('Code du producteur') |