Code

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