diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-18 13:20:18 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-18 13:20:18 +0100 |
commit | 295ff120716abee4eac32d59666e07afac3fe593 (patch) | |
tree | 10d7bca3bbc490a3c8c472bcd1f525e002cc0237 /usr/local/www/system_gateways.php | |
parent | e9df576978ea476730c155c14db742f0ea21e775 (diff) | |
download | pfsense-295ff120716abee4eac32d59666e07afac3fe593.zip pfsense-295ff120716abee4eac32d59666e07afac3fe593.tar.gz |
Disable the delete icon for system gateways
Set the background for the description to grey if this is a automatically added gateway. Normal ones stay red.
Diffstat (limited to 'usr/local/www/system_gateways.php')
-rwxr-xr-x | usr/local/www/system_gateways.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index f73357f..f21216a 100755 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -160,14 +160,25 @@ effect.");?><br> <td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> <?=htmlspecialchars($gateway['monitor']);?> </td> - <td class="listbg" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> + <?php if($gateway['attribute'] == "system") : ?> + <td class="listbgns" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> + <?php else : ?> + <td class="listbgr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> + <?php endif; ?> <?=htmlspecialchars($gateway['descr']);?> </td> + <td valign="middle" nowrap class="list"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td><a href="system_gateways_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> - <td><a href="system_gateways.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this gateway?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <?php + if ($gateway['attribute'] != "system") : ?> + <td><a href="system_gateways.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this +gateway?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <?php else : ?> + <td width='17'></td> + <?php endif; ?> </tr> <tr> <td width="17"></td> |