Code

Updated listing table summary
[gosa.git] / gosa-core / setup / setup_migrate.tpl
index a1652162b9a68c031e19f277660349369f0faf8f..f7666dd75f8de903ed119694059c6d0946980351 100644 (file)
                                </div>
                        {/foreach}
                <br>
-               <input type='submit' name='reload' value='{t}Check again{/t}'>
+               <button type='submit' name='reload'>{t}Check again{/t}</button>
+
+
+               {elseif $method == "rootOC_migrate_dialog"}
+
+                       <h2>{t}Add required object classes to the LDAP base{/t}</h2>
+
+                       <b>{t}Current{/t}</b>
+                       <div class="step2_entry_container_info">
+                               <div style='padding-left:20px;'>
+                                       <pre>{$details.current}</pre>
+                               </div>
+                       </div>
+                       <br>
+                       <b>{t}After migration{/t}</b>
+                       <div class="step2_entry_container_info">
+                               <div style='padding-left:20px;'>
+                                       <pre>{$details.target}</pre>
+                               </div>
+                       </div>
+
+                       <br>
+                       <button type='submit' name='rootOC_migrate_start'>{t}Migrate{/t}</button>
+
+                       </p>
+                               
+
+                       <hr>    
+                       <div style='width:100%; text-align:right; padding:5px;'>
+                               <button type='submit' name='rootOC_dialog_cancel'>{t}Close{/t}</button>
+
+                       </div>
 
                {elseif $method == "outside_winstations"}
 
                        {t}Select all{/t}
                        <p>
                        <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
-                       <select name='move_winstation_to'>
+                       <select name='move_winstation_to' size=1>
                                {html_options options=$ous}
                        </select>
                        <br>
-                       <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
-                       <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
+                       <button type='submit' name='outside_winstations_dialog_perform'>{t}Move selected workstations{/t}</button>
+
+                       <button type='submit' name='outside_winstations_dialog_whats_done'>{t}What will be done here{/t}</button>
+
                        </p>
                                
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
                        <div style='width:100%; text-align:right; padding:5px;'>
-                               <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
+                               <button type='submit' name='outside_winstations_dialog_cancel'>{t}Close{/t}</button>
+
                        </div>
                
 
                         {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}
