Code

Made list visible
[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='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_winstation_',true)">
65                         <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_winstation_',false)">
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}
120                         <p>
121                                 <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_group_',true)">
122                                 <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_group_',false)">
123                         {if $group_details}
124                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
125                         {else}
126                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
127                         {/if}
128                         </p>
130                         <p class='seperator'>&nbsp;</p> 
131                         <div style='width:99%; text-align:right; padding:5px;'>
132                                 <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
133                                 &nbsp;
134                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
135                         </div>
136                 
137                 {elseif $method == "outside_users"}
139                         <h2>{t}Move users into configured user tree{/t}</h2>
140                         <p>
141                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
142                         </p>
143                         <p style='color:red'>
144                         {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}
145                         </p>    
146                         <p>
147                         {t}Move selected users into this people tree{/t}: 
148                         <select name='move_user_to'>
149                                 {html_options options=$ous}
150                         </select>
151                         </p>
152                         {foreach from=$outside_users item=val key=key}
153                                 {if $outside_users.$key.selected}
154                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
155                                 {else}
156                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
157                                 {/if}
159                                 &nbsp;{$outside_users.$key.dn}
160                                 {if $outside_users.$key.ldif != "" && $user_details}
161                       <div class="step2_entry_container_info" id="sol_8">
162 <div style='padding-left:20px;'>
163 <pre>
164 {$outside_users.$key.ldif}
165 </pre>
166 </div>
167 </div>
168                                 {/if}
169                                 <br>
170                         {/foreach}
171                         <br>
172                         <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^select_user_',true)">
173                         <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^select_user_',false)">
175                         {if $user_details}
176                         <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
177                         {else}
178                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
179                         {/if}
181                         <p class='seperator'>&nbsp;</p> 
182                         <div style='width:99%; text-align:right; padding:5px;'>
183                                 <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
184                                 &nbsp;
185                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
186                         </div>
187                 
189                 {elseif $method == "create_acls"}
191                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
192                         <div>
193 <pre>
194 {$what_will_be_done_now}
195 </pre>
196                         </div>          
197                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
198                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
199                 {else}
200                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
201         
202                         <p>
203                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
204                         </p>
205                         <table>
206                                 <tr>
207                                         <td>
208                                                 {t}Name{/t}:&nbsp;
209                                         </td>
210                                         <td>
211                                                 <i>System administrator</i>
212                                         </td>
213                                 </tr>
214                                 <tr>
215                                         <td>
216                                                 {t}User ID{/t}:&nbsp;
217                                         </td>
218                                         <td>
219                                                 <i>admin</i>
220                                         </td>
221                                 </tr>
222                                 <tr>
223                                         <td>
224                                                 {t}Password{/t}:&nbsp;
225                                         </td>
226                                         <td>
227                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
228                                         </td>
229                                 </tr>
230                                 <tr>
231                                         <td>
232                                                 {t}Password (again){/t}:&nbsp;
233                                         </td>
234                                         <td>
235                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
236                                         </td>
237                                 </tr>
238                         </table>
239         
240 <!-- Place cursor -->
241 <script language="JavaScript" type="text/javascript">
242   <!-- // First input field on page
243   document.mainform.new_user_password.focus();
244   -->
245 </script>
246                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
247                         
248                         {if $users_cnt != 0 || $groups_cnt != 0 || 1}
249                         
250                         <h2>{t}Assign super administrator permissions to an existing user or group{/t}</h2>
251                         <p>{t}To grant administrative permissions to a user or a group, select an object and choose 'Assign'.{/t}</p>
252                         <select name='acl_create_type' onChange='document.mainform.submit();' >
253                                 {if $type == "user"}
254                                 <option value='group'>{t}Group{/t}</option>
255                                 <option selected value='user'>{t}User{/t}</option>
256                                 {else}
257                                 <option selected value='group'>{t}Group{/t}</option>
258                                 <option value='user'>{t}User{/t}</option>
259                                 {/if}
260                         </select>
261                         <select name='create_acls_selected' size="12" style='width:100%;'>
262                                 {if $type == "user"}
263                                         {html_options options=$users selected=$acl_create_selected}
264                                 {else}
265                                         {html_options options=$groups selected=$acl_create_selected}
266                                 {/if}
267                         </select>
268                         <input type='submit' name='create_acls_create' value='{t}Apply{/t}'>
269                         {/if}
270                         <p class='seperator'>&nbsp;</p> 
272                         <div style='width:99%; text-align:right; padding:5px;'>
273                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
274                         </div>
275                 
276                 {/if}
280                 {elseif $method == "migrate_deps"}
281         
282                         <h2>Department migration</h2>
284                         <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>
285                         <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>
286                                         
287                         {foreach from=$deps_to_migrate item=val key=key}
289                                 {if $deps_to_migrate.$key.checked}
290                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
291                                         {$deps_to_migrate.$key.dn}
292                                         {if $deps_to_migrate.$key.after != ""}
293                                                 <div class="step2_entry_container_info" id="sol_8">
295 {t}Current{/t}
296 <div style='padding-left:20px;'>
297 <pre>
298 dn: {$deps_to_migrate.$key.dn}
299 {$deps_to_migrate.$key.before}
300 </pre>
301 </div>
302 {t}After migration{/t}
303 <div style='padding-left:20px;'>
304 <pre>
305 dn: {$deps_to_migrate.$key.dn}
306 {$deps_to_migrate.$key.after}
307 </pre>
308 </div>
309                                                 </div>
310                                         {/if}
311                                 {else}
312                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
313                                         {$deps_to_migrate.$key.dn}
314                                 {/if}
315                                 
317                         {/foreach}
319                         <br>
320                         <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
321                         <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
323                         {if $deps_details}
324                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
325                         {else}
326                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
327                         {/if}
329                         <p class='seperator'>&nbsp;</p> 
331                         <div style='width:99%; text-align:right; padding:5px;'>
332                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
333                                 &nbsp;
334                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
335                         </div>
336                 {elseif $method == "migrate_users"}
337         
338                         <h2>User migration</h2>
340                         <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>
341                         <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>
342                         {foreach from=$users_to_migrate item=val key=key}
344                                 {if $users_to_migrate.$key.checked}
345                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
346                                         {$users_to_migrate.$key.dn}
347                                         {if $users_to_migrate.$key.after != ""}
348                                                 <div class="step2_entry_container_info" id="sol_8">
350 {t}Current{/t}
351 <div style='padding-left:20px;'>
352 <pre>
353 dn: {$users_to_migrate.$key.dn}
354 {$users_to_migrate.$key.before}
355 </pre>
356 </div>
357 {t}After migration{/t}
358 <div style='padding-left:20px;'>
359 <pre>
360 dn: {$users_to_migrate.$key.dn}
361 {$users_to_migrate.$key.after}
362 </pre>
363 </div>
364                                                 </div>
365                                         {/if}
366                                 {else}
367                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
368                                         {$users_to_migrate.$key.dn}
369                                 {/if}
371                                 <br>
372                                 
374                         {/foreach}
375                         <br>
376             <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
377             <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
379                         {if $user_details}
380                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
381                         {else}
382                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
383                         {/if}
385                         <p class='seperator'>&nbsp;</p> 
387                         <div style='width:99%; text-align:right; padding-top:5px;'>
388                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
389                                 &nbsp;
390                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
391                         </div>
392         {/if}
393     </div>
394 </div>