2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('userLoginForm'); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('userLoginId', [
|
|
|
|
'label' => 'Identifiant',
|
|
|
|
'value' => $module::$userId
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="col6">
|
|
|
|
<?php if ($this->getData(['config', 'connect', 'showPassword']) === true) {
|
|
|
|
$passwordLabel = '<span id="passwordLabel">Mot de passe</span><span id="passwordIcon">' . template::ico('eye') . '</span>';
|
|
|
|
} else {
|
|
|
|
$passwordLabel = 'Mot de passe';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php echo template::password('userLoginPassword', [
|
|
|
|
'label' => $passwordLabel
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<?php if ($this->getData(['config', 'connect', 'captcha'])) : ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="row">
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="col12 textAlignCenter">
|
|
|
|
<?php echo template::captcha('userLoginCaptcha', [
|
|
|
|
'limit' => $this->getData(['config', 'connect', 'captchaStrong']),
|
|
|
|
'type' => $this->getData(['config', 'connect', 'captchaType'])
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('userLoginLongTime', true, 'Rester connecté sur ce navigateur', [
|
|
|
|
'checked' => $module::$userLongtime
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6 textAlignRight">
|
|
|
|
<a href="<?php echo helper::baseUrl(); ?>user/forgot/<?php echo $this->getUrl(2); ?>">Mot de passe perdu ?</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('userLoginBack', [
|
|
|
|
'href' => helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))),
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3 offset7">
|
|
|
|
<?php echo template::submit('userLoginSubmit', [
|
|
|
|
'value' => 'Connexion'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formClose(); ?>
|