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

67 lines
1.7 KiB
PHP
Raw Permalink Normal View History

<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
2015-10-19 00:45:58 +02:00
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'tab-content')); ?>
2015-10-19 00:45:58 +02: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')); ?>
</div>
2015-10-19 00:45:58 +02:00
<?php
echo Bootstrap::formInputHidden(array(
2015-10-20 05:14:28 +02:00
'name'=>'tokenCSRF',
'value'=>$security->getTokenCSRF()
2015-10-19 00:45:58 +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']:''),
'class'=>'',
'placeholder'=>'',
2015-10-19 00:45:58 +02:00
'tip'=>''
));
echo Bootstrap::formInputText(array(
2015-11-07 01:23:50 +01:00
'name'=>'new_password',
'type'=>'password',
2015-10-19 00:45:58 +02:00
'label'=>$L->g('Password'),
'value'=>'',
'class'=>'',
'placeholder'=>'',
2015-10-19 00:45:58 +02:00
'tip'=>''
));
echo Bootstrap::formInputText(array(
2015-11-07 01:23:50 +01:00
'name'=>'confirm_password',
'type'=>'password',
2015-10-19 00:45:58 +02:00
'label'=>$L->g('Confirm Password'),
'value'=>'',
'class'=>'',
'placeholder'=>'',
2015-10-19 00:45:58 +02:00
'tip'=>''
));
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',
'class'=>'',
2019-06-16 22:31:48 +02:00
'tip'=>$L->g('author-can-write-and-edit-their-own-content')
2015-10-19 00:45:58 +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']:''),
'class'=>'',
'placeholder'=>'',
2015-10-19 00:45:58 +02:00
'tip'=>''
));
?>
2015-10-19 00:45:58 +02:00
<?php echo Bootstrap::formClose(); ?>