Deltacms/core/module/user/view/forgot/forgot.php

35 lines
809 B
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php echo template::formOpen('userForgotForm');
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Identifiant';
$text[1] = 'Retour';
$text[2] = 'Valider';
break;
case 'en' :
$text[0] = 'Identifier';
$text[1] = 'Back';
$text[2] = 'Validate';
break;
}
?>
2022-01-31 09:10:49 +01:00
<?php echo template::text('userForgotId', [
2022-03-06 13:35:21 +01:00
'label' => $text[0]
2022-01-31 09:10:49 +01:00
]); ?>
<div class="row">
<div class="col3 offset6">
<?php echo template::button('userForgotBack', [
'href' => helper::baseUrl() . 'user/login/' . $this->getUrl(2),
'ico' => 'left',
2022-03-06 13:35:21 +01:00
'value' => $text[1]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col3">
<?php echo template::submit('userForgotSubmit', [
2022-03-06 13:35:21 +01:00
'value' => $text[2]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>