mirror of
https://github.com/unraid/webgui.git
synced 2026-01-15 06:00:14 -06:00
Fixed page references when Users menu is under Settings
This commit is contained in:
@@ -139,5 +139,5 @@ Retype password:
|
||||
: <input type="password" name="userPasswordConf" maxlength="40" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userPassword.value!=this.form.userPasswordConf.value);">
|
||||
|
||||
|
||||
: <input type="submit" name="cmdUserEdit" value="Add"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="cmdUserEdit" value="Add"><input type="button" value="Done" onclick="done('UserAdd')">
|
||||
</form>
|
||||
|
||||
@@ -132,7 +132,7 @@ Custom image:
|
||||
<?else:?>
|
||||
Delete<input type="checkbox" name="confirmDelete" onChange="chkDelete(this.form, this.form.cmdUserEdit)">
|
||||
<?endif;?>
|
||||
: <input type="submit" name="cmdUserEdit" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="cmdUserEdit" value="Apply"><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
</form>
|
||||
<br><br>
|
||||
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
|
||||
@@ -144,5 +144,5 @@ Retype password:
|
||||
: <input type="password" name="userPasswordConf" maxlength="40" onKeyUp="this.form.cmdUserEdit.disabled = (this.form.userPassword.value != this.form.userPasswordConf.value);">
|
||||
|
||||
|
||||
: <input type="submit" name="cmdUserEdit" value="Change"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="cmdUserEdit" value="Change"><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
</form>
|
||||
|
||||
@@ -13,15 +13,15 @@ Title="Users"
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
|
||||
<?
|
||||
$submenu = !empty($display['users']) && substr($display['users'],0,5)!='Tasks';
|
||||
if ($submenu) $path = '/Settings/Users';
|
||||
?>
|
||||
<?foreach ($users as $user):?>
|
||||
<?$img = "/boot/config/plugins/dynamix/users/{$user['name']}.png"?>
|
||||
<div class="user-list"><center><a class="<?=(!empty($user['desc']) ? 'info' : '')?>" href="<?=$path?>/UserEdit?name=<?=$user['name'];?>"><img src="<?=(file_exists($img) ? autov($img) : '/webGui/images/user.png')?>" class="picture" border="0" width="48" height="48"><br><?=$user['name']?><span><?=$user['desc']?></span></a></center></div>
|
||||
<?endforeach;?>
|
||||
<div style='clear:both'></div>
|
||||
<form method="GET" action="<?=$path?>/UserAdd">
|
||||
<input type="submit" value="Add User">
|
||||
<?if (!empty($display['users']) && substr($display['users'],0,5)!='Tasks'):?>
|
||||
<input type="button" value="Done" onclick="done()">
|
||||
<?endif;?>
|
||||
<input type="submit" value="Add User"><?if ($submenu):?><input type="button" value="Done" onclick="done()"><?endif;?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user