Code

Added select all buttons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 May 2007 13:35:06 +0000 (13:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 May 2007 13:35:06 +0000 (13:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6310 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Migrate.inc
setup/setup_migrate.tpl

index 28dc33c92cbae9bb1f31d135f47b22ed20efa3f8..41d2a4850ca119367b2d1963684049cc192ed787 100644 (file)
@@ -1302,6 +1302,7 @@ class Step_Migrate extends setup_step
     /* Refresh list of deparments */
     if(isset($_POST['deps_visible_migrate_refresh'])){
       $this->check_organizationalUnits();
+      $this->show_details= FALSE;
     }
 
     /* Open migration dialog */
index e3873f8b237e46dced553e2767e1c60c3dc336d9..e2f5dd34ae51b840459683794f47c31754ef989c 100644 (file)
@@ -44,9 +44,9 @@
 
                        {foreach from=$outside_winstations item=val key=key}
                                {if $outside_winstations.$key.selected}
-                                       <input type='checkbox' name='select_winstation_{$key}' checked>
+                                       <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}' checked>
                                {else}
-                                       <input type='checkbox' name='select_winstation_{$key}'>
+                                       <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}'>
                                {/if}
 
                                &nbsp;{$outside_winstations.$key.dn}
@@ -61,7 +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)">
                        <p>
                        <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
                        <select name='move_winstation_to'>
@@ -98,9 +99,9 @@
 
                        {foreach from=$outside_groups item=val key=key}
                                {if $outside_groups.$key.selected}
-                                       <input type='checkbox' name='select_group_{$key}' checked>
+                                       <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}' checked>
                                {else}
-                                       <input type='checkbox' name='select_group_{$key}'>
+                                       <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}'>
                                {/if}
 
                                &nbsp;{$outside_groups.$key.dn}
                        {/foreach}
 
                        <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}
                        </p>
                        {foreach from=$outside_users item=val key=key}
                                {if $outside_users.$key.selected}
-                                       <input type='checkbox' name='select_user_{$key}' checked>
+                                       <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
                                {else}
-                                       <input type='checkbox' name='select_user_{$key}'>
+                                       <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
                                {/if}
 
                                &nbsp;{$outside_users.$key.dn}
                                <br>
                        {/foreach}
                        <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}'>
                         {else}
                        {foreach from=$deps_to_migrate item=val key=key}
 
                                {if $deps_to_migrate.$key.checked}
-                                       <input type='checkbox' name='migrate_{$key}' checked>
+                                       <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
                                        {$deps_to_migrate.$key.dn}
                                        {if $deps_to_migrate.$key.after != ""}
                                                <div class="step2_entry_container_info" id="sol_8">
@@ -303,7 +309,7 @@ dn: {$deps_to_migrate.$key.dn}
                                                </div>
                                        {/if}
                                {else}
-                                       <input type='checkbox' name='migrate_{$key}'>
+                                       <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
                                        {$deps_to_migrate.$key.dn}
                                {/if}
                                
@@ -311,6 +317,9 @@ dn: {$deps_to_migrate.$key.dn}
                        {/foreach}
 
                        <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}'>
                        {else}
@@ -333,7 +342,7 @@ dn: {$deps_to_migrate.$key.dn}
                        {foreach from=$users_to_migrate item=val key=key}
 
                                {if $users_to_migrate.$key.checked}
-                                       <input type='checkbox' name='migrate_{$key}' checked>
+                                       <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
                                        {$users_to_migrate.$key.dn}
                                        {if $users_to_migrate.$key.after != ""}
                                                <div class="step2_entry_container_info" id="sol_8">
@@ -355,7 +364,7 @@ dn: {$users_to_migrate.$key.dn}
                                                </div>
                                        {/if}
                                {else}
-                                       <input type='checkbox' name='migrate_{$key}'>
+                                       <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
                                        {$users_to_migrate.$key.dn}
                                {/if}
 
@@ -364,6 +373,8 @@ dn: {$users_to_migrate.$key.dn}
 
                        {/foreach}
                        <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}'>