Code

Created trunk inside of 2.6-lhm
[gosa.git] / trunk / gosa-core / setup / setup_migrate.tpl
1 <div>
2     <div class='default'>
4         {if $method == "default"}
5                         <p>{t}During the LDAP inspection, we're going to check for several common pitfalls that may occur when migration to GOsa base LDAP administration. You may want to fix the problems below, in order to provide smooth services.{/t}
6                         </p>
8                         {foreach from=$checks item=val key=key}
9                                 <div style='width:98%; padding:4px; background-color:{cycle values="#F0F0F0, #FFF"}'>
11                         {if $checks.$key.ERROR_MSG}
12                                 <!-- Add ability to display info popup -->
13                                 <div class='step2_entry_container_info'>
14                         {else}
15                                 <!-- Normal entry everything is fine -->
16                                 <div class='step2_entry_container'>
17                         {/if}
18                                 <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
19                                 <div class='step2_entry_status'>
20                                 {if $checks.$key.STATUS}
21                                         <div class='step2_successful'>{$checks.$key.STATUS_MSG}</div>
22                                 {else}
23                                         <div class='step2_failed'>{$checks.$key.STATUS_MSG}</div>
24                                 {/if}
25                                 </div>
26                                         {if $checks.$key.ERROR_MSG}
27                                                 {$checks.$key.ERROR_MSG}
28                                         {/if}
29                                 </div>
30                                 </div>
31                         {/foreach}
32                 <br>
33                 <input type='submit' name='reload' value='{t}Check again{/t}'>
35                 {elseif $method == "rootOC_migrate_dialog"}
37                         <h2>{t}Add required object classes to the ldap base{/t}</h2>
39                         <b>{t}Current{/t}</b>
40                         <div class="step2_entry_container_info">
41                                 <div style='padding-left:20px;'>
42                                         <pre>{$details.current}</pre>
43                                 </div>
44                         </div>
45                         <br>
46                         <b>{t}After migration{/t}</b>
47                         <div class="step2_entry_container_info">
48                                 <div style='padding-left:20px;'>
49                                         <pre>{$details.target}</pre>
50                                 </div>
51                         </div>
53                         <br>
54                         <input type='submit' name='rootOC_migrate_start' value='{t}Migrate{/t}'>
55                         </p>
56                                 
58                         <p class='seperator'>&nbsp;</p> 
59                         <div style='width:100%; text-align:right; padding:5px;'>
60                                 <input type='submit' name='rootOC_dialog_cancel' value='{t}Close{/t}'>
61                         </div>
63                 {elseif $method == "outside_winstations"}
65                         <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
67                         {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
68                         <br>
69                         {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
70                         <br>
71                         <br>    
73                         {foreach from=$outside_winstations item=val key=key}
74                                 {if $outside_winstations.$key.selected}
75                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}' checked>
76                                 {else}
77                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}'>
78                                 {/if}
80                                 &nbsp;{$outside_winstations.$key.dn}
81                                 {if $outside_winstations.$key.ldif != ""}
82                     <div class="step2_entry_container_info" id="sol_8">
83                                                 <div style='padding-left:20px;'>
84                                                         <pre>
85                                                                 {$outside_winstations.$key.ldif}
86                                                         </pre>
87                                                 </div>
88                                         </div>
89                                 {/if}
90                                 <br>
91                         {/foreach}
92                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_winstation_','toggle_calue')">
93                         {t}Select all{/t}
94                         <p>
95                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
96                         <select name='move_winstation_to'>
97                                 {html_options options=$ous}
98                         </select>
99                         <br>
100                         <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
101                         <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
102                         </p>
103                                 
105                         <p class='seperator'>&nbsp;</p> 
106                         <div style='width:100%; text-align:right; padding:5px;'>
107                                 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
108                         </div>
109                 
111                 {elseif $method == "outside_groups"}
113                         <h2>{t}Move groups into configured group tree{/t}</h2>
115                         <p>
116                         {t}This dialog allows moving a couple of groups to the configured group tree. Doing this may straighten your LDAP service.{/t}
117                         </p>
118                         <p style='color:red'>
119                         {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}
120                         </p>
121                         <p>
122                         {t}Move selected groups into this group tree{/t}: 
123                         <select name='move_group_to'>
124                                 {html_options options=$ous}
125                         </select>
126                         </p>
128                         {foreach from=$outside_groups item=val key=key}
129                                 {if $outside_groups.$key.selected}
130                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}' checked>
131                                 {else}
132                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}'>
133                                 {/if}
135                                 &nbsp;{$outside_groups.$key.dn}
136                                 {if $outside_groups.$key.ldif != "" && $group_details}
137                       <div class="step2_entry_container_info" id="sol_8">
138 <div style='padding-left:20px;'>
139 <pre>
140 {$outside_groups.$key.ldif}
141 </pre>
142 </div>
143 </div>
144                                 {/if}
145                                 <br>
146                         {/foreach}
148                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
149                         {t}Select all{/t}
150                         <br>
151                         <p>
152                         {if $group_details}
153                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
154                         {else}
155                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
156                         {/if}
157                         </p>
159                         <p class='seperator'>&nbsp;</p> 
160                         <div style='width:99%; text-align:right; padding:5px;'>
161                                 <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
162                                 &nbsp;
163                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
164                         </div>
165                 
166                 {elseif $method == "outside_users"}
168                         <h2>{t}Move users into configured user tree{/t}</h2>
169                         <p>
170                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
171                         </p>
172                         <p style='color:red'>
173                         {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}
174                         </p>    
175                         <p>
176                         {t}Move selected users into this people tree{/t}: 
177                         <select name='move_user_to'>
178                                 {html_options options=$ous}
179                         </select>
180                         </p>
181                         {foreach from=$outside_users item=val key=key}
182                                 {if $outside_users.$key.selected}
183                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
184                                 {else}
185                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
186                                 {/if}
188                                 &nbsp;{$outside_users.$key.dn}
189                                 {if $outside_users.$key.ldif != "" && $user_details}
190                       <div class="step2_entry_container_info" id="sol_8">
191 <div style='padding-left:20px;'>
192 <pre>
193 {$outside_users.$key.ldif}
194 </pre>
195 </div>
196 </div>
197                                 {/if}
198                                 <br>
199                         {/foreach}
200                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
201                         {t}Select all{/t}
202                         <br>
204                         {if $user_details}
205                         <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
206                         {else}
207                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
208                         {/if}
210                         <p class='seperator'>&nbsp;</p> 
211                         <div style='width:99%; text-align:right; padding:5px;'>
212                                 <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
213                                 &nbsp;
214                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
215                         </div>
216                 
218                 {elseif $method == "migrate_acls"}
219                         <h2>{t}Migrate GOsa 2.5 administrative accounts{/t}</h2>
220             <p>
221             {t}This dialog allows the migration of GOsa 2.5 admin accounts into GOsa 2.6 useable accounts.{/t}
222             </p>
223                         <table> 
224                                 <tr>    
225                                         <td></td>
226                                         <td></td>
227                                 </tr>
228                         {foreach from=$migrateable_users item=item key=key}
229                                 <tr>
230                                         <td><input type='checkbox' name='migrate_admin_{$key}' value='{$key}' {if $item.checked} checked {/if}></td>
231                                         <td>{$item.dn}</td>
232                                 </tr>
233                         {/foreach}
234                         </table>
236                         {if !$details}
237                                 <input type='submit' name='migrate_acls_show_changes' value='{t}Show changes{/t}'>
238                                 <input type='hidden' name='details' value='0'>
239                         {else}
240                                 <input type='hidden' name='details' value='1'>
242                                 <br>
243                                 <div class="step2_entry_container_info">
244                                 {t}Current{/t}
245                                 <div style='padding-left:20px;'>
246                                         <pre>{$migrate_acl_base_entry}</pre>
247                                 </div>
248                                 {t}After migration{/t}
249                                 <div style='padding-left:20px;'>
250                                         <pre>{$migrate_acl_base_entry}{foreach from=$migrateable_users item=item key=key}{if $item.checked}<b>{$item.details}</b>{/if}{/foreach}</pre>
251                                 </div>
252                                 </div>
253                                 <br>
254                                 <input type='submit' name='migrate_acls_hide_changes' value='{t}Hide changes{/t}'>
255                         {/if}
257                         <input type='submit' value="{t}Reload{/t}">
258                         <p class='seperator'>&nbsp;</p> 
259                         <div style='width:99%; text-align:right; padding:5px;'>
260                                 <input type='submit' name='migrate_admin_user' value='{t}Apply{/t}'>    
261                                 <input type='submit' name='migrate_acls_cancel' value='{t}Cancel{/t}'>
262                         </div>
264                 {elseif $method == "create_acls"}
266                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
267                         <div>
268 <pre>
269 {$what_will_be_done_now}
270 </pre>
271                         </div>          
272                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
273                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
274                 {else}
275                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
276         
277                         <p>
278                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
279                         </p>
280                         <table>
281                                 <tr>
282                                         <td>
283                                                 {t}Name{/t}:&nbsp;
284                                         </td>
285                                         <td>
286                                                 <i>System administrator</i>
287                                         </td>
288                                 </tr>
289                                 <tr>
290                                         <td>
291                                                 {t}User ID{/t}:&nbsp;
292                                         </td>
293                                         <td>
294                                                 <input type='text' value='{$new_user_uid}' name='new_user_uid'><br>
295                                         </td>
296                                 </tr>
297                                 <tr>
298                                         <td>
299                                                 {t}Password{/t}:&nbsp;
300                                         </td>
301                                         <td>
302                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
303                                         </td>
304                                 </tr>
305                                 <tr>
306                                         <td>
307                                                 {t}Password (again){/t}:&nbsp;
308                                         </td>
309                                         <td>
311                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
312                                         </td>
313                                 </tr>
314                         </table>
315         
316 <!-- Place cursor -->
317 <script language="JavaScript" type="text/javascript">
318   <!-- // First input field on page
319         focus_field('new_user_password');
320   -->
321 </script>
323                         <p class='seperator'>&nbsp;</p> 
324                         <div style='width:99%; text-align:right; padding:5px;'>
325                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
326                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
327                         </div>
328                         {/if}   
329                 {elseif $method == "migrate_deps"}
330         
331                         <h2>Department migration</h2>
333                         <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>
334                         <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>
335                                         
336                         {foreach from=$deps_to_migrate item=val key=key}
338                                 {if $deps_to_migrate.$key.checked}
339                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
340                                         {$deps_to_migrate.$key.dn}
341                                         {if $deps_to_migrate.$key.after != ""}
342                                                 <div class="step2_entry_container_info" id="sol_8">
344 {t}Current{/t}
345 <div style='padding-left:20px;'>
346 <pre>
347 dn: {$deps_to_migrate.$key.dn}
348 {$deps_to_migrate.$key.before}
349 </pre>
350 </div>
351 {t}After migration{/t}
352 <div style='padding-left:20px;'>
353 <pre>
354 dn: {$deps_to_migrate.$key.dn}
355 {$deps_to_migrate.$key.after}
356 </pre>
357 </div>
358                                                 </div>
359                                         {/if}
360                                 {else}
361                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
362                                         {$deps_to_migrate.$key.dn}
363                                 {/if}
364                                 
365                         <br>
366                         {/foreach}
367                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
368                         {t}Select all{/t}
369                         <br>
371                         {if $deps_details}
372                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
373                         {else}
374                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
375                         {/if}
377                         <p class='seperator'>&nbsp;</p> 
379                         <div style='width:99%; text-align:right; padding:5px;'>
380                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
381                                 &nbsp;
382                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
383                         </div>
384                 {elseif $method == "migrate_users"}
385         
386                         <h2>User migration</h2>
388                         <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>
389                         <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>
390                         {foreach from=$users_to_migrate item=val key=key}
392                                 {if $users_to_migrate.$key.checked}
393                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
394                                         {$users_to_migrate.$key.dn}
395                                         {if $users_to_migrate.$key.after != ""}
396                                                 <div class="step2_entry_container_info" id="sol_8">
398 {t}Current{/t}
399 <div style='padding-left:20px;'>
400 <pre>
401 dn: {$users_to_migrate.$key.dn}
402 {$users_to_migrate.$key.before}
403 </pre>
404 </div>
405 {t}After migration{/t}
406 <div style='padding-left:20px;'>
407 <pre>
408 dn: {$users_to_migrate.$key.dn}
409 {$users_to_migrate.$key.after}
410 </pre>
411 </div>
412                                                 </div>
413                                         {/if}
414                                 {else}
415                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
416                                         {$users_to_migrate.$key.dn}
417                                 {/if}
418                                 <br>
419                         {/foreach}
420                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
421                         {t}Select all{/t}
422                         <br>
424                         {if $user_details}
425                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
426                         {else}
427                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
428                         {/if}
430                         <p class='seperator'>&nbsp;</p> 
432                         <div style='width:99%; text-align:right; padding-top:5px;'>
433                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
434                                 &nbsp;
435                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
436                         </div>
439         {elseif $method == "devices"}
442                         <h2>Devices</h2>
444                         <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>
445                         <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>
446                 {foreach from=$devices item=item key=key}
447                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
448                                 <b>{$item.DEVICE_NAME}</b>
449                                  - {$item.DN} 
451                                 {if $item.DETAILS && $device_details}
452                                         <div class="step2_entry_container_info">
453                                                 <b>{t}Current{/t}</b>
454                                                 <pre>{$item.CURRENT}</pre>
455         
456                                                 
457                                                 <b>{t}After migration{/t}</b>
458                                                 <pre>{$item.AFTER}</pre>
459                                         </div>
460                                 {/if}
461                         <br>
462                 {/foreach}
463                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
464                 {t}Select all{/t}
465         
466                 <br>
468                 {if $device_details}
469                         <input type='submit' name='device_dialog_refresh' value='{t}Hide changes{/t}'>
470                         <input type='submit' name='dummy_11' value='{t}Refresh{/t}'>
471                 {else}
472                         <input type='submit' name='device_dialog_whats_done' value='{t}Show changes{/t}'>
473                 {/if}
475                 <p class='seperator'>&nbsp;</p> 
477                 <div style='width:99%; text-align:right; padding-top:5px;'>
478                         <input type='submit' name='migrate_devices' value='{t}Apply{/t}'>
479                         &nbsp;
480                         <input type='submit' name='device_dialog_cancel' value='{t}Cancel{/t}'>
481                 </div>
483         {elseif $method == "services"}
486                         <h2>Services</h2>
488                         <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>
489                         <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>
490                 {foreach from=$services item=item key=key}
491                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
492                                 <b>{$item.DN}</b>
494                                 {if $item.DETAILS && $service_details}
495                                         <div class="step2_entry_container_info">
496                                                 <b>{t}Current{/t}</b>
497                                                 <pre>{$item.CURRENT}</pre>
498         
499                                                 
500                                                 <b>{t}After migration{/t}</b>
501                                                 <pre>{$item.AFTER}</pre>
502                                         </div>
503                                 {/if}
504                         <br>
505                 {/foreach}
506                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
507                 {t}Select all{/t}
508         
509                 <br>
511                 {if $service_details}
512                         <input type='submit' name='service_dialog_refresh' value='{t}Hide changes{/t}'>
513                         <input type='submit' name='dummy_11' value='{t}Refresh{/t}'>
514                 {else}
515                         <input type='submit' name='service_dialog_whats_done' value='{t}Show changes{/t}'>
516                 {/if}
518                 <p class='seperator'>&nbsp;</p> 
520                 <div style='width:99%; text-align:right; padding-top:5px;'>
521                         <input type='submit' name='migrate_services' value='{t}Apply{/t}'>
522                         &nbsp;
523                         <input type='submit' name='service_dialog_cancel' value='{t}Cancel{/t}'>
524                 </div>
527         {elseif $method == "menus"}
530                         <h2>Application menus</h2>
532                         <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>
533                         <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>
534                 {foreach from=$menus item=item key=key}
535                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
536                                 <b>{$item.DN}</b>
538                                 {if $item.DETAILS && $menu_details}
539                                         <div class="step2_entry_container_info">
540                                                 <b>{t}Current{/t}</b>
541                                                 <pre>{$item.CURRENT}</pre>
542         
543                                                 
544                                                 <b>{t}After migration{/t}</b>
545                                                 <pre>{$item.AFTER}</pre>
546                                         </div>
547                                 {/if}
548                         <br>
549                 {/foreach}
550                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
551                 {t}Select all{/t}
552         
553                 <br>
555                 {if $menu_details}
556                         <input type='submit' name='menu_dialog_refresh' value='{t}Hide changes{/t}'>
557                         <input type='submit' name='dummy_11' value='{t}Refresh{/t}'>
558                 {else}
559                         <input type='submit' name='menu_dialog_whats_done' value='{t}Show changes{/t}'>
560                 {/if}
562                 <p class='seperator'>&nbsp;</p> 
564                 <div style='width:99%; text-align:right; padding-top:5px;'>
565                         <input type='submit' name='migrate_menus' value='{t}Apply{/t}'>
566                         &nbsp;
567                         <input type='submit' name='menu_dialog_cancel' value='{t}Cancel{/t}'>
568                 </div>
569         {/if}
570     </div>
571 </div>