Code

Layout and translation fixes
[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 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                         {if $users_cnt != 0 || $groups_cnt != 0}
235                         
236                         <h2>{t}Assign super administrator permissions to an existing user or group{/t}</h2>
237                         <p>{t}To grant administrative permissions to a user or a group, select an object and choose 'Assign'.{/t}</p>
238                         <select name='acl_create_type' onChange='document.mainform.submit();' >
239                                 {if $type == "user"}
240                                 <option value='group'>{t}Group{/t}</option>
241                                 <option selected value='user'>{t}User{/t}</option>
242                                 {else}
243                                 <option selected value='group'>{t}Group{/t}</option>
244                                 <option value='user'>{t}User{/t}</option>
245                                 {/if}
246                         </select>
247                         <select name='create_acls_selected' size="12" style='width:100%;'>
248                                 {if $type == "user"}
249                                         {html_options options=$users selected=$acl_create_selected}
250                                 {else}
251                                         {html_options options=$groups selected=$acl_create_selected}
252                                 {/if}
253                         </select>
254                         {/if}
255                 {/if}
258                         <p class='seperator'>&nbsp;</p> 
260                         <div style='width:99%; text-align:right; padding:5px;'>
261                                 {if $users_cnt != 0 || $groups_cnt != 0}
262                                 <input type='submit' name='create_acls_create' value='{t}Apply{/t}'>
263                                 {else}
264                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
265                                 {/if}
266                                 &nbsp;
267                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
268                         </div>
269                 
271                 {elseif $method == "migrate_deps"}
272         
273                         <h2>Department migration</h2>
275                         <p>{t}The listed deparmtents 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>
276                         <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>
277                                         
278                         {foreach from=$deps_to_migrate item=val key=key}
280                                 {if $deps_to_migrate.$key.checked}
281                                         <input type='checkbox' name='migrate_{$key}' checked>
282                                         {$deps_to_migrate.$key.dn}
283                                         {if $deps_to_migrate.$key.after != ""}
284                                                 <div class="step2_entry_container_info" id="sol_8">
286 {t}Current{/t}
287 <div style='padding-left:20px;'>
288 <pre>
289 dn: {$deps_to_migrate.$key.dn}
290 {$deps_to_migrate.$key.before}
291 </pre>
292 </div>
293 {t}After migration{/t}
294 <div style='padding-left:20px;'>
295 <pre>
296 dn: {$deps_to_migrate.$key.dn}
297 {$deps_to_migrate.$key.after}
298 </pre>
299 </div>
300                                                 </div>
301                                         {/if}
302                                 {else}
303                                         <input type='checkbox' name='migrate_{$key}'>
304                                         {$deps_to_migrate.$key.dn}
305                                 {/if}
306                                 
308                         {/foreach}
310                         <br>
311                         {if $deps_details}
312                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
313                         {else}
314                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
315                         {/if}
317                         <p class='seperator'>&nbsp;</p> 
319                         <div style='width:99%; text-align:right; padding:5px;'>
320                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
321                                 &nbsp;
322                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
323                         </div>
324                 {elseif $method == "migrate_users"}
325         
326                         <h2>User migration</h2>
328                         <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>
329                         <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>
330                         {foreach from=$users_to_migrate item=val key=key}
332                                 {if $users_to_migrate.$key.checked}
333                                         <input type='checkbox' name='migrate_{$key}' checked>
334                                         {$users_to_migrate.$key.dn}
335                                         {if $users_to_migrate.$key.after != ""}
336                                                 <div class="step2_entry_container_info" id="sol_8">
338 {t}Current{/t}
339 <div style='padding-left:20px;'>
340 <pre>
341 dn: {$users_to_migrate.$key.dn}
342 {$users_to_migrate.$key.before}
343 </pre>
344 </div>
345 {t}After migration{/t}
346 <div style='padding-left:20px;'>
347 <pre>
348 dn: {$users_to_migrate.$key.dn}
349 {$users_to_migrate.$key.after}
350 </pre>
351 </div>
352                                                 </div>
353                                         {/if}
354                                 {else}
355                                         <input type='checkbox' name='migrate_{$key}'>
356                                         {$users_to_migrate.$key.dn}
357                                 {/if}
359                                 <br>
360                                 
362                         {/foreach}
363                         <br>
365                         {if $user_details}
366                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
367                         {else}
368                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
369                         {/if}
371                         <p class='seperator'>&nbsp;</p> 
373                         <div style='width:99%; text-align:right; padding-top:5px;'>
374                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
375                                 &nbsp;
376                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
377                         </div>
378         {/if}
379     </div>
380 </div>