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

60 lines
1.4 KiB
PHP
Raw Normal View History

2015-10-19 00:45:58 +02:00
<?php
HTML::title(array('title'=>$L->g('Add a new user'), 'icon'=>'user-plus'));
2015-11-07 01:23:50 +01:00
HTML::formOpen(array('id'=>'add-user-form', 'class'=>'uk-form-horizontal'));
2015-10-19 00:45:58 +02:00
// Security token
HTML::formInputHidden(array(
2015-10-20 05:14:28 +02:00
'name'=>'tokenCSRF',
'value'=>$Security->getTokenCSRF()
2015-10-19 00:45:58 +02:00
));
HTML::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']:''),
2015-10-19 00:45:58 +02:00
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
HTML::formInputPassword(array(
2015-11-07 01:23:50 +01:00
'name'=>'new_password',
2015-10-19 00:45:58 +02:00
'label'=>$L->g('Password'),
'value'=>'',
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
HTML::formInputPassword(array(
2015-11-07 01:23:50 +01:00
'name'=>'confirm_password',
2015-10-19 00:45:58 +02:00
'label'=>$L->g('Confirm Password'),
'value'=>'',
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
HTML::formSelect(array(
'name'=>'role',
'label'=>$L->g('Role'),
'options'=>array('editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')),
'selected'=>'editor',
'tip'=>''
));
HTML::formInputText(array(
'name'=>'email',
'label'=>$L->g('Email'),
'value'=>(isset($_POST['email'])?$_POST['email']:''),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
<a href="'.HTML_PATH_ADMIN_ROOT.'users" class="uk-button">'.$L->g('Cancel').'</a>
</div>
</div>';
2016-09-19 09:43:06 +02:00
HTML::formClose();