Code

Added additional check to delete block
[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='checkbox' id='toggle_calue' onClick="toggle_all_('^select_winstation_','toggle_calue')">
65                         {t}Select all{/t}
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                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
121                         {t}Select all{/t}
122                         <br>
123                         <p>
124                         {if $group_details}
125                         <input type='submit' name='outside_groups_dialog_refresh' value='{t}Hide changes{/t}'>
126                         {else}
127                         <input type='submit' name='outside_groups_dialog_whats_done' value='{t}Show changes{/t}'>
128                         {/if}
129                         </p>
131                         <p class='seperator'>&nbsp;</p> 
132                         <div style='width:99%; text-align:right; padding:5px;'>
133                                 <input type='submit' name='outside_groups_dialog_perform' value='{t}Apply{/t}'>
134                                 &nbsp;
135                                 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Cancel{/t}'>
136                         </div>
137                 
138                 {elseif $method == "outside_users"}
140                         <h2>{t}Move users into configured user tree{/t}</h2>
141                         <p>
142                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
143                         </p>
144                         <p style='color:red'>
145                         {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}
146                         </p>    
147                         <p>
148                         {t}Move selected users into this people tree{/t}: 
149                         <select name='move_user_to'>
150                                 {html_options options=$ous}
151                         </select>
152                         </p>
153                         {foreach from=$outside_users item=val key=key}
154                                 {if $outside_users.$key.selected}
155                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
156                                 {else}
157                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
158                                 {/if}
160                                 &nbsp;{$outside_users.$key.dn}
161                                 {if $outside_users.$key.ldif != "" && $user_details}
162                       <div class="step2_entry_container_info" id="sol_8">
163 <div style='padding-left:20px;'>
164 <pre>
165 {$outside_users.$key.ldif}
166 </pre>
167 </div>
168 </div>
169                                 {/if}
170                                 <br>
171                         {/foreach}
172                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
173                         {t}Select all{/t}
174                         <br>
176                         {if $user_details}
177                         <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
178                         {else}
179                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
180                         {/if}
182                         <p class='seperator'>&nbsp;</p> 
183                         <div style='width:99%; text-align:right; padding:5px;'>
184                                 <input type='submit' name='outside_users_dialog_perform' value='{t}Apply{/t}'>
185                                 &nbsp;
186                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Cancel{/t}'>
187                         </div>
188                 
190                 {elseif $method == "create_acls"}
192                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
193                         <div>
194 <pre>
195 {$what_will_be_done_now}
196 </pre>
197                         </div>          
198                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
199                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
200                 {else}
201                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
202         
203                         <p>
204                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
205                         </p>
206                         <table>
207                                 <tr>
208                                         <td>
209                                                 {t}Name{/t}:&nbsp;
210                                         </td>
211                                         <td>
212                                                 <i>System administrator</i>
213                                         </td>
214                                 </tr>
215                                 <tr>
216                                         <td>
217                                                 {t}User ID{/t}:&nbsp;
218                                         </td>
219                                         <td>
220                                                 <input type='text' value='{$new_user_uid}' name='new_user_uid'><br>
221                                         </td>
222                                 </tr>
223                                 <tr>
224                                         <td>
225                                                 {t}Password{/t}:&nbsp;
226                                         </td>
227                                         <td>
228                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
229                                         </td>
230                                 </tr>
231                                 <tr>
232                                         <td>
233                                                 {t}Password (again){/t}:&nbsp;
234                                         </td>
235                                         <td>
236                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
237                                         </td>
238                                 </tr>
239                         </table>
240         
241 <!-- Place cursor -->
242 <script language="JavaScript" type="text/javascript">
243   <!-- // First input field on page
244         focus_field('new_user_password');
245   -->
246 </script>
248                         <p class='seperator'>&nbsp;</p> 
249                         <div style='width:99%; text-align:right; padding:5px;'>
250                                 <input type='submit' name='create_admin_user' value='{t}Apply{/t}'>     
251                                 <input type='submit' name='create_acls_cancel' value='{t}Cancel{/t}'>
252                         </div>
253                         {/if}   
254                 {elseif $method == "migrate_deps"}
255         
256                         <h2>Department migration</h2>
258                         <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>
259                         <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>
260                                         
261                         {foreach from=$deps_to_migrate item=val key=key}
263                                 {if $deps_to_migrate.$key.checked}
264                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
265                                         {$deps_to_migrate.$key.dn}
266                                         {if $deps_to_migrate.$key.after != ""}
267                                                 <div class="step2_entry_container_info" id="sol_8">
269 {t}Current{/t}
270 <div style='padding-left:20px;'>
271 <pre>
272 dn: {$deps_to_migrate.$key.dn}
273 {$deps_to_migrate.$key.before}
274 </pre>
275 </div>
276 {t}After migration{/t}
277 <div style='padding-left:20px;'>
278 <pre>
279 dn: {$deps_to_migrate.$key.dn}
280 {$deps_to_migrate.$key.after}
281 </pre>
282 </div>
283                                                 </div>
284                                         {/if}
285                                 {else}
286                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
287                                         {$deps_to_migrate.$key.dn}
288                                 {/if}
289                                 
290                         <br>
291                         {/foreach}
292                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
293                         {t}Select all{/t}
294                         <br>
296                         {if $deps_details}
297                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Hide changes{/t}'>
298                         {else}
299                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
300                         {/if}
302                         <p class='seperator'>&nbsp;</p> 
304                         <div style='width:99%; text-align:right; padding:5px;'>
305                                 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Apply{/t}'>
306                                 &nbsp;
307                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Cancel{/t}'>
308                         </div>
309                 {elseif $method == "migrate_users"}
310         
311                         <h2>User migration</h2>
313                         <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>
314                         <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>
315                         {foreach from=$users_to_migrate item=val key=key}
317                                 {if $users_to_migrate.$key.checked}
318                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
319                                         {$users_to_migrate.$key.dn}
320                                         {if $users_to_migrate.$key.after != ""}
321                                                 <div class="step2_entry_container_info" id="sol_8">
323 {t}Current{/t}
324 <div style='padding-left:20px;'>
325 <pre>
326 dn: {$users_to_migrate.$key.dn}
327 {$users_to_migrate.$key.before}
328 </pre>
329 </div>
330 {t}After migration{/t}
331 <div style='padding-left:20px;'>
332 <pre>
333 dn: {$users_to_migrate.$key.dn}
334 {$users_to_migrate.$key.after}
335 </pre>
336 </div>
337                                                 </div>
338                                         {/if}
339                                 {else}
340                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
341                                         {$users_to_migrate.$key.dn}
342                                 {/if}
343                                 <br>
344                         {/foreach}
345                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
346                         {t}Select all{/t}
347                         <br>
349                         {if $user_details}
350                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Hide changes{/t}'>
351                         {else}
352                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}Show changes{/t}'>
353                         {/if}
355                         <p class='seperator'>&nbsp;</p> 
357                         <div style='width:99%; text-align:right; padding-top:5px;'>
358                                 <input type='submit' name='users_visible_migrate_migrate' value='{t}Apply{/t}'>
359                                 &nbsp;
360                                 <input type='submit' name='users_visible_migrate_close' value='{t}Cancel{/t}'>
361                         </div>
362         {/if}
363     </div>
364 </div>