User delete functionality
This commit is contained in:
parent
cb10fe5218
commit
f075b16e86
|
@ -31,10 +31,8 @@
|
|||
<input type="text" name="lastName" class="width-50" value="<?php echo $_user['lastName'] ?>">
|
||||
</label>
|
||||
|
||||
<?php
|
||||
if($Login->username()==='admin')
|
||||
{
|
||||
?>
|
||||
<?php if($Login->username()==='admin') { ?>
|
||||
|
||||
<label for="role">
|
||||
<?php $Language->p('Role') ?>
|
||||
<select name="role" class="width-50">
|
||||
|
@ -47,9 +45,9 @@
|
|||
</select>
|
||||
<div class="forms-desc"><?php $Language->p('you-can-choose-the-users-privilege') ?></div>
|
||||
</label>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<input type="submit" class="btn btn-blue" value="<?php $Language->p('Save') ?>" name="user-profile">
|
||||
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a>
|
||||
</form>
|
||||
|
@ -109,13 +107,13 @@
|
|||
<form method="post" action="" class="forms">
|
||||
<input type="hidden" name="delete-user-all" value="true">
|
||||
<input type="hidden" name="username" value="<?php echo $_user['username'] ?>">
|
||||
<p><input type="submit" class="btn btn-blue" value="Delete the user and all your content"></p>
|
||||
<p><input type="submit" class="btn btn-blue" value="<?php $Language->p('Delete the user and all its posts') ?>"></p>
|
||||
</form>
|
||||
|
||||
<form method="post" action="" class="forms">
|
||||
<input type="hidden" name="delete-user-associate" value="true">
|
||||
<input type="hidden" name="username" value="<?php echo $_user['username'] ?>">
|
||||
<p><input type="submit" class="btn btn-blue" value="Delete the user and the content associate to admin user"></p>
|
||||
<p><input type="submit" class="btn btn-blue" value="<?php $Language->p('Delete the user and associate its posts to admin user') ?>"></p>
|
||||
</form>
|
||||
|
||||
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a>
|
||||
|
|
|
@ -123,5 +123,7 @@
|
|||
"you-can-modify-the-url-which-identifies":"You can modify the URL which identifies a page or post using human-readable keywords. No more than 150 characters.",
|
||||
"this-field-can-help-describe-the-content": "This field can help describe the content in a few words. No more than 150 characters.",
|
||||
"write-the-tags-separeted-by-comma": "Write the tags separeted by comma. eg: tag1, tag2, tag3",
|
||||
"delete": "Delete"
|
||||
"delete": "Delete",
|
||||
"delete-the-user-and-all-its-posts":"Delete the user and all its posts",
|
||||
"delete-the-user-and-associate-its-posts-to-admin-user": "Delete the user and associate its posts to admin user"
|
||||
}
|
Loading…
Reference in New Issue