Code

Fixed typo
[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 type='checkbox' name='select_winstation_{$key}' checked>
48                                 {else}
49                                         <input 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}
65                         <p>
66                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
67                         <select name='move_winstation_to'>
68                                 {html_options options=$ous}
69                         </select>
70                         <br>
71                         <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
72                         <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
73                         </p>
74                                 
76                         <p class='seperator'>&nbsp;</p> 
77                         <div style='width:100%; text-align:right; padding:5px;'>
78                                 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
79                         </div>
80                 
82                 {elseif $method == "outside_groups"}
84                         <h2>{t}Move groups into configured group tree{/t}</h2>
86                         <p>
87                         {t}This dialog allows moving a couple of groups to the configured group tree. Doing this may straighten your LDAP service.{/t}
88                         </p>
89                         <p style='color:red'>
90                         {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}
91                         </p>
92                         <p>
93                         {t}Move selected groups into this group tree{/t}: 
94                         <select name='move_group_to'>
95                                 {html_options options=$ous}
96                         </select>
97                         </p>
99                         {foreach from=$outside_groups item=val key=key}
100                                 {if $outside_groups.$key.selected}
101                                         <input type='checkbox' name='select_group_{$key}' checked>
102                                 {else}
103                                         <input type='checkbox' name='select_group_{$key}'>
104                                 {/if}
106                                 &nbsp;{$outside_groups.$key.dn}
107                                 {if $outside_groups.$key.ldif != "" && $group_details}
108                       <div class="step2_entry_container_info" id="sol_8">
109 <div style='padding-left:20px;'>
110 <pre>
111 {$outside_groups.$key.ldif}
112 </pre>
113 </div>
114 </div>
115                                 {/if}
116                                 <br>
117                         {/foreach}
119                         <p>
120                         {if $group_details}
121                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
122                         {else}
123                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
124                         {/if}
125                         </p>
127                         <p class='seperator'>&nbsp;</p> 
128                         <div style='width:99%; text-align:right; padding:5px;'>
129                                 <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
130                                 &nbsp;
131                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
132                         </div>
133                 
134                 {elseif $method == "outside_users"}
136                         <h2>{t}Move users into configured user tree{/t}</h2>
137                         <p>
138                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
139                         </p>
140                         <p style='color:red'>
141                         {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}
142                         </p>    
143                         <p>
144                         {t}Move selected users into this people tree{/t}: 
145                         <select name='move_user_to'>
146                                 {html_options options=$ous}
147                         </select>
148                         </p>
149                         {foreach from=$outside_users item=val key=key}
150                                 {if $outside_users.$key.selected}
151                                         <input type='checkbox' name='select_user_{$key}' checked>
152                                 {else}
153                                         <input type='checkbox' name='select_user_{$key}'>
154                                 {/if}
156                                 &nbsp;{$outside_users.$key.dn}
157                                 {if $outside_users.$key.ldif != "" && $user_details}
158                       <div class="step2_entry_container_info" id="sol_8">
159 <div style='padding-left:20px;'>
160 <pre>
161 {$outside_users.$key.ldif}
162 </pre>
163 </div>
164 </div>
165                                 {/if}
166                                 <br>
167                         {/foreach}
168                         <br>
169                         {if $user_details}
170                         <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
171                         {else}
172                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
173                         {/if}
175                         <p class='seperator'>&nbsp;</p> 
176                         <div style='width:99%; text-align:right; padding:5px;'>
177                                 <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
178                                 &nbsp;
179                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
180                         </div>
181                 
183                 {elseif $method == "create_acls"}
185                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
186                         <div>
187 <pre>
188 {$what_will_be_done_now}
189 </pre>
190                         </div>          
191                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
192                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
193                 {else}
194                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
195         
196                         <p>
197                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
198                         </p>
199                         <table>
200                                 <tr>
201                                         <td>
202                                                 {t}Name{/t}:&nbsp;
203                                         </td>
204                                         <td>
205                                                 <i>System administrator</i>
206                                         </td>
207                                 <tr>
208                                 <tr>
209                                         <td>
210                                                 {t}User ID{/t}:&nbsp;
211                                         </td>
212                                         <td>
213                                                 <i>admin</i>
214                                         </td>
215                                 <tr>
216                                 </tr>
217                                         <td>
218                                                 {t}Password{/t}:&nbsp;
219                                         </td>
220                                         <td>
221                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
222                                         </td>
223                                 </tr>
224                                 </tr>
225                                         <td>
226                                                 {t}Password (again){/t}:&nbsp;
227                                         </td>
228                                         <td>
229                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
230                                         </td>
231                                 </tr>
232                         </table>
233         
234 <!-- Place cursor -->
235 <script language="JavaScript" type="text/javascript">
236   <!-- // First input field on page
237   document.mainform.new_user_password.focus();
238   -->
239 </script>
240                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
241                         
242                         {if $users_cnt != 0 || $groups_cnt != 0}
243                         
244                         <h2>{t}Assign super administrator permissions to an existing user or group{/t}</h2>
245                         <p>{t}To grant administrative permissions to a user or a group, select an object and choose 'Assign'.{/t}</p>
246                         <select name='acl_create_type' onChange='document.mainform.submit();' >
247                                 {if $type == "user"}
248                                 <option value='group'>{t}Group{/t}</option>
249                                 <option selected value='user'>{t}User{/t}</option>
250                                 {else}
251                                 <option selected value='group'>{t}Group{/t}</option>
252                                 <option value='user'>{t}User{/t}</option>
253                                 {/if}
254                         </select>
255                         <select name='create_acls_selected' size="12" style='width:100%;'>
256                                 {if $type == "user"}
257                                         {html_options options=$users selected=$acl_create_selected}
258                                 {else}
259                                         {html_options options=$groups selected=$acl_create_selected}
260                                 {/if}
261                         </select>
262                         <input type='submit' name='create_acls_create' value='{t}Apply{/t}'>
263                         {/if}
264                 {/if}
267                         <p class='seperator'>&nbsp;</p> 
269                         <div style='width:99%; text-align:right; padding:5px;'>
270                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
271                         </div>
272                 
274                 {elseif $method == "migrate_deps"}
275         
276                         <h2>Department migration</h2>
278                         <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>
279                         <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>
280                                         
281                         {foreach from=$deps_to_migrate item=val key=key}
283                                 {if $deps_to_migrate.$key.checked}
284                                         <input type='checkbox' name='migrate_{$key}' checked>
285                                         {$deps_to_migrate.$key.dn}
286                                         {if $deps_to_migrate.$key.after != ""}
287                                                 <div class="step2_entry_container_info" id="sol_8">
289 {t}Current{/t}
290 <div style='padding-left:20px;'>
291 <pre>
292 dn: {$deps_to_migrate.$key.dn}
293 {$deps_to_migrate.$key.before}
294 </pre>
295 </div>
296 {t}After migration{/t}
297 <div style='padding-left:20px;'>
298 <pre>
299 dn: {$deps_to_migrate.$key.dn}
300 {$deps_to_migrate.$key.after}
301 </pre>
302 </div>
303                                                 </div>
304                                         {/if}
305                                 {else}
306                                         <input type='checkbox' name='migrate_{$key}'>
307                                         {$deps_to_migrate.$key.dn}
308                                 {/if}
309                                 
311                         {/foreach}
313                         <br>
314                         {if $deps_details}
315                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
316                         {else}
317                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
318                         {/if}
320                         <p class='seperator'>&nbsp;</p> 
322                         <div style='width:99%; text-align:right; padding:5px;'>
323                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
324                                 &nbsp;
325                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
326                         </div>
327                 {elseif $method == "migrate_users"}
328         
329                         <h2>User migration</h2>
331                         <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>
332                         <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>
333                         {foreach from=$users_to_migrate item=val key=key}
335                                 {if $users_to_migrate.$key.checked}
336                                         <input type='checkbox' name='migrate_{$key}' checked>
337                                         {$users_to_migrate.$key.dn}
338                                         {if $users_to_migrate.$key.after != ""}
339                                                 <div class="step2_entry_container_info" id="sol_8">
341 {t}Current{/t}
342 <div style='padding-left:20px;'>
343 <pre>
344 dn: {$users_to_migrate.$key.dn}
345 {$users_to_migrate.$key.before}
346 </pre>
347 </div>
348 {t}After migration{/t}
349 <div style='padding-left:20px;'>
350 <pre>
351 dn: {$users_to_migrate.$key.dn}
352 {$users_to_migrate.$key.after}
353 </pre>
354 </div>
355                                                 </div>
356                                         {/if}
357                                 {else}
358                                         <input type='checkbox' name='migrate_{$key}'>
359                                         {$users_to_migrate.$key.dn}
360                                 {/if}
362                                 <br>
363                                 
365                         {/foreach}
366                         <br>
368                         {if $user_details}
369                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
370                         {else}
371                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
372                         {/if}
374                         <p class='seperator'>&nbsp;</p> 
376                         <div style='width:99%; text-align:right; padding-top:5px;'>
377                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
378                                 &nbsp;
379                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
380                         </div>
381         {/if}
382     </div>
383 </div>