summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_groupmanager.php
diff options
context:
space:
mode:
authorbruno <bruno.stein@bluepex.com>2014-11-13 10:03:45 -0200
committerbruno <bruno.stein@bluepex.com>2014-11-13 10:03:45 -0200
commita65c5a998fb45c3377deaeffce45148e983dd527 (patch)
tree5683c054086957d8502c86726c35f9fdc550cf10 /usr/local/www/system_groupmanager.php
parentc0c5b8cc8a6505c5d0a9f29914a107b3da04af36 (diff)
downloadpfsense-a65c5a998fb45c3377deaeffce45148e983dd527.zip
pfsense-a65c5a998fb45c3377deaeffce45148e983dd527.tar.gz
add checkbox on the left side of the table and remove checkall checkbox
Diffstat (limited to 'usr/local/www/system_groupmanager.php')
-rw-r--r--usr/local/www/system_groupmanager.php27
1 files changed, 13 insertions, 14 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php
index 7e8fc47..736fcfa 100644
--- a/usr/local/www/system_groupmanager.php
+++ b/usr/local/www/system_groupmanager.php
@@ -206,16 +206,10 @@ include("head.inc");
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?>
+<script type="text/javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript">
//<![CDATA[
-function checkall_checkbox(checked) {
- var cbs = document.getElementsByName('delete_check[]');
- if (cbs != null)
- for (var i = 0; i < cbs.length; i++)
- cbs[i].checked = checked;
-}
-
function setall_selected(id) {
selbox = document.getElementById(id);
count = selbox.options.length;
@@ -473,6 +467,7 @@ function presubmit() {
<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<thead>
<tr>
+ <th width="5%" class="list">&nbsp;</th>
<th width="25%" class="listhdrr"><?=gettext("Group name");?></th>
<th width="25%" class="listhdrr"><?=gettext("Description");?></th>
<th width="30%" class="listhdrr"><?=gettext("Member Count");?></th>
@@ -481,7 +476,7 @@ function presubmit() {
</thead>
<tfoot>
<tr>
- <td class="list" colspan="3"></td>
+ <td class="list" colspan="4"></td>
<td class="list">
<input type="image" name="addcert" width="17" height="17" border="0"
src="/themes/<?=$g['theme'];?>/images/icons/icon_plus.gif"
@@ -491,7 +486,7 @@ function presubmit() {
</td>
</tr>
<tr>
- <td colspan="3">
+ <td colspan="4">
<p>
<?=gettext("Additional webConfigurator groups can be added here.
Group permissions can be assigned which are inherited by users who are members of the group.
@@ -515,8 +510,13 @@ function presubmit() {
?>
<tr ondblclick="document.getElementById('act').value='<?php echo "edit";?>';
document.getElementById('groupid').value='<?=$i;?>';
- document.iform2.submit();">
- <td class="listlr">
+ document.iform2.submit();" id="fr<?=$i?>">
+ <td class="list" id="frd<?=$i?>">
+ <?php if($group['scope'] != "system") : ?>
+ <input type="checkbox" id="frc<?=$i?>" onclick="fr_bgcolor(<?=$i?>)" name="delete_check[]" value="<?=$i?>" />
+ <?php endif; ?>
+ </td>
+ <td class="listlr" id="frd<?=$i?>" onclick="fr_toggle(<?=$i?>)">
<table border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td align="left" valign="middle">
@@ -528,10 +528,10 @@ function presubmit() {
</tr>
</table>
</td>
- <td class="listr">
+ <td class="listr" id="frd<?=$i?>" onclick="fr_toggle(<?=$i?>)">
<?=htmlspecialchars($group['description']);?>&nbsp;
</td>
- <td class="listbg">
+ <td class="listbg" onclick="fr_toggle(<?=$i?>)">
<?=$groupcount;?>
</td>
<td valign="middle" class="list nowrap">
@@ -551,7 +551,6 @@ function presubmit() {
document.getElementById('act').value='<?php echo "delgroup";?>';
return confirm('<?=gettext("Do you really want to delete this group?");?>');"
title="<?=gettext("delete group");?>" />
- <input type='checkbox' id='check_<?=$i?>' name='delete_check[]' value='<?=$i?>' />
<?php
endif;
?>
OpenPOWER on IntegriCloud