+                        {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.{/t}
                         </p>
                        <p>
                        {t}Move selected groups into this group tree{/t}: 
-                       <select name='move_group_to'>
+                       <select name='move_group_to' size=1>
                                {html_options options=$ous}
                        </select>
                        </p>
                        <br>
                        <p>
                         {if $group_details}
-                        <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
+                        <button type='submit' name='outside_groups_dialog_refresh'>{t}Hide changes{/t}</button>
+
                         {else}
-                        <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
+                        <button type='submit' name='outside_groups_dialog_whats_done'>{t}Show changes{/t}</button>
+
                         {/if}
                        </p>
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
                        <div style='width:99%; text-align:right; padding:5px;'>
-                               <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
+                               <button type='submit' name='outside_groups_dialog_perform'>{t}Apply{/t}</button>
+
                                &nbsp;
-                               <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
+                               <button type='submit' name='outside_groups_dialog_cancel'>{t}Cancel{/t}</button>
+
                        </div>
                
                {elseif $method == "outside_users"}
                        </p>    
                        <p>
                        {t}Move selected users into this people tree{/t}: 
-                       <select name='move_user_to'>
+                       <select name='move_user_to' size=1>
                                {html_options options=$ous}
                        </select>
                        </p>
                        <br>
 
                        {if $user_details}
-                       <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
+                       <button type='submit' name='outside_users_dialog_refresh'>{t}Hide changes{/t}</button>
+
                         {else}
-                       <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
+                       <button type='submit' name='outside_users_dialog_whats_done'>{t}Show changes{/t}</button>
+
                        {/if}
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
                        <div style='width:99%; text-align:right; padding:5px;'>
-                               <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
+                               <button type='submit' name='outside_users_dialog_perform'>{t}Apply{/t}</button>
+
                                &nbsp;
-                               <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
+                               <button type='submit' name='outside_users_dialog_cancel'>{t}Cancel{/t}</button>
+
                        </div>
                
 
+               {elseif $method == "migrate_acls"}
+                       <h2>{t}Migrate GOsa 2.5 administrative accounts{/t}</h2>
+            <p>
+            {t}This dialog allows the migration of GOsa 2.5 admin accounts into GOsa 2.6 useable accounts.{/t}
+            </p>
+                       <table> 
+                               <tr>    
+                                       <td></td>
+                                       <td></td>
+                               </tr>
+                       {foreach from=$migrateable_users item=item key=key}
+                               <tr>
+                                       <td><input type='checkbox' name='migrate_admin_{$key}' value='{$key}' {if $item.checked} checked {/if}></td>
+                                       <td>{$item.dn}</td>
+                               </tr>
+                       {/foreach}
+                       </table>
+
+                       {if !$details}
+                               <button type='submit' name='migrate_acls_show_changes'>{t}Show changes{/t}</button>
+
+                               <input type='hidden' name='details' value='0'>
+                       {else}
+                               <input type='hidden' name='details' value='1'>
+
+                               <br>
+                               <div class="step2_entry_container_info">
+                               {t}Current{/t}
+                               <div style='padding-left:20px;'>
+                                       <pre>{$migrate_acl_base_entry}</pre>
+                               </div>
+                               {t}After migration{/t}
+                               <div style='padding-left:20px;'>
+                                       <pre>{$migrate_acl_base_entry}{foreach from=$migrateable_users item=item key=key}{if $item.checked}<b>{$item.details}</b>{/if}{/foreach}</pre>
+                               </div>
+                               </div>
+                               <br>
+                               <button type='submit' name='migrate_acls_hide_changes'>{t}Hide changes{/t}</button>
+
+                       {/if}
+
+                       <button type='submit' name=''>{t}Reload{/t}</button>
+
+                       <hr>    
+                       <div style='width:99%; text-align:right; padding:5px;'>
+                               <button type='submit' name='migrate_admin_user'>{t}Apply{/t}</button>   
+
+                               <button type='submit' name='migrate_acls_cancel'>{t}Cancel{/t}</button>
+
+                       </div>
+
                {elseif $method == "create_acls"}
 
                {if $acl_create_selected != "" && $what_will_be_done_now!=""}
 {$what_will_be_done_now}
 </pre>
                        </div>          
-                       <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
-                       <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
+                       <button type='submit' name='create_acls_create_confirmed'>{t}Next{/t}</button>
+
+                       <button type='submit' name='create_acls_create_abort'>{t}Abort{/t}</button>
+
                {else}
                        <h2>{t}Create a new GOsa administrator account{/t}</h2>
        
                                                {t}Password (again){/t}:&nbsp;
                                        </td>
                                        <td>
+
                                                <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
                                        </td>
                                </tr>
   -->
 </script>
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
                        <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}'>
+                               <button type='submit' name='create_admin_user'>{t}Apply{/t}</button>    
+
+                               <button type='submit' name='create_acls_cancel'>{t}Cancel{/t}</button>
+
                        </div>
                        {/if}   
                {elseif $method == "migrate_deps"}
        
                        <h2>Department migration</h2>
 
-                       <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}The listed departments are currently invisible 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>
                                        
                        {foreach from=$deps_to_migrate item=val key=key}
@@ -294,23 +392,27 @@ dn: {$deps_to_migrate.$key.dn}
                        <br>
 
                        {if $deps_details}
-                       <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
+                       <button type='submit' name='deps_visible_migrate_refresh'>{t}Hide changes{/t}</button>
+
                        {else}
-                       <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
+                       <button type='submit' name='deps_visible_migrate_whatsdone'>{t}Show changes{/t}</button>
+
                        {/if}
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
 
                        <div style='width:99%; text-align:right; padding:5px;'>
-                               <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
+                               <button type='submit' name='deps_visible_migrate_migrate'>{t}Apply{/t}</button>
+
                                &nbsp;
-                               <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
+                               <button type='submit' name='deps_visible_migrate_close'>{t}Cancel{/t}</button>
+
                        </div>
                {elseif $method == "migrate_users"}
        
                        <h2>User migration</h2>
 
-                       <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}The listed users are currently invisible 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}
 
@@ -347,18 +449,169 @@ dn: {$users_to_migrate.$key.dn}
                        <br>
 
                        {if $user_details}
-                       <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
+                       <button type='submit' name='users_visible_migrate_refresh'>{t}Hide changes{/t}</button>
+
                        {else}
-                       <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
+                       <button type='submit' name='users_visible_migrate_whatsdone'>{t}Show changes{/t}</button>
+
                        {/if}
 
-                       <p class='seperator'>&nbsp;</p> 
+                       <hr>    
 
                        <div style='width:99%; text-align:right; padding-top:5px;'>
-                               <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
+                               <button type='submit' name='users_visible_migrate_migrate'>{t}Apply{/t}</button>
+
                                &nbsp;
