Code

Some changes
[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_users"}
36                         <h2>{t}Move users into valid user departments{/t}</h2>
38                         {t}This dialog allows you to move the displayed users into a valid user department{/t}
39                         <br>
40                         {t}Be careful with this tool, there may be references pointing to this user that can't be migrated.{/t}
41                         <br>
42                         <font color='red'>{t}Attention, groupOfNames will not be updated to destination dn right now.{/t}</font>
43                         <br>    
44                         <br>    
46                         {foreach from=$outside_users item=val key=key}
47                                 {if $outside_users.$key.selected}
48                                         <input type='checkbox' name='select_user_{$key}' checked>
49                                 {else}
50                                         <input type='checkbox' name='select_user_{$key}'>
51                                 {/if}
53                                 {if $outside_users.$key.ldif != ""}
54                       <div class="step2_entry_container_info" id="sol_8">
55 <div style='padding-left:20px;'>
56 <pre>
57 {$outside_users.$key.ldif}
58 </pre>
59 </div>
60 </div>
61                                 {/if}
63                                 &nbsp;{$outside_users.$key.dn}
64                                 <br>
65                         {/foreach}
67                         <p>
68                         <b>{t}Move selected user into the following GOsa people department{/t} : </b>
69                         <select name='move_user_to'>
70                                 {html_options options=$ous}
71                         </select>
72                         <br>
73                         <input type='submit' name='outside_users_dialog_perform' value='{t}Move selected user{/t}'>
74                         <input type='submit' name='outside_users_dialog_whats_done' value='{t}What will be done here{/t}'>
75                         </p>
76                                 
78                         <p class='seperator'>&nbsp;</p> 
79                         <div style='width:100%; text-align:right; padding:5px;'>
80                                 <input type='submit' name='outside_users_dialog_cancel' value='{t}Close{/t}'>
81                         </div>
82                 
84                 {elseif $method == "create_acls"}
86                 <h2>{t}Acl setup{/t}</h2>
87         
88                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
89                         <div>
90 <pre>
91 {$what_will_be_done_now}
92 </pre>
93                         </div>          
94                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
95                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
96                 {else}
97                 <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
98         
99                         {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
100                         <p style='padding-left:10px;'>
101                         <table>
102                                 <tr>
103                                         <td>
104                                                 {t}Name{/t}:&nbsp;
105                                         </td>
106                                         <td>
107                                                 <i>System administrator</i>
108                                         </td>
109                                 <tr>
110                                 <tr>
111                                         <td>
112                                                 {t}User ID{/t}:&nbsp;
113                                         </td>
114                                         <td>
115                                                 <i>admin</i>
116                                         </td>
117                                 <tr>
118                                 </tr>
119                                         <td>
120                                                 {t}Password{/t}:&nbsp;
121                                         </td>
122                                         <td>
123                                                 <input type='input' value='{$new_user_password}' name='new_user_password'><br>
124                                         </td>
125                                 </tr>
126                         </table>
127                         <input type='submit' name='create_admin_user' value='{t}Create{/t}'>    
128                         </p>
129                         
130                         {if $users_cnt != 0 || $groups_cnt != 0}
131                         
132                         <p>&nbsp;</p>
133                         <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
134                         Bla {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
135                         <p style='padding-left:10px;'>
136                         <select name='acl_create_type' onChange='document.mainform.submit();' >
137                                 {if $type == "user"}
138                                 <option value='group'>{t}Group{/t}</option>
139                                 <option selected value='user'>{t}User{/t}</option>
140                                 {else}
141                                 <option selected value='group'>{t}Group{/t}</option>
142                                 <option value='user'>{t}User{/t}</option>
143                                 {/if}
144                         </select>
145                         <select name='create_acls_selected' size="12" style='width:100%;'>
146                                 {if $type == "user"}
147                                         {html_options options=$users selected=$acl_create_selected}
148                                 {else}
149                                         {html_options options=$groups selected=$acl_create_selected}
150                                 {/if}
151                         </select>
153                                 <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
154                         </p>
155                         {/if}
156                 {/if}
159                         <p class='seperator'>&nbsp;</p> 
161                         <div style='width:100%; text-align:right; padding:5px;'>
162                                 <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
163                         </div>
164                 
166                 {elseif $method == "migrate_deps"}
167         
168                         <h2>Department migration</h2>
170                         {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>
171                         {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}
172                                         
174                         <br><br>
175                         {foreach from=$deps_to_migrate item=val key=key}
177                                 {if $deps_to_migrate.$key.checked}
178                                         <input type='checkbox' name='migrate_{$key}' checked>
179                                         {$deps_to_migrate.$key.dn}
180                                         {if $deps_to_migrate.$key.after != ""}
181                                                 <div class="step2_entry_container_info" id="sol_8">
183 {t}Current{/t}
184 <div style='padding-left:20px;'>
185 <pre>
186 dn: {$deps_to_migrate.$key.dn}
187 {$deps_to_migrate.$key.before}
188 </pre>
189 </div>
190 {t}After migration{/t}
191 <div style='padding-left:20px;'>
192 <pre>
193 dn: {$deps_to_migrate.$key.dn}
194 {$deps_to_migrate.$key.after}
195 </pre>
196 </div>
197                                                 </div>
198                                         {/if}
199                                 {else}
200                                         <input type='checkbox' name='migrate_{$key}'>
201                                         {$deps_to_migrate.$key.dn}
202                                 {/if}
204                                 <br>
205                                 
207                         {/foreach}
208                         <br>
210                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
211                         <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
212                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
214                         <p class='seperator'>&nbsp;</p> 
216                         <div style='width:100%; text-align:right; padding:5px;'>
217                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
218                         </div>
219                 {elseif $method == "migrate_users"}
220         
221                         <h2>User migration</h2>
223                         {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>
224                         {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}
225                                         
227                         <br><br>
228                         {foreach from=$users_to_migrate item=val key=key}
230                                 {if $users_to_migrate.$key.checked}
231                                         <input type='checkbox' name='migrate_{$key}' checked>
232                                         {$users_to_migrate.$key.dn}
233                                         {if $users_to_migrate.$key.after != ""}
234                                                 <div class="step2_entry_container_info" id="sol_8">
236 {t}Current{/t}
237 <div style='padding-left:20px;'>
238 <pre>
239 dn: {$users_to_migrate.$key.dn}
240 {$users_to_migrate.$key.before}
241 </pre>
242 </div>
243 {t}After migration{/t}
244 <div style='padding-left:20px;'>
245 <pre>
246 dn: {$users_to_migrate.$key.dn}
247 {$users_to_migrate.$key.after}
248 </pre>
249 </div>
250                                                 </div>
251                                         {/if}
252                                 {else}
253                                         <input type='checkbox' name='migrate_{$key}'>
254                                         {$users_to_migrate.$key.dn}
255                                 {/if}
257                                 <br>
258                                 
260                         {/foreach}
261                         <br>
263                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
264                         <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
265                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
267                         <p class='seperator'>&nbsp;</p> 
269                         <div style='width:100%; text-align:right; padding:5px;'>
270                                 <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
271                         </div>
272                 {else}
274         * Create a test department with some objects to check for correct permissions
275         <br>
276         * Look for ACL's. If none is there, choose one user to be the super administrator
277         <br>
278         * Look for organizationalUnits and let add GOsa departments for selected ones
279         <br>
280         * Look for person / organizationalPerson and add GOsa account
281         <br>
282         * Allow to move selected users to people ou's - take care for groupOfNames
283         <br>
284         * Allow to move selected groups to group ou's - take care for groupOfNames
285         <br>
286         * Allow to move selected winstations to winstation ou's - take care for groupOfNames
287         <br>
288         * Check for double uidNumbers/gidNumbers
289         <br>
290         * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
292         
293         {/if}
294     </div>
295 </div>