Code

51139288abcc459b0ab22de77dfee1631af3ae6c
[gosa.git] / setup / setup_migrate.tpl
1 <div>
3         <h1 style='color:red'>Style fixes necessary here ;-)</h1>
4     <div class='default'>
6                 {if $method == "default"}
8         <p>     
9                 Create a reload for each entry later 
10                 <input type='submit' name='reload' value='{t}Reload{/t}'>
11                 <p>&nbsp;</p>
12         </p>
14                         {foreach from=$checks item=val key=key}
15                                 <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
16                                 {if $checks.$key.STATUS}
17                                         <div class='step2_successful'>{$checks.$key.STATUS_MSG}
18                                         {if $checks.$key.ERROR_MSG}
19                                                 {$checks.$key.ERROR_MSG}
20                                         {/if}
21                                         </div>
22                                 {else}
23                                         <div class='step2_failed'>{$checks.$key.STATUS_MSG}
24                                         </div>
25                                         <div>
26                                         {if $checks.$key.ERROR_MSG}
27                                                 {$checks.$key.ERROR_MSG}
28                                         {/if}
29                                         </div>
30                                 {/if}
31                                 <div>&nbsp;</div>
32                         {/foreach}
34                 {elseif $method == "outside_winstations"}
36                         <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
38                         {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
39                         <br>
40                         {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
41                         <br>
42                         <br>    
44                         {foreach from=$outside_winstations item=val key=key}
45                                 {if $outside_winstations.$key.selected}
46                                         <input type='checkbox' name='select_winstation_{$key}' checked>
47                                 {else}
48                                         <input type='checkbox' name='select_winstation_{$key}'>
49                                 {/if}
51                                 &nbsp;{$outside_winstations.$key.dn}
52                                 {if $outside_winstations.$key.ldif != ""}
53                       <div class="step2_entry_container_info" id="sol_8">
54 <div style='padding-left:20px;'>
55 <pre>
56 {$outside_winstations.$key.ldif}
57 </pre>
58 </div>
59 </div>
60                                 {/if}
61                                 <br>
62                         {/foreach}
64                         <p>
65                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
66                         <select name='move_winstation_to'>
67                                 {html_options options=$ous}
68                         </select>
69                         <br>
70                         <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
71                         <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
72                         </p>
73                                 
75                         <p class='seperator'>&nbsp;</p> 
76                         <div style='width:100%; text-align:right; padding:5px;'>
77                                 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
78                         </div>
79                 
81                 {elseif $method == "outside_groups"}
83                         <h2>{t}Move groups into valid group departments{/t}</h2>
85                         {t}This dialog allows you to move the displayed groups into a valid group department{/t}
86                         <br>
87                         {t}Be careful with this tool, there may be references pointing to this group that can't be migrated.{/t}
88                         <br>
89                         <br>    
91                         {foreach from=$outside_groups item=val key=key}
92                                 {if $outside_groups.$key.selected}
93                                         <input type='checkbox' name='select_group_{$key}' checked>
94                                 {else}
95                                         <input type='checkbox' name='select_group_{$key}'>
96                                 {/if}
98                                 &nbsp;{$outside_groups.$key.dn}
99                                 {if $outside_groups.$key.ldif != ""}
100                       <div class="step2_entry_container_info" id="sol_8">
101 <div style='padding-left:20px;'>
102 <pre>
103 {$outside_groups.$key.ldif}
104 </pre>
105 </div>
106 </div>
107                                 {/if}
108                                 <br>
109                         {/foreach}
111                         <p>
112                         <b>{t}Move selected group into the following GOsa people department{/t} : </b>
113                         <select name='move_group_to'>
114                                 {html_options options=$ous}
115                         </select>
116                         <br>
117                         <input type='submit' name='outside_groups_dialog_perform' value='{t}Move selected groups{/t}'>
118                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}What will be done here{/t}'>
119                         </p>
120                                 
122                         <p class='seperator'>&nbsp;</p> 
123                         <div style='width:100%; text-align:right; padding:5px;'>
124                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Close{/t}'>
125                         </div>
126                 
127                 {elseif $method == "outside_users"}
129                         <h2>{t}Move users into valid user departments{/t}</h2>
131                         {t}This dialog allows you to move the displayed users into a valid user department{/t}
132                         <br>
133                         {t}Be careful with this tool, there may be references pointing to this user that can't be migrated.{/t}
134                         <br>
135                         <br>    
137                         {foreach from=$outside_users item=val key=key}
138                                 {if $outside_users.$key.selected}
139                                         <input type='checkbox' name='select_user_{$key}' checked>
140                                 {else}
141                                         <input type='checkbox' name='select_user_{$key}'>
142                                 {/if}
144                                 &nbsp;{$outside_users.$key.dn}
145                                 {if $outside_users.$key.ldif != ""}
146                       <div class="step2_entry_container_info" id="sol_8">
147 <div style='padding-left:20px;'>
148 <pre>
149 {$outside_users.$key.ldif}
150 </pre>
151 </div>
152 </div>
153                                 {/if}
154                                 <br>
155                         {/foreach}
157                         <p>
158                         <b>{t}Move selected user into the following GOsa people department{/t} : </b>
159                         <select name='move_user_to'>
160                                 {html_options options=$ous}
161                         </select>
162                         <br>
163                         <input type='submit' name='outside_users_dialog_perform' value='{t}Move selected user{/t}'>
164                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}What will be done here{/t}'>
165                         </p>
166                                 
168                         <p class='seperator'>&nbsp;</p> 
169                         <div style='width:100%; text-align:right; padding:5px;'>
170                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Close{/t}'>
171                         </div>
172                 
174                 {elseif $method == "create_acls"}
176                 <h2>{t}Acl setup{/t}</h2>
177         
178                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
179                         <div>
180 <pre>
181 {$what_will_be_done_now}
182 </pre>
183                         </div>          
184                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
185                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
186                 {else}
187                 <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
188         
189                         {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
190                         <p style='padding-left:10px;'>
191                         <table>
192                                 <tr>
193                                         <td>
194                                                 {t}Name{/t}:&nbsp;
195                                         </td>
196                                         <td>
197                                                 <i>System administrator</i>
198                                         </td>
199                                 <tr>
200                                 <tr>
201                                         <td>
202                                                 {t}User ID{/t}:&nbsp;
203                                         </td>
204                                         <td>
205                                                 <i>admin</i>
206                                         </td>
207                                 <tr>
208                                 </tr>
209                                         <td>
210                                                 {t}Password{/t}:&nbsp;
211                                         </td>
212                                         <td>
213                                                 <input type='input' value='{$new_user_password}' name='new_user_password'><br>
214                                         </td>
215                                 </tr>
216                         </table>
217                         <input type='submit' name='create_admin_user' value='{t}Create{/t}'>    
218                         </p>
219                         
220                         {if $users_cnt != 0 || $groups_cnt != 0}
221                         
222                         <p>&nbsp;</p>
223                         <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
224                         Bla {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
225                         <p style='padding-left:10px;'>
226                         <select name='acl_create_type' onChange='document.mainform.submit();' >
227                                 {if $type == "user"}
228                                 <option value='group'>{t}Group{/t}</option>
229                                 <option selected value='user'>{t}User{/t}</option>
230                                 {else}
231                                 <option selected value='group'>{t}Group{/t}</option>
232                                 <option value='user'>{t}User{/t}</option>
233                                 {/if}
234                         </select>
235                         <select name='create_acls_selected' size="12" style='width:100%;'>
236                                 {if $type == "user"}
237                                         {html_options options=$users selected=$acl_create_selected}
238                                 {else}
239                                         {html_options options=$groups selected=$acl_create_selected}
240                                 {/if}
241                         </select>
243                                 <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
244                         </p>
245                         {/if}
246                 {/if}
249                         <p class='seperator'>&nbsp;</p> 
251                         <div style='width:100%; text-align:right; padding:5px;'>
252                                 <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
253                         </div>
254                 
256                 {elseif $method == "migrate_deps"}
257         
258                         <h2>Department migration</h2>
260                         {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>
261                         {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}
262                                         
264                         <br><br>
265                         {foreach from=$deps_to_migrate item=val key=key}
267                                 {if $deps_to_migrate.$key.checked}
268                                         <input type='checkbox' name='migrate_{$key}' checked>
269                                         {$deps_to_migrate.$key.dn}
270                                         {if $deps_to_migrate.$key.after != ""}
271                                                 <div class="step2_entry_container_info" id="sol_8">
273 {t}Current{/t}
274 <div style='padding-left:20px;'>
275 <pre>
276 dn: {$deps_to_migrate.$key.dn}
277 {$deps_to_migrate.$key.before}
278 </pre>
279 </div>
280 {t}After migration{/t}
281 <div style='padding-left:20px;'>
282 <pre>
283 dn: {$deps_to_migrate.$key.dn}
284 {$deps_to_migrate.$key.after}
285 </pre>
286 </div>
287                                                 </div>
288                                         {/if}
289                                 {else}
290                                         <input type='checkbox' name='migrate_{$key}'>
291                                         {$deps_to_migrate.$key.dn}
292                                 {/if}
294                                 <br>
295                                 
297                         {/foreach}
298                         <br>
300                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
301                         <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
302                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
304                         <p class='seperator'>&nbsp;</p> 
306                         <div style='width:100%; text-align:right; padding:5px;'>
307                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
308                         </div>
309                 {elseif $method == "migrate_users"}
310         
311                         <h2>User migration</h2>
313                         {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>
314                         {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}
315                                         
317                         <br><br>
318                         {foreach from=$users_to_migrate item=val key=key}
320                                 {if $users_to_migrate.$key.checked}
321                                         <input type='checkbox' name='migrate_{$key}' checked>
322                                         {$users_to_migrate.$key.dn}
323                                         {if $users_to_migrate.$key.after != ""}
324                                                 <div class="step2_entry_container_info" id="sol_8">
326 {t}Current{/t}
327 <div style='padding-left:20px;'>
328 <pre>
329 dn: {$users_to_migrate.$key.dn}
330 {$users_to_migrate.$key.before}
331 </pre>
332 </div>
333 {t}After migration{/t}
334 <div style='padding-left:20px;'>
335 <pre>
336 dn: {$users_to_migrate.$key.dn}
337 {$users_to_migrate.$key.after}
338 </pre>
339 </div>
340                                                 </div>
341                                         {/if}
342                                 {else}
343                                         <input type='checkbox' name='migrate_{$key}'>
344                                         {$users_to_migrate.$key.dn}
345                                 {/if}
347                                 <br>
348                                 
350                         {/foreach}
351                         <br>
353                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
354                         <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
355                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
357                         <p class='seperator'>&nbsp;</p> 
359                         <div style='width:100%; text-align:right; padding:5px;'>
360                                 <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
361                         </div>
362                 {else}
364         * Create a test department with some objects to check for correct permissions
365         <br>
366         * Look for ACL's. If none is there, choose one user to be the super administrator
367         <br>
368         * Look for organizationalUnits and let add GOsa departments for selected ones
369         <br>
370         * Look for person / organizationalPerson and add GOsa account
371         <br>
372         * Allow to move selected users to people ou's - take care for groupOfNames
373         <br>
374         * Allow to move selected groups to group ou's - take care for groupOfNames
375         <br>
376         * Allow to move selected winstations to winstation ou's - take care for groupOfNames
377         <br>
378         * Check for double uidNumbers/gidNumbers
379         <br>
380         * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
382         
383         {/if}
384     </div>
385 </div>