Code

Added select all checkbox
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 May 2007 13:18:32 +0000 (13:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 May 2007 13:18:32 +0000 (13:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6349 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js
setup/setup_migrate.tpl

index 874b3ff28cb139f9f89131fd68fd827303344631..14452204ccf21387707ae4ebbba5c48faf4d7512 100644 (file)
@@ -15,6 +15,12 @@ for (iln = 0; iln < len; iln++){
 }
 netscape= (ver.charAt(iln+1).toUpperCase() != "C");
 
+function toggle_all_(regex,state_object)
+{
+    state = document.getElementById(state_object).checked;
+    chk_set_all(regex, state);
+}
+
 
 /* Toggle checkbox that matches regex */
 function chk_set_all(regex,value)
index a20675eb99a5d6e2135b2c5d6f33acf9663dc8ba..5f94ddcbcb4a93dd73f6b970b4e385099df9a74c 100644 (file)
@@ -61,8 +61,8 @@
                                {/if}
                                <br>
                        {/foreach}
-                       <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_winstation_',true)">
-                       <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_winstation_',false)">
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_winstation_','toggle_calue')">
+                       {t}Select all{/t}
                        <p>
                        <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
                        <select name='move_winstation_to'>
                                {/if}
                                <br>
                        {/foreach}
-
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
+                       &nbsp;{t}Select all{/t}
                        <p>
-                               <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_group_',true)">
-                               <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_group_',false)">
                         {if $group_details}
                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
                         {else}
                                {/if}
                                <br>
                        {/foreach}
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
+                       &nbsp;{t}Select all{/t}
                        <br>
-                       <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_user_',true)">
-                       <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_user_',false)">
 
                        {if $user_details}
                        <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
@@ -289,12 +288,11 @@ dn: {$deps_to_migrate.$key.dn}
                                        {$deps_to_migrate.$key.dn}
                                {/if}
                                
-
+                       <br>
                        {/foreach}
-
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
-                       <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
-                       <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
 
                        {if $deps_details}
                        <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
@@ -343,14 +341,11 @@ dn: {$users_to_migrate.$key.dn}
                                        <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
                                        {$users_to_migrate.$key.dn}
                                {/if}
-
                                <br>
-                               
-
                        {/foreach}
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
-            <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
-            <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
 
                        {if $user_details}
                        <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>