ZwiiCMS/core/module/user/view/login/login.php

55 lines
1.8 KiB
PHP
Raw Normal View History

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="col8">
2022-09-29 08:45:59 +02:00
<?php echo template::checkbox('userLoginLongTime', true, 'Rester connecté sur ce navigateur', [
'checked' => $module::$userLongtime
]); ?>
</div>
<div class="col4 textAlignRight">
2023-02-19 17:42:02 +01:00
<a href="<?php echo helper::baseUrl(); ?>user/forgot/<?php echo $this->getUrl(2);?>"><?php echo helper::translate('Mot de passe perdu'); ?></a>
2022-09-29 08:45:59 +02:00
</div>
</div>
<div class="row">
<div class="col2">
<?php echo template::button('userLoginBack', [
2022-10-19 14:33:31 +02:00
'href' => $this->getUrl(2) ? helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))) : helper::baseUrl(),
2022-09-29 08:45:59 +02:00
'value' => template::ico('left')
]); ?>
</div>
<div class="col3 offset7">
<?php echo template::submit('userLoginSubmit', [
2022-10-26 16:24:28 +02:00
'value' => 'Connexion',
'ico' => ''
2022-09-29 08:45:59 +02:00
]); ?>
</div>
</div>
2018-04-02 08:29:19 +02:00
<?php echo template::formClose(); ?>