bludit/bl-kernel/admin/views/user-password.php

56 lines
1.2 KiB
PHP
Raw Normal View History

2015-11-07 01:23:50 +01:00
<?php
2018-05-15 20:12:15 +02:00
echo Bootstrap::pageTitle(array('title'=>$L->g('Change password'), 'icon'=>'person'));
2015-11-07 01:23:50 +01:00
2018-05-15 20:12:15 +02:00
echo Bootstrap::formOpen(array());
2015-11-07 01:23:50 +01:00
2018-05-15 20:12:15 +02:00
echo Bootstrap::formInputHidden(array(
2015-11-07 01:23:50 +01:00
'name'=>'tokenCSRF',
'value'=>$security->getTokenCSRF()
2015-11-07 01:23:50 +01:00
));
2018-05-15 20:12:15 +02:00
echo Bootstrap::formInputHidden(array(
2015-11-07 01:23:50 +01:00
'name'=>'username',
2018-05-15 20:12:15 +02:00
'value'=>$user->username()
2015-11-07 01:23:50 +01:00
));
2018-05-15 20:12:15 +02:00
echo Bootstrap::formInputText(array(
'name'=>'usernameDisabled',
2015-11-07 01:23:50 +01:00
'label'=>$L->g('Username'),
2018-05-15 20:12:15 +02:00
'value'=>$user->username(),
'class'=>'',
'placeholder'=>'',
2015-11-07 01:23:50 +01:00
'disabled'=>true,
'tip'=>''
));
2018-05-15 20:12:15 +02:00
echo Bootstrap::formInputText(array(
'name'=>'newPassword',
2015-11-07 01:23:50 +01:00
'label'=>$L->g('New password'),
2018-05-15 20:12:15 +02:00
'type'=>'password',
2015-11-07 01:23:50 +01:00
'value'=>'',
2018-05-15 20:12:15 +02:00
'class'=>'',
'placeholder'=>'',
2015-11-07 01:23:50 +01:00
'tip'=>''
));
2018-05-15 20:12:15 +02:00
echo Bootstrap::formInputText(array(
'name'=>'confirmPassword',
'label'=>$L->g('Confirm new password'),
'type'=>'password',
2015-11-07 01:23:50 +01:00
'value'=>'',
2018-05-15 20:12:15 +02:00
'class'=>'',
'placeholder'=>'',
2015-11-07 01:23:50 +01:00
'tip'=>''
));
2018-05-15 20:12:15 +02:00
echo '
<div class="form-group mt-4">
<button type="submit" class="btn btn-primary mr-2" name="save">'.$L->g('Save').'</button>
<a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$user->username().'" role="button">'.$L->g('Cancel').'</a>
2018-05-15 20:12:15 +02:00
</div>
';
2015-11-07 01:23:50 +01:00
2018-05-15 20:12:15 +02:00
echo Bootstrap::formClose();
2015-11-07 01:23:50 +01:00
2018-05-15 20:12:15 +02:00
?>