2018-11-07 15:40:22 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'tab-content')); ?>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<div class="align-middle">
|
|
|
|
<div class="float-right mt-1">
|
|
|
|
<button type="submit" class="btn btn-primary btn-sm" name="save"><?php $L->p('Save') ?></button>
|
|
|
|
<a class="btn btn-secondary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" role="button"><?php $L->p('Cancel') ?></a>
|
|
|
|
</div>
|
2019-05-18 11:54:39 +02:00
|
|
|
<?php echo Bootstrap::pageTitle(array('title'=>$L->g('Add a new user'), 'icon'=>'user')); ?>
|
2018-11-07 15:40:22 +01:00
|
|
|
</div>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
2015-10-20 05:14:28 +02:00
|
|
|
'name'=>'tokenCSRF',
|
2018-07-17 19:13:01 +02:00
|
|
|
'value'=>$security->getTokenCSRF()
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formInputText(array(
|
2015-11-07 01:23:50 +01:00
|
|
|
'name'=>'new_username',
|
2015-10-19 00:45:58 +02:00
|
|
|
'label'=>$L->g('Username'),
|
2015-11-07 01:23:50 +01:00
|
|
|
'value'=>(isset($_POST['new_username'])?$_POST['new_username']:''),
|
2018-04-27 20:36:43 +02:00
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
2015-10-19 00:45:58 +02:00
|
|
|
'tip'=>''
|
|
|
|
));
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formInputText(array(
|
2015-11-07 01:23:50 +01:00
|
|
|
'name'=>'new_password',
|
2018-04-27 20:36:43 +02:00
|
|
|
'type'=>'password',
|
2015-10-19 00:45:58 +02:00
|
|
|
'label'=>$L->g('Password'),
|
|
|
|
'value'=>'',
|
2018-04-27 20:36:43 +02:00
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
2015-10-19 00:45:58 +02:00
|
|
|
'tip'=>''
|
|
|
|
));
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formInputText(array(
|
2015-11-07 01:23:50 +01:00
|
|
|
'name'=>'confirm_password',
|
2018-04-27 20:36:43 +02:00
|
|
|
'type'=>'password',
|
2015-10-19 00:45:58 +02:00
|
|
|
'label'=>$L->g('Confirm Password'),
|
|
|
|
'value'=>'',
|
2018-04-27 20:36:43 +02:00
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
2015-10-19 00:45:58 +02:00
|
|
|
'tip'=>''
|
|
|
|
));
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formSelect(array(
|
2015-10-19 00:45:58 +02:00
|
|
|
'name'=>'role',
|
|
|
|
'label'=>$L->g('Role'),
|
2019-05-13 18:26:35 +02:00
|
|
|
'options'=>array('author'=>$L->g('Author'), 'editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')),
|
|
|
|
'selected'=>'Author',
|
2018-04-27 20:36:43 +02:00
|
|
|
'class'=>'',
|
2019-05-18 11:54:39 +02:00
|
|
|
'tip'=>'Author: Can write and edit his own content. Editor: Can write and edit the content of others.'
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo Bootstrap::formInputText(array(
|
2015-10-19 00:45:58 +02:00
|
|
|
'name'=>'email',
|
|
|
|
'label'=>$L->g('Email'),
|
|
|
|
'value'=>(isset($_POST['email'])?$_POST['email']:''),
|
2018-04-27 20:36:43 +02:00
|
|
|
'class'=>'',
|
|
|
|
'placeholder'=>'',
|
2015-10-19 00:45:58 +02:00
|
|
|
'tip'=>''
|
|
|
|
));
|
2018-11-07 15:40:22 +01:00
|
|
|
?>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-11-07 15:40:22 +01:00
|
|
|
<?php echo Bootstrap::formClose(); ?>
|