Code

Udpated admin create method
[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 }
249                         
250                         <h2>{t}Assign super administrator permissions to an existing user{/t}</h2>
251                         <p>{t}To grant administrative permissions to a user, select one and choose 'Assign'.{/t}</p>
252                         <select name='create_acls_selected' size="12" style='width:100%;'>
253                                 {html_options options=$users selected=$acl_create_selected}
254                         </select>
255                         <input type='submit' name='create_acls_create' value='{t}Apply{/t}'>
256                         {/if}
257                         <p class='seperator'>&nbsp;</p> 
259                         <div style='width:99%; text-align:right; padding:5px;'>
260                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
261                         </div>
262                 
263                 {/if}
267                 {elseif $method == "migrate_deps"}
268         
269                         <h2>Department migration</h2>
271                         <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>
272                         <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>
273                                         
274                         {foreach from=$deps_to_migrate item=val key=key}
276                                 {if $deps_to_migrate.$key.checked}
277                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
278                                         {$deps_to_migrate.$key.dn}
279                                         {if $deps_to_migrate.$key.after != ""}
280                                                 <div class="step2_entry_container_info" id="sol_8">
282 {t}Current{/t}
283 <div style='padding-left:20px;'>
284 <pre>
285 dn: {$deps_to_migrate.$key.dn}
286 {$deps_to_migrate.$key.before}
287 </pre>
288 </div>
289 {t}After migration{/t}
290 <div style='padding-left:20px;'>
291 <pre>
292 dn: {$deps_to_migrate.$key.dn}
293 {$deps_to_migrate.$key.after}
294 </pre>
295 </div>
296                                                 </div>
297                                         {/if}
298                                 {else}
299                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
300                                         {$deps_to_migrate.$key.dn}
301                                 {/if}
302                                 
304                         {/foreach}
306                         <br>
307                         <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
308                         <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
310                         {if $deps_details}
311                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
312                         {else}
313                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
314                         {/if}
316                         <p class='seperator'>&nbsp;</p> 
318                         <div style='width:99%; text-align:right; padding:5px;'>
319                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
320                                 &nbsp;
321                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
322                         </div>
323                 {elseif $method == "migrate_users"}
324         
325                         <h2>User migration</h2>
327                         <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>
328                         <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>
329                         {foreach from=$users_to_migrate item=val key=key}
331                                 {if $users_to_migrate.$key.checked}
332                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
333                                         {$users_to_migrate.$key.dn}
334                                         {if $users_to_migrate.$key.after != ""}
335                                                 <div class="step2_entry_container_info" id="sol_8">
337 {t}Current{/t}
338 <div style='padding-left:20px;'>
339 <pre>
340 dn: {$users_to_migrate.$key.dn}
341 {$users_to_migrate.$key.before}
342 </pre>
343 </div>
344 {t}After migration{/t}
345 <div style='padding-left:20px;'>
346 <pre>
347 dn: {$users_to_migrate.$key.dn}
348 {$users_to_migrate.$key.after}
349 </pre>
350 </div>
351                                                 </div>
352                                         {/if}
353                                 {else}
354                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
355                                         {$users_to_migrate.$key.dn}
356                                 {/if}
358                                 <br>
359                                 
361                         {/foreach}
362                         <br>
363             <input type='button' value='{t}Select all{/t}' onClick="acl_set_all('^migrate_',true)">
364             <input type='button' value='{t}Select none{/t}' onClick="acl_set_all('^migrate_',false)">
366                         {if $user_details}
367                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
368                         {else}
369                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
370                         {/if}
372                         <p class='seperator'>&nbsp;</p> 
374                         <div style='width:99%; text-align:right; padding-top:5px;'>
375                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
376                                 &nbsp;
377                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
378                         </div>
379         {/if}
380     </div>
381 </div>