Code

Updated migration
[gosa.git] / setup / setup_migrate.tpl
index cc59d6ee70097899d606601f8948d7ad2585aacc..a1652162b9a68c031e19f277660349369f0faf8f 100644 (file)
@@ -15,7 +15,7 @@
                                 <!-- Normal entry everything is fine -->
                                 <div class='step2_entry_container'>
                         {/if}
-                               <div class='step2_entry_name'>{$checks.$key.TITLE}</div>
+                               <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
                                <div class='step2_entry_status'>
                                {if $checks.$key.STATUS}
                                        <div class='step2_successful'>{$checks.$key.STATUS_MSG}</div>
@@ -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='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'>
 
                {elseif $method == "outside_groups"}
 
-                       <h2>{t}Move groups into valid group departments{/t}</h2>
+                       <h2>{t}Move groups into configured group tree{/t}</h2>
 
-                       {t}This dialog allows you to move the displayed groups into a valid group department{/t}
-                       <br>
-                       {t}Be careful with this tool, there may be references pointing to this group that can't be migrated.{/t}
-                       <br>
-                       <br>    
+                        <p>
+                        {t}This dialog allows moving a couple of groups to the configured group tree. Doing this may straighten your LDAP service.{/t}
+                        </p>
+                        <p style='color:red'>
+                        {t}Be careful with this option! There may be references pointing to these groups. The GOsa setup can't migrate references, so you may want to cancel the migration in this case in this case.{/t}
+                        </p>
+                       <p>
+                       {t}Move selected groups into this group tree{/t}: 
+                       <select name='move_group_to'>
+                               {html_options options=$ous}
+                       </select>
+                       </p>
 
                        {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}
-                               {if $outside_groups.$key.ldif != ""}
+                               {if $outside_groups.$key.ldif != "" && $group_details}
                       <div class="step2_entry_container_info" id="sol_8">
 <div style='padding-left:20px;'>
 <pre>
                                <br>
                        {/foreach}
 
-                       <p>
-                       <b>{t}Move selected group into the following GOsa people department{/t} : </b>
-                       <select name='move_group_to'>
-                               {html_options options=$ous}
-                       </select>
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
-                       <input type='submit' name='outside_groups_dialog_perform' value='{t}Move selected groups{/t}'>
-                       <input type='submit' name='outside_groups_dialog_whats_done' value='{t}What will be done here{/t}'>
+                       <p>
+                        {if $group_details}
+                        <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
+                        {else}
+                        <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
+                        {/if}
                        </p>
-                               
 
                        <p class='seperator'>&nbsp;</p> 
-                       <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='outside_groups_dialog_cancel' value='{t}Close{/t}'>
+                       <div style='width:99%; text-align:right; padding:5px;'>
+                               <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
+                               &nbsp;
+                               <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
                        </div>
                
                {elseif $method == "outside_users"}
 
-                       <h2>{t}Move users into valid user departments{/t}</h2>
-
-                       {t}This dialog allows you to move the displayed users into a valid user department{/t}
-                       <br>
-                       {t}Be careful with this tool, there may be references pointing to this user that can't be migrated.{/t}
-                       <br>
-                       <br>    
-
+                       <h2>{t}Move users into configured user tree{/t}</h2>
+                       <p>
+                       {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
+                       </p>
+                       <p style='color:red'>
+                       {t}Be careful with this option! There may be references pointing to these users. The GOsa setup can't migrate references, so you may want to cancel the migration in this case.{/t}
+                       </p>    
+                       <p>
+                       {t}Move selected users into this people tree{/t}: 
+                       <select name='move_user_to'>
+                               {html_options options=$ous}
+                       </select>
+                       </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}
-                               {if $outside_users.$key.ldif != ""}
+                               {if $outside_users.$key.ldif != "" && $user_details}
                       <div class="step2_entry_container_info" id="sol_8">
 <div style='padding-left:20px;'>
 <pre>
                                {/if}
                                <br>
                        {/foreach}
-
-                       <p>
-                       <b>{t}Move selected user into the following GOsa people department{/t} : </b>
-                       <select name='move_user_to'>
-                               {html_options options=$ous}
-                       </select>
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
-                       <input type='submit' name='outside_users_dialog_perform' value='{t}Move selected user{/t}'>
-                       <input type='submit' name='outside_users_dialog_whats_done' value='{t}What will be done here{/t}'>
-                       </p>
-                               
+
+                       {if $user_details}
+                       <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
+                        {else}
+                       <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
+                       {/if}
 
                        <p class='seperator'>&nbsp;</p> 
-                       <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='outside_users_dialog_cancel' value='{t}Close{/t}'>
+                       <div style='width:99%; text-align:right; padding:5px;'>
+                               <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
+                               &nbsp;
+                               <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
                        </div>
                
 
                {elseif $method == "create_acls"}
 
-               <h2>{t}Acl setup{/t}</h2>
-       
                {if $acl_create_selected != "" && $what_will_be_done_now!=""}
                        <div>
 <pre>
                        <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
                        <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
                {else}
-               <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
+                       <h2>{t}Create a new GOsa administrator account{/t}</h2>
        
