Code

Updated setup
[gosa.git] / 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 == "outside_winstations"}
37                         <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
39                         {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
40                         <br>
41                         {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
42                         <br>
43                         <br>    
45                         {foreach from=$outside_winstations item=val key=key}
46                                 {if $outside_winstations.$key.selected}
47                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}' checked>
48                                 {else}
49                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}'>
50                                 {/if}
52                                 &nbsp;{$outside_winstations.$key.dn}
53                                 {if $outside_winstations.$key.ldif != ""}
54                     <div class="step2_entry_container_info" id="sol_8">
55                                                 <div style='padding-left:20px;'>
56                                                         <pre>
57                                                                 {$outside_winstations.$key.ldif}
58                                                         </pre>
59                                                 </div>
60                                         </div>
61                                 {/if}
62                                 <br>
63                         {/foreach}
64                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_winstation_','toggle_calue')">
65                         {t}Select all{/t}
66                         <p>
67                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
68                         <select name='move_winstation_to'>
69                                 {html_options options=$ous}
70                         </select>
71                         <br>
72                         <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
73                         <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
74                         </p>
75                                 
77                         <p class='seperator'>&nbsp;</p> 
78                         <div style='width:100%; text-align:right; padding:5px;'>
79                                 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
80                         </div>
81                 
83                 {elseif $method == "outside_groups"}
85                         <h2>{t}Move groups into configured group tree{/t}</h2>
87                         <p>
88                         {t}This dialog allows moving a couple of groups to the configured group tree. Doing this may straighten your LDAP service.{/t}
89                         </p>
90                         <p style='color:red'>
91                         {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}
92                         </p>
93                         <p>
94                         {t}Move selected groups into this group tree{/t}: 
95                         <select name='move_group_to'>
96                                 {html_options options=$ous}
97                         </select>
98                         </p>
100                         {foreach from=$outside_groups item=val key=key}
101                                 {if $outside_groups.$key.selected}
102                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}' checked>
103                                 {else}
104                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}'>
105                                 {/if}
107                                 &nbsp;{$outside_groups.$key.dn}
108                                 {if $outside_groups.$key.ldif != "" && $group_details}
109                       <div class="step2_entry_container_info" id="sol_8">
110 <div style='padding-left:20px;'>
111 <pre>
112 {$outside_groups.$key.ldif}
113 </pre>
114 </div>
115 </div>
116                                 {/if}
117                                 <br>
118                         {/foreach}
119                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
120                         &nbsp;{t}Select all{/t}
121                         <p>
122                         {if $group_details}
123                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
124                         {else}
125                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
126                         {/if}
127                         </p>
129                         <p class='seperator'>&nbsp;</p> 
130                         <div style='width:99%; text-align:right; padding:5px;'>
131                                 <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
132                                 &nbsp;
133                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
134                         </div>
135                 
136                 {elseif $method == "outside_users"}
138                         <h2>{t}Move users into configured user tree{/t}</h2>
139                         <p>
140                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
141                         </p>
142                         <p style='color:red'>
143                         {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}
144                         </p>    
145                         <p>
146                         {t}Move selected users into this people tree{/t}: 
147                         <select name='move_user_to'>
148                                 {html_options options=$ous}
149                         </select>
150                         </p>
151                         {foreach from=$outside_users item=val key=key}
152                                 {if $outside_users.$key.selected}
153                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
154                                 {else}
155                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
156                                 {/if}
158                                 &nbsp;{$outside_users.$key.dn}
159                                 {if $outside_users.$key.ldif != "" && $user_details}
160                       <div class="step2_entry_container_info" id="sol_8">
161 <div style='padding-left:20px;'>
162 <pre>
163 {$outside_users.$key.ldif}
164 </pre>
165 </div>
166 </div>
167                                 {/if}
168                                 <br>
169                         {/foreach}
170                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
171                         &nbsp;{t}Select all{/t}
172                         <br>
174                         {if $user_details}
175                         <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
176                         {else}
177                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
178                         {/if}
180                         <p class='seperator'>&nbsp;</p> 
181                         <div style='width:99%; text-align:right; padding:5px;'>
182                                 <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
183                                 &nbsp;
184                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
185                         </div>
186                 
188                 {elseif $method == "create_acls"}
190                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
191                         <div>
192 <pre>
193 {$what_will_be_done_now}
194 </pre>
195                         </div>          
196                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
197                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
198                 {else}
199                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
200         
201                         <p>
202                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
203                         </p>
204                         <table>
205                                 <tr>
206                                         <td>
207                                                 {t}Name{/t}:&nbsp;
208                                         </td>
209                                         <td>
210                                                 <i>System administrator</i>
211                                         </td>
212                                 </tr>
213                 <tr>
214                     <td>
215                         {t}User ID{/t}:&nbsp;
216                     </td>
217                     <td>
218                         <input type='text' value='{$new_user_uid}' name='new_user_uid'><br>
219                     </td>
220                 </tr>
221                                 <tr>
222                                         <td>
223                                                 {t}Password{/t}:&nbsp;
224                                         </td>
225                                         <td>
226                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
227                                         </td>
228                                 </tr>
229                                 <tr>
230                                         <td>
231                                                 {t}Password (again){/t}:&nbsp;
232                                         </td>
233                                         <td>
234                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
235                                         </td>
236                                 </tr>
237                         </table>
238         
239 <!-- Place cursor -->
240 <script language="JavaScript" type="text/javascript">
241   <!-- // First input field on page
242         focus_field('new_user_password');
243   -->
244 </script>
245                         <p class='seperator'>&nbsp;</p> 
246                         <div style='width:99%; text-align:right; padding:5px;'>
247                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
248                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
249                         </div>
250                 
251                 {/if}
255                 {elseif $method == "migrate_deps"}
256         
257                         <h2>Department migration</h2>
259                         <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>
260                         <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>
261                                         
262                         {foreach from=$deps_to_migrate item=val key=key}
264                                 {if $deps_to_migrate.$key.checked}
265                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
266                                         {$deps_to_migrate.$key.dn}
267                                         {if $deps_to_migrate.$key.after != ""}
268                                                 <div class="step2_entry_container_info" id="sol_8">
270 {t}Current{/t}
271 <div style='padding-left:20px;'>
272 <pre>
273 dn: {$deps_to_migrate.$key.dn}
274 {$deps_to_migrate.$key.before}
275 </pre>
276 </div>
277 {t}After migration{/t}
278 <div style='padding-left:20px;'>
279 <pre>
280 dn: {$deps_to_migrate.$key.dn}
281 {$deps_to_migrate.$key.after}
282 </pre>
283 </div>
284                                                 </div>
285                                         {/if}
286                                 {else}
287                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
288                                         {$deps_to_migrate.$key.dn}
289                                 {/if}
290                                 
291                         <br>
292                         {/foreach}
293                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
294                         {t}Select all{/t}
295                         <br>
297                         {if $deps_details}
298                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
299                         {else}
300                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
301                         {/if}
303                         <p class='seperator'>&nbsp;</p> 
305                         <div style='width:99%; text-align:right; padding:5px;'>
306                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
307                                 &nbsp;
308                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
309                         </div>
310                 {elseif $method == "migrate_users"}
311         
312                         <h2>User migration</h2>
314                         <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>
315                         <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>
316                         {foreach from=$users_to_migrate item=val key=key}
318                                 {if $users_to_migrate.$key.checked}
319                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
320                                         {$users_to_migrate.$key.dn}
321                                         {if $users_to_migrate.$key.after != ""}
322                                                 <div class="step2_entry_container_info" id="sol_8">
324 {t}Current{/t}
325 <div style='padding-left:20px;'>
326 <pre>
327 dn: {$users_to_migrate.$key.dn}
328 {$users_to_migrate.$key.before}
329 </pre>
330 </div>
331 {t}After migration{/t}
332 <div style='padding-left:20px;'>
333 <pre>
334 dn: {$users_to_migrate.$key.dn}
335 {$users_to_migrate.$key.after}
336 </pre>
337 </div>
338                                                 </div>
339                                         {/if}
340                                 {else}
341                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
342                                         {$users_to_migrate.$key.dn}
343                                 {/if}
344                                 <br>
345                         {/foreach}
346                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
347                         {t}Select all{/t}
348                         <br>
350                         {if $user_details}
351                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
352                         {else}
353                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
354                         {/if}
356                         <p class='seperator'>&nbsp;</p> 
358                         <div style='width:99%; text-align:right; padding-top:5px;'>
359                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
360                                 &nbsp;
361                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
362                         </div>
363         {/if}
364     </div>
365 </div>