Code

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