-                               <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
+                               <button type='submit' name='users_visible_migrate_close'>{t}Cancel{/t}</button>
+
                        </div>
+
+
+       {elseif $method == "devices"}
+
+
+                       <h2>Devices</h2>
+
+                       <p>{t}The listed devices are currently invisible in the GOsa interface. If you want to change this for a couple of devices, 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=$devices item=item key=key}
+               <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
+                               <b>{$item.DEVICE_NAME}</b>
+                                - {$item.DN} 
+
+                               {if $item.DETAILS && $device_details}
+                                       <div class="step2_entry_container_info">
+                                               <b>{t}Current{/t}</b>
+                                               <pre>{$item.CURRENT}</pre>
+       
+                                               
+                                               <b>{t}After migration{/t}</b>
+                                               <pre>{$item.AFTER}</pre>
+                                       </div>
+                               {/if}
+                       <br>
+               {/foreach}
+               <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+               {t}Select all{/t}
+       
+               <br>
+
+               {if $device_details}
+                       <button type='submit' name='device_dialog_refresh'>{t}Hide changes{/t}</button>
+
+                       <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
+
+               {else}
+                       <button type='submit' name='device_dialog_whats_done'>{t}Show changes{/t}</button>
+
+               {/if}
+
+               <hr>    
+
+               <div style='width:99%; text-align:right; padding-top:5px;'>
+                       <button type='submit' name='migrate_devices'>{t}Apply{/t}</button>
+
+                       &nbsp;
+                       <button type='submit' name='device_dialog_cancel'>{t}Cancel{/t}</button>
+
+               </div>
+
+       {elseif $method == "services"}
+
+
+                       <h2>Services</h2>
+
+                       <p>{t}The listed services are currently invalid for the GOsa version you are going to install. If you want to update a couple of service, 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=$services item=item key=key}
+               <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
+                               <b>{$item.DN}</b>
+
+                               {if $item.DETAILS && $service_details}
+                                       <div class="step2_entry_container_info">
+                                               <b>{t}Current{/t}</b>
+                                               <pre>{$item.CURRENT}</pre>
+       
+                                               
+                                               <b>{t}After migration{/t}</b>
+                                               <pre>{$item.AFTER}</pre>
+                                       </div>
+                               {/if}
+                       <br>
+               {/foreach}
+               <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+               {t}Select all{/t}
+       
+               <br>
+
+               {if $service_details}
+                       <button type='submit' name='service_dialog_refresh'>{t}Hide changes{/t}</button>
+
+                       <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
+
+               {else}
+                       <button type='submit' name='service_dialog_whats_done'>{t}Show changes{/t}</button>
+
+               {/if}
+
+               <hr>    
+
+               <div style='width:99%; text-align:right; padding-top:5px;'>
+                       <button type='submit' name='migrate_services'>{t}Apply{/t}</button>
+
+                       &nbsp;
+                       <button type='submit' name='service_dialog_cancel'>{t}Cancel{/t}</button>
+
+               </div>
+
+
+       {elseif $method == "menus"}
+
+
+                       <h2>Application menus</h2>
+
+                       <p>{t}The listed menus are currently invisible in the GOsa interface. If you want to change this for a couple of devices, 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=$menus item=item key=key}
+               <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
+                               <b>{$item.DN}</b>
+
+                               {if $item.DETAILS && $menu_details}
+                                       <div class="step2_entry_container_info">
+                                               <b>{t}Current{/t}</b>
+                                               <pre>{$item.CURRENT}</pre>
+       
+                                               
+                                               <b>{t}After migration{/t}</b>
+                                               <pre>{$item.AFTER}</pre>
+                                       </div>
+                               {/if}
+                       <br>
+               {/foreach}
+               <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
+               {t}Select all{/t}
+       
+               <br>
+
+               {if $menu_details}
+                       <button type='submit' name='menu_dialog_refresh'>{t}Hide changes{/t}</button>
+
+                       <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
+
+               {else}
+                       <button type='submit' name='menu_dialog_whats_done'>{t}Show changes{/t}</button>
+
+               {/if}
+
+               <hr>    
+
+               <div style='width:99%; text-align:right; padding-top:5px;'>
+                       <button type='submit' name='migrate_menus'>{t}Apply{/t}</button>
+
+                       &nbsp;
+                       <button type='submit' name='menu_dialog_cancel'>{t}Cancel{/t}</button>
+
+               </div>
        {/if}
     </div>
 </div>