-                       {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
-                       <p style='padding-left:10px;'>
+                       <p>
+                       {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
+                       </p>
                        <table>
                                <tr>
                                        <td>
                                        <td>
                                                <i>System administrator</i>
                                        </td>
-                               <tr>
+                               </tr>
                                <tr>
                                        <td>
                                                {t}User ID{/t}:&nbsp;
                                        </td>
                                        <td>
-                                               <i>admin</i>
+                                               <input type='text' value='{$new_user_uid}' name='new_user_uid'><br>
                                        </td>
-                               <tr>
                                </tr>
+                               <tr>
                                        <td>
                                                {t}Password{/t}:&nbsp;
                                        </td>
                                                <input type='password' value='{$new_user_password}' name='new_user_password'><br>
                                        </td>
                                </tr>
-                               </tr>
+                               <tr>
                                        <td>
-                                               {t}Retype password{/t}:&nbsp;
+                                               {t}Password (again){/t}:&nbsp;
                                        </td>
                                        <td>
                                                <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
                                        </td>
                                </tr>
                        </table>
-                       <input type='submit' name='create_admin_user' value='{t}Create{/t}'>    
-                       </p>
-                       
-                       {if $users_cnt != 0 || $groups_cnt != 0}
-                       
-                       <p>&nbsp;</p>
-                       <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
-                       {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
-                       <p style='padding-left:10px;'>
-                       <select name='acl_create_type' onChange='document.mainform.submit();' >
-                               {if $type == "user"}
-                               <option value='group'>{t}Group{/t}</option>
-                               <option selected value='user'>{t}User{/t}</option>
-                               {else}
-                               <option selected value='group'>{t}Group{/t}</option>
-                               <option value='user'>{t}User{/t}</option>
-                               {/if}
-                       </select>
-                       <select name='create_acls_selected' size="12" style='width:100%;'>
-                               {if $type == "user"}
-                                       {html_options options=$users selected=$acl_create_selected}
-                               {else}
-                                       {html_options options=$groups selected=$acl_create_selected}
-                               {/if}
-                       </select>
-
-                               <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
-                       </p>
-                       {/if}
-               {/if}
-
+       
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+       focus_field('new_user_password');
+  -->
+</script>
 
                        <p class='seperator'>&nbsp;</p> 
-
-                       <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
+                       <div style='width:99%; text-align:right; padding:5px;'>
+                               <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
+                               <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
                        </div>
-               
-
+                       {/if}   
                {elseif $method == "migrate_deps"}
        
                        <h2>Department migration</h2>
 
-                       {t}The listed deparmtents below are currenlty invisble in the GOsa user interface. If you want to migrate a set of departments, just select them and use the migrate button below.{/t}<br>
-                       {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
+                       <p>{t}The listed departments are currenlty invisble in the GOsa user interface. If you want to change this for a couple of entries, select them and use the migrate button below.{/t}</p>
+                       <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
                                        
-
-                       <br><br>
                        {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">
@@ -296,38 +283,39 @@ 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}
-
-                               <br>
                                
-
+                       <br>
                        {/foreach}
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
 
-                       <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
-                       <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
-                       <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
+                       {if $deps_details}
+                       <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
+                       {else}
+                       <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
+                       {/if}
 
                        <p class='seperator'>&nbsp;</p> 
 
-                       <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
+                       <div style='width:99%; text-align:right; padding:5px;'>
+                               <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
+                               &nbsp;
+                               <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
                        </div>
                {elseif $method == "migrate_users"}
        
                        <h2>User migration</h2>
 
-                       {t}The listed deparmtents below are currenlty invisble in the GOsa user interface. If you want to migrate a set of departments, just select them and use the migrate button below.{/t}<br>
-                       {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
-                                       
-
-                       <br><br>
+                       <p>{t}The listed users are currenlty invisble in the GOsa user interface. If you want to change this for a couple of users, just select them and use the 'Migrate' button below.{/t}</p>
+                       <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
                        {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">
@@ -349,46 +337,28 @@ 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}
-
                                <br>
-                               
-
                        {/foreach}
+                       <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+                       {t}Select all{/t}
                        <br>
 
-                       <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
-                       <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
-                       <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
+                       {if $user_details}
+                       <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
+                       {else}
+                       <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
+                       {/if}
 
                        <p class='seperator'>&nbsp;</p> 
 
-                       <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
+                       <div style='width:99%; text-align:right; padding-top:5px;'>
+                               <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
+                               &nbsp;
+                               <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
                        </div>
-               {else}
-
-       * Create a test department with some objects to check for correct permissions
-       <br>
-       * Look for ACL's. If none is there, choose one user to be the super administrator
-       <br>
-       * Look for organizationalUnits and let add GOsa departments for selected ones
-       <br>
-       * Look for person / organizationalPerson and add GOsa account
-       <br>
-       * Allow to move selected users to people ou's - take care for groupOfNames
-       <br>
-       * Allow to move selected groups to group ou's - take care for groupOfNames
-       <br>
-       * Allow to move selected winstations to winstation ou's - take care for groupOfNames
-       <br>
-       * Check for double uidNumbers/gidNumbers
-       <br>
-       * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
-
-       
        {/if}
     </div>
 </div>