Code

cbf5a8ee06d1cf2d310cd5802418f91a8f70eea8
[gosa.git] / setup / setup_migrate.tpl
1 <div>
3         <h1 style='color:red'>Style fixes necessary here ;-)</h1>
4     <div class='default'>
6                 {if $method == "default"}
8         <p>     
9                 Create a reload for each entry later 
10                 <input type='submit' name='reload' value='{t}Reload{/t}'>
11                 <p>&nbsp;</p>
12         </p>
14                         {foreach from=$checks item=val key=key}
15                                 <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
16                                 {if $checks.$key.STATUS}
17                                         <div class='step2_successful'>{$checks.$key.STATUS_MSG}
18                                         {if $checks.$key.ERROR_MSG}
19                                                 {$checks.$key.ERROR_MSG}
20                                         {/if}
21                                         </div>
22                                 {else}
23                                         <div class='step2_failed'>{$checks.$key.STATUS_MSG}
24                                         </div>
25                                         <div>
26                                         {if $checks.$key.ERROR_MSG}
27                                                 {$checks.$key.ERROR_MSG}
28                                         {/if}
29                                         </div>
30                                 {/if}
31                                 <div>&nbsp;</div>
32                         {/foreach}
34                 {elseif $method == "outside_winstations"}
36                         <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
38                         {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
39                         <br>
40                         {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
41                         <br>
42                         <br>    
44                         {foreach from=$outside_winstations item=val key=key}
45                                 {if $outside_winstations.$key.selected}
46                                         <input type='checkbox' name='select_winstation_{$key}' checked>
47                                 {else}
48                                         <input type='checkbox' name='select_winstation_{$key}'>
49                                 {/if}
51                                 &nbsp;{$outside_winstations.$key.dn}
52                                 {if $outside_winstations.$key.ldif != ""}
53                       <div class="step2_entry_container_info" id="sol_8">
54 <div style='padding-left:20px;'>
55 <pre>
56 {$outside_winstations.$key.ldif}
57 </pre>
58 </div>
59 </div>
60                                 {/if}
61                                 <br>
62                         {/foreach}
64                         <p>
65                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
66                         <select name='move_winstation_to'>
67                                 {html_options options=$ous}
68                         </select>
69                         <br>
70                         <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
71                         <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
72                         </p>
73                                 
75                         <p class='seperator'>&nbsp;</p> 
76                         <div style='width:100%; text-align:right; padding:5px;'>
77                                 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
78                         </div>
79                 
81                 {elseif $method == "outside_groups"}
83                         <h2>{t}Move groups into valid group departments{/t}</h2>
85                         {t}This dialog allows you to move the displayed groups into a valid group department{/t}
86                         <br>
87                         {t}Be careful with this tool, there may be references pointing to this group that can't be migrated.{/t}
88                         <br>
89                         <br>    
91                         {foreach from=$outside_groups item=val key=key}
92                                 {if $outside_groups.$key.selected}
93                                         <input type='checkbox' name='select_group_{$key}' checked>
94                                 {else}
95                                         <input type='checkbox' name='select_group_{$key}'>
96                                 {/if}
98                                 &nbsp;{$outside_groups.$key.dn}
99                                 {if $outside_groups.$key.ldif != ""}
100                       <div class="step2_entry_container_info" id="sol_8">
101 <div style='padding-left:20px;'>
102 <pre>
103 {$outside_groups.$key.ldif}
104 </pre>
105 </div>
106 </div>
107                                 {/if}
108                                 <br>
109                         {/foreach}
111                         <p>
112                         <b>{t}Move selected group into the following GOsa people department{/t} : </b>
113                         <select name='move_group_to'>
114                                 {html_options options=$ous}
115                         </select>
116                         <br>
117                         <input type='submit' name='outside_groups_dialog_perform' value='{t}Move selected groups{/t}'>
118                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}What will be done here{/t}'>
119                         </p>
120                                 
122                         <p class='seperator'>&nbsp;</p> 
123                         <div style='width:100%; text-align:right; padding:5px;'>
124                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Close{/t}'>
125                         </div>
126                 
128                 {elseif $method == "create_acls"}
129                 {elseif $method == "outside_users"}
131                         <h2>{t}Move users into valid user departments{/t}</h2>
133                         {t}This dialog allows you to move the displayed users into a valid user department{/t}
134                         <br>
135                         {t}Be careful with this tool, there may be references pointing to this user that can't be migrated.{/t}
136                         <br>
137                         <br>    
139                         {foreach from=$outside_users item=val key=key}
140                                 {if $outside_users.$key.selected}
141                                         <input type='checkbox' name='select_user_{$key}' checked>
142                                 {else}
143                                         <input type='checkbox' name='select_user_{$key}'>
144                                 {/if}
146                                 &nbsp;{$outside_users.$key.dn}
147                                 {if $outside_users.$key.ldif != ""}
148                       <div class="step2_entry_container_info" id="sol_8">
149 <div style='padding-left:20px;'>
150 <pre>
151 {$outside_users.$key.ldif}
152 </pre>
153 </div>
154 </div>
155                                 {/if}
156                                 <br>
157                         {/foreach}
159                         <p>
160                         <b>{t}Move selected user into the following GOsa people department{/t} : </b>
161                         <select name='move_user_to'>
162                                 {html_options options=$ous}
163                         </select>
164                         <br>
165                         <input type='submit' name='outside_users_dialog_perform' value='{t}Move selected user{/t}'>
166                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}What will be done here{/t}'>
167                         </p>
168                                 
170                         <p class='seperator'>&nbsp;</p> 
171                         <div style='width:100%; text-align:right; padding:5px;'>
172                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Close{/t}'>
173                         </div>
174                 
176                 {elseif $method == "create_acls"}
178                 <h2>{t}Acl setup{/t}</h2>
179         
180                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
181                         <div>
182 <pre>
183 {$what_will_be_done_now}
184 </pre>
185                         </div>          
186                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
187                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
188                 {else}
189                 <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
190         
191                         {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
192                         <p style='padding-left:10px;'>
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='input' value='{$new_user_password}' name='new_user_password'><br>
216                                         </td>
217                                 </tr>
218                         </table>
219                         <input type='submit' name='create_admin_user' value='{t}Create{/t}'>    
220                         </p>
221                         
222                         {if $users_cnt != 0 || $groups_cnt != 0}
223                         
224                         <p>&nbsp;</p>
225                         <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
226                         Bla {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
227                         <p style='padding-left:10px;'>
228                         <select name='acl_create_type' onChange='document.mainform.submit();' >
229                                 {if $type == "user"}
230                                 <option value='group'>{t}Group{/t}</option>
231                                 <option selected value='user'>{t}User{/t}</option>
232                                 {else}
233                                 <option selected value='group'>{t}Group{/t}</option>
234                                 <option value='user'>{t}User{/t}</option>
235                                 {/if}
236                         </select>
237                         <select name='create_acls_selected' size="12" style='width:100%;'>
238                                 {if $type == "user"}
239                                         {html_options options=$users selected=$acl_create_selected}
240                                 {else}
241                                         {html_options options=$groups selected=$acl_create_selected}
242                                 {/if}
243                         </select>
245                                 <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
246                         </p>
247                         {/if}
248                 {/if}
251                         <p class='seperator'>&nbsp;</p> 
253                         <div style='width:100%; text-align:right; padding:5px;'>
254                                 <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
255                         </div>
256                 
258                 {elseif $method == "migrate_deps"}
259         
260                         <h2>Department migration</h2>
262                         {t}The listed deparmtents below are currenlty invisble in the GOsa user interface. If you want to migrate a set of departments, just select them and use the migrate button below.{/t}<br>
263                         {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
264                                         
266                         <br><br>
267                         {foreach from=$deps_to_migrate item=val key=key}
269                                 {if $deps_to_migrate.$key.checked}
270                                         <input type='checkbox' name='migrate_{$key}' checked>
271                                         {$deps_to_migrate.$key.dn}
272                                         {if $deps_to_migrate.$key.after != ""}
273                                                 <div class="step2_entry_container_info" id="sol_8">
275 {t}Current{/t}
276 <div style='padding-left:20px;'>
277 <pre>
278 dn: {$deps_to_migrate.$key.dn}
279 {$deps_to_migrate.$key.before}
280 </pre>
281 </div>
282 {t}After migration{/t}
283 <div style='padding-left:20px;'>
284 <pre>
285 dn: {$deps_to_migrate.$key.dn}
286 {$deps_to_migrate.$key.after}
287 </pre>
288 </div>
289                                                 </div>
290                                         {/if}
291                                 {else}
292                                         <input type='checkbox' name='migrate_{$key}'>
293                                         {$deps_to_migrate.$key.dn}
294                                 {/if}
296                                 <br>
297                                 
299                         {/foreach}
300                         <br>
302                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
303                         <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
304                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
306                         <p class='seperator'>&nbsp;</p> 
308                         <div style='width:100%; text-align:right; padding:5px;'>
309                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
310                         </div>
311                 {elseif $method == "migrate_users"}
312         
313                         <h2>User migration</h2>
315                         {t}The listed deparmtents below are currenlty invisble in the GOsa user interface. If you want to migrate a set of departments, just select them and use the migrate button below.{/t}<br>
316                         {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
317                                         
319                         <br><br>
320                         {foreach from=$users_to_migrate item=val key=key}
322                                 {if $users_to_migrate.$key.checked}
323                                         <input type='checkbox' name='migrate_{$key}' checked>
324                                         {$users_to_migrate.$key.dn}
325                                         {if $users_to_migrate.$key.after != ""}
326                                                 <div class="step2_entry_container_info" id="sol_8">
328 {t}Current{/t}
329 <div style='padding-left:20px;'>
330 <pre>
331 dn: {$users_to_migrate.$key.dn}
332 {$users_to_migrate.$key.before}
333 </pre>
334 </div>
335 {t}After migration{/t}
336 <div style='padding-left:20px;'>
337 <pre>
338 dn: {$users_to_migrate.$key.dn}
339 {$users_to_migrate.$key.after}
340 </pre>
341 </div>
342                                                 </div>
343                                         {/if}
344                                 {else}
345                                         <input type='checkbox' name='migrate_{$key}'>
346                                         {$users_to_migrate.$key.dn}
347                                 {/if}
349                                 <br>
350                                 
352                         {/foreach}
353                         <br>
355                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
356                         <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
357                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
359                         <p class='seperator'>&nbsp;</p> 
361                         <div style='width:100%; text-align:right; padding:5px;'>
362                                 <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
363                         </div>
364                 {else}
366         * Create a test department with some objects to check for correct permissions
367         <br>
368         * Look for ACL's. If none is there, choose one user to be the super administrator
369         <br>
370         * Look for organizationalUnits and let add GOsa departments for selected ones
371         <br>
372         * Look for person / organizationalPerson and add GOsa account
373         <br>
374         * Allow to move selected users to people ou's - take care for groupOfNames
375         <br>
376         * Allow to move selected groups to group ou's - take care for groupOfNames
377         <br>
378         * Allow to move selected winstations to winstation ou's - take care for groupOfNames
379         <br>
380         * Check for double uidNumbers/gidNumbers
381         <br>
382         * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
384         
385         {/if}
386     </div>
387 </div>