Code

04718500a476ab44ae815aebf72b08646622cee3
[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>
13                         {foreach from=$checks item=val key=key}
14                                 <div class='step2_entry_name'><b>{$checks.$key.TITLE}</b></div>
15                                 {if $checks.$key.STATUS}
16                                         <div class='step2_successful'>{$checks.$key.STATUS_MSG}
17                                         {if $checks.$key.ERROR_MSG}
18                                                 {$checks.$key.ERROR_MSG}
19                                         {/if}
20                                         </div>
21                                 {else}
22                                         <div class='step2_failed'>{$checks.$key.STATUS_MSG}
23                                         </div>
24                                         <div>
25                                         {if $checks.$key.ERROR_MSG}
26                                                 {$checks.$key.ERROR_MSG}
27                                         {/if}
28                                         </div>
29                                 {/if}
30                                 <p>&nbsp;</p>   
31                         {/foreach}
33                 {elseif $method == "create_acls"}
35                 <h2>{t}Acl setup{/t}</h2>
36         
37                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
38                         <div>
39 <pre>
40 {$what_will_be_done_now}
41 </pre>
42                         </div>          
43                         <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
44                         <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
45                 {else}
46                 <b>{t}Create a new user and a group with adminstrational acls{/t}</b><br>
47         
48                         {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
49                         <p style='padding-left:10px;'>
50                         <table>
51                                 <tr>
52                                         <td>
53                                                 {t}Name{/t}:&nbsp;
54                                         </td>
55                                         <td>
56                                                 <i>System administrator</i>
57                                         </td>
58                                 <tr>
59                                 <tr>
60                                         <td>
61                                                 {t}User ID{/t}:&nbsp;
62                                         </td>
63                                         <td>
64                                                 <i>admin</i>
65                                         </td>
66                                 <tr>
67                                 </tr>
68                                         <td>
69                                                 {t}Password{/t}:&nbsp;
70                                         </td>
71                                         <td>
72                                                 <input type='input' value='{$new_user_password}' name='new_user_password'><br>
73                                         </td>
74                                 </tr>
75                         </table>
76                         <input type='submit' name='create_admin_user' value='{t}Create{/t}'>    
77                         </p>
78                         
79                         {if $users_cnt != 0 && $groups_cnt != 0}
80                         
81                         <p>&nbsp;</p>
82                         <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
83                         Bla {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
84                         <p style='padding-left:10px;'>
85                         <select name='acl_create_type' onChange='document.mainform.submit();' >
86                                 {if $type == "user"}
87                                 <option value='group'>{t}Group{/t}</option>
88                                 <option selected value='user'>{t}User{/t}</option>
89                                 {else}
90                                 <option selected value='group'>{t}Group{/t}</option>
91                                 <option value='user'>{t}User{/t}</option>
92                                 {/if}
93                         </select>
94                         <select name='create_acls_selected' size="12" style='width:100%;'>
95                                 {if $type == "user"}
96                                         {html_options options=$users selected=$acl_create_selected}
97                                 {else}
98                                         {html_options options=$groups selected=$acl_create_selected}
99                                 {/if}
100                         </select>
102                                 <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
103                         </p>
104                         {/if}
105                 {/if}
108                         <p class='seperator'>&nbsp;</p> 
110                         <div style='width:100%; text-align:right; padding:5px;'>
111                                 <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
112                         </div>
113                 
115                 {elseif $method == "migrate_deps"}
116         
117                         <h2>Department migration</h2>
119                         {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>
120                         {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}
121                                         
123                         <br><br>
124                         {foreach from=$deps_to_migrate item=val key=key}
126                                 {if $deps_to_migrate.$key.checked}
127                                         <input type='checkbox' name='migrate_{$key}' checked>
128                                         {$deps_to_migrate.$key.dn}
129                                         {if $deps_to_migrate.$key.after != ""}
130                                                 <div class="step2_entry_container_info" id="sol_8">
132 {t}Current{/t}
133 <div style='padding-left:20px;'>
134 <pre>
135 dn: {$deps_to_migrate.$key.dn}
136 {$deps_to_migrate.$key.before}
137 </pre>
138 </div>
139 {t}After migration{/t}
140 <div style='padding-left:20px;'>
141 <pre>
142 dn: {$deps_to_migrate.$key.dn}
143 {$deps_to_migrate.$key.after}
144 </pre>
145 </div>
146                                                 </div>
147                                         {/if}
148                                 {else}
149                                         <input type='checkbox' name='migrate_{$key}'>
150                                         {$deps_to_migrate.$key.dn}
151                                 {/if}
153                                 <br>
154                                 
156                         {/foreach}
157                         <br>
159                         <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
160                         <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
161                         <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
163                         <p class='seperator'>&nbsp;</p> 
165                         <div style='width:100%; text-align:right; padding:5px;'>
166                                 <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
167                         </div>
168                 {elseif $method == "migrate_users"}
169         
170                         <h2>User migration</h2>
172                         {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>
173                         {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}
174                                         
176                         <br><br>
177                         {foreach from=$users_to_migrate item=val key=key}
179                                 {if $users_to_migrate.$key.checked}
180                                         <input type='checkbox' name='migrate_{$key}' checked>
181                                         {$users_to_migrate.$key.dn}
182                                         {if $users_to_migrate.$key.after != ""}
183                                                 <div class="step2_entry_container_info" id="sol_8">
185 {t}Current{/t}
186 <div style='padding-left:20px;'>
187 <pre>
188 dn: {$users_to_migrate.$key.dn}
189 {$users_to_migrate.$key.before}
190 </pre>
191 </div>
192 {t}After migration{/t}
193 <div style='padding-left:20px;'>
194 <pre>
195 dn: {$users_to_migrate.$key.dn}
196 {$users_to_migrate.$key.after}
197 </pre>
198 </div>
199                                                 </div>
200                                         {/if}
201                                 {else}
202                                         <input type='checkbox' name='migrate_{$key}'>
203                                         {$users_to_migrate.$key.dn}
204                                 {/if}
206                                 <br>
207                                 
209                         {/foreach}
210                         <br>
212                         <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
213                         <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
214                         <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
216                         <p class='seperator'>&nbsp;</p> 
218                         <div style='width:100%; text-align:right; padding:5px;'>
219                                 <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
220                         </div>
221                 {else}
223         * Create a test department with some objects to check for correct permissions
224         <br>
225         * Look for ACL's. If none is there, choose one user to be the super administrator
226         <br>
227         * Look for organizationalUnits and let add GOsa departments for selected ones
228         <br>
229         * Look for person / organizationalPerson and add GOsa account
230         <br>
231         * Allow to move selected users to people ou's - take care for groupOfNames
232         <br>
233         * Allow to move selected groups to group ou's - take care for groupOfNames
234         <br>
235         * Allow to move selected winstations to winstation ou's - take care for groupOfNames
236         <br>
237         * Check for double uidNumbers/gidNumbers
238         <br>
239         * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
241         
242         {/if}
243     </div>
244 </div>