Code

Some migration fixes
[gosa.git] / setup / setup_migrate.tpl
index a35e4b0e99b3c0a5fdd07027e38eefd4b0cb309b..8a6beab6b1bda274963331e7f4d4a408173245e2 100644 (file)
@@ -1,7 +1,16 @@
 <div>
+
+       <h1 style='color:red'>Style fixes necessary here ;-)</h1>
     <div class='default'>
 
-               {if $method == "default"}
+       {if $method == "default"}
+
+       <p>     
+               Create a reload for each entry later 
+               <input type='submit' name='reload' value='{t}Reload{/t}'>
+               <p>&nbsp;</p>
+       </p>
+
                        {foreach from=$checks item=val key=key}
                                <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
                                {if $checks.$key.STATUS}
                                        {/if}
                                        </div>
                                {else}
-                                       <div class='step2_failed'>{$checks.$key.STATUS_MSG}
+                                       <div class='step2_failed' style='float:none'>{$checks.$key.STATUS_MSG}
+                                       </div>
+                                       <div>
                                        {if $checks.$key.ERROR_MSG}
                                                {$checks.$key.ERROR_MSG}
                                        {/if}
                                        </div>
                                {/if}
-                               <div style='height:10px;'>&nbsp;</div>
+                               <div>&nbsp;</div>
+                       {/foreach}
+
+               {elseif $method == "outside_winstations"}
+
+                       <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
+
+                       {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
+                       <br>
+                       {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
+                       <br>
+                       <br>    
+
+                       {foreach from=$outside_winstations item=val key=key}
+                               {if $outside_winstations.$key.selected}
+                                       <input type='checkbox' name='select_winstation_{$key}' checked>
+                               {else}
+                                       <input type='checkbox' name='select_winstation_{$key}'>
+                               {/if}
+
+                               &nbsp;{$outside_winstations.$key.dn}
+                               {if $outside_winstations.$key.ldif != ""}
+                    <div class="step2_entry_container_info" id="sol_8">
+                                               <div style='padding-left:20px;'>
+                                                       <pre>
+                                                               {$outside_winstations.$key.ldif}
+                                                       </pre>
+                                               </div>
+                                       </div>
+                               {/if}
+                               <br>
+                       {/foreach}
+
+                       <p>
+                       <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
+                       <select name='move_winstation_to'>
+                               {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}'>
+                       </p>
+                               
+
+                       <p class='seperator'>&nbsp;</p> 
+                       <div style='width:100%; text-align:right; padding:5px;'>
+                               <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
+                       </div>
+               
+
+               {elseif $method == "outside_groups"}
+
+                       <h2>{t}Move groups into valid group departments{/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>    
+
+                       {foreach from=$outside_groups item=val key=key}
+                               {if $outside_groups.$key.selected}
+                                       <input type='checkbox' name='select_group_{$key}' checked>
+                               {else}
+                                       <input type='checkbox' name='select_group_{$key}'>
+                               {/if}
+
+                               &nbsp;{$outside_groups.$key.dn}
+                               {if $outside_groups.$key.ldif != ""}
+                      <div class="step2_entry_container_info" id="sol_8">
+<div style='padding-left:20px;'>
+<pre>
+{$outside_groups.$key.ldif}
+</pre>
+</div>
+</div>
+                               {/if}
+                               <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>
+                       <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>
+                               
+
+                       <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>
+               
+               {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>    
+
+                       {foreach from=$outside_users item=val key=key}
+                               {if $outside_users.$key.selected}
+                                       <input type='checkbox' name='select_user_{$key}' checked>
+                               {else}
+                                       <input type='checkbox' name='select_user_{$key}'>
+                               {/if}
+
+                               &nbsp;{$outside_users.$key.dn}
+                               {if $outside_users.$key.ldif != ""}
+                      <div class="step2_entry_container_info" id="sol_8">
+<div style='padding-left:20px;'>
+<pre>
+{$outside_users.$key.ldif}
+</pre>
+</div>
+</div>
+                               {/if}
+                               <br>
                        {/foreach}
-               {elseif $method == "migrate"}
+
+                       <p>
+                       <b>{t}Move selected user into the following GOsa people department{/t} : </b>
+                       <select name='move_user_to'>
+                               {html_options options=$ous}
+                       </select>
+                       <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>
+                               
+
+                       <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>
+               
+
+               {elseif $method == "create_acls"}
+
+               <h2>{t}Acl setup{/t}</h2>
+       
+               {if $acl_create_selected != "" && $what_will_be_done_now!=""}
+                       <div>
+<pre>
+{$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}'>
+               {else}
+               <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
+       
+                       {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
+                       <p style='padding-left:10px;'>
+                       <table>
+                               <tr>
+                                       <td>
+                                               {t}Name{/t}:&nbsp;
+                                       </td>
+                                       <td>
+                                               <i>System administrator</i>
+                                       </td>
+                               <tr>
+                               <tr>
+                                       <td>
+                                               {t}User ID{/t}:&nbsp;
+                                       </td>
+                                       <td>
+                                               <i>admin</i>
+                                       </td>
+                               <tr>
+                               </tr>
+                                       <td>
+                                               {t}Password{/t}:&nbsp;
+                                       </td>
+                                       <td>
+                                               <input type='password' value='{$new_user_password}' name='new_user_password'><br>
+                                       </td>
+                               </tr>
+                               </tr>
+                                       <td>
+                                               {t}Retype password{/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}
+
+
+                       <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>
+               
+
+               {elseif $method == "migrate_deps"}
        
                        <h2>Department migration</h2>
 
@@ -72,6 +314,59 @@ dn: {$deps_to_migrate.$key.dn}
                        <div style='width:100%; text-align:right; padding:5px;'>
                                <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/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>
+                       {foreach from=$users_to_migrate item=val key=key}
+
+                               {if $users_to_migrate.$key.checked}
+                                       <input type='checkbox' name='migrate_{$key}' checked>
+                                       {$users_to_migrate.$key.dn}
+                                       {if $users_to_migrate.$key.after != ""}
+                                               <div class="step2_entry_container_info" id="sol_8">
+
+{t}Current{/t}
+<div style='padding-left:20px;'>
+<pre>
+dn: {$users_to_migrate.$key.dn}
+{$users_to_migrate.$key.before}
+</pre>
+</div>
+{t}After migration{/t}
+<div style='padding-left:20px;'>
+<pre>
+dn: {$users_to_migrate.$key.dn}
+{$users_to_migrate.$key.after}
+</pre>
+</div>
+                                               </div>
+                                       {/if}
+                               {else}
+                                       <input type='checkbox' name='migrate_{$key}'>
+                                       {$users_to_migrate.$key.dn}
+                               {/if}
+
+                               <br>
+                               
+
+                       {/foreach}
+                       <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}'>
+
+                       <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>
                {else}
 
        * Create a test department with some objects to check for correct permissions