Code

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