Code

Updated classes to support additional container objects.
[gosa.git] / gosa-core / plugins / admin / departments / generic.tpl
2 {if $dep_type == "l"}
4 <!--////////////////////
5         //      LOCALITY (l)
6     //////////////////// -->
8 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
9  <tr>
10    <td style="vertical-align:top; width:50%">
11      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
12      <table summary="">
13       <tr>
14        <td><LABEL for="l">{t}Locality name{/t}</LABEL>{$must}</td>
15        <td>
16 {render acl=$ouACL}
17         <input id="l" name="l" size=25 maxlength=60 value="{$l}" title="{t}Name of locality to create{/t}">
18 {/render}
19        </td>
20       </tr>
21       <tr>
22        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
23        <td>
24 {render acl=$descriptionACL}
25         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
26 {/render}
27        </td>
28       </tr>
29       <tr>
30         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
31         <td>
32 {render acl=$baseACL}
33          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
34           {html_options options=$bases selected=$base_select}
35          </select>
36 {/render}
38 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
39         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
40 {/render}
41           </td>
42          </tr>
43         </table>
44   </td>
45  </tr>
46 </table>
47 <p class='seperator'>&nbsp;</p>
48 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
49  <tr>
50    <td style="vertical-align:top; width:100%">
51      <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
52 {render acl=$gosaUnitTagACL}
53      <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
54 {/render}
55    </td>
56   </tr>
57 </table>
60 {elseif $dep_type == "o"}
62 <!--////////////////////
63         //      ORGANIZATION (o)
64     //////////////////// -->
66 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
67  <tr>
68    <td style="vertical-align:top; width:50%">
69      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
70      <table summary="">
71       <tr>
72        <td><LABEL for="o">{t}Organization name{/t}</LABEL>{$must}</td>
73        <td>
74 {render acl=$ouACL}
75         <input id="o" name="o" size=25 maxlength=60 value="{$o}" title="{t}Name of organization to create{/t}">
76 {/render}
77        </td>
78       </tr>
79       <tr>
80        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
81        <td>
82 {render acl=$descriptionACL}
83         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
84 {/render}
85        </td>
86       </tr>
87       <tr>
88         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
89         <td>
90 {render acl=$baseACL}
91          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
92           {html_options options=$bases selected=$base_select}
93          </select>
94 {/render}
96 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
97         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
98 {/render}
99           </td>
100          </tr>
101         </table>
102   </td>
103  </tr>
104 </table>
105 <p class='seperator'>&nbsp;</p>
106 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
107  <tr>
108    <td style="vertical-align:top; width:100%">
109      <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
110 {render acl=$gosaUnitTagACL}
111      <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
112 {/render}
113    </td>
114   </tr>
115 </table>
118 {elseif $dep_type == "c"}
120 <!--////////////////////
121         //      COUNTRY (c)
122     //////////////////// -->
124 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
125  <tr>
126    <td style="vertical-align:top; width:50%">
127      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
128      <table summary="">
129       <tr>
130        <td><LABEL for="c">{t}Country name{/t}</LABEL>{$must}</td>
131        <td>
132 {render acl=$ouACL}
133         <input id="c" name="c" size=25 maxlength=60 value="{$c}" title="{t}Name of country to create{/t}">
134 {/render}
135        </td>
136       </tr>
137       <tr>
138        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
139        <td>
140 {render acl=$descriptionACL}
141         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
142 {/render}
143        </td>
144       </tr>
145       <tr>
146         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
147         <td>
148 {render acl=$baseACL}
149          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
150           {html_options options=$bases selected=$base_select}
151          </select>
152 {/render}
154 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
155         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
156 {/render}
157           </td>
158          </tr>
159         </table>
160   </td>
161  </tr>
162 </table>
163 <p class='seperator'>&nbsp;</p>
164 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
165  <tr>
166    <td style="vertical-align:top; width:100%">
167      <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
168 {render acl=$gosaUnitTagACL}
169      <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
170 {/render}
171    </td>
172   </tr>
173 </table>
176 {elseif $dep_type == "ou"}
178 <!--////////////////////
179         //      ORGANIZATIONAL UNIT (ou)
180     //////////////////// -->
183 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
184  <tr>
185    <td style="vertical-align:top; width:50%">
186      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
187      
188      <table summary="">
189       <tr>
190        <td><LABEL for="ou">{t}Name of department{/t}</LABEL>{$must}</td>
191        <td>
192 {render acl=$ouACL}
193         <input id="ou" name="ou" size=25 maxlength=60 value="{$ou}" title="{t}Name of subtree to create{/t}">
194 {/render}
195        </td>
196       </tr>
197       <tr>
198        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
199        <td>
200 {render acl=$descriptionACL}
201         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
202 {/render}
203        </td>
204       </tr>
205       <tr>
206        <td><LABEL for="businessCategory">{t}Category{/t}</LABEL></td>
207        <td>
208 {render acl=$businessCategoryACL}
209         <input id="businessCategory" name="businessCategory" size=25 maxlength=80 value="{$businessCategory}" title="{t}Category for this subtree{/t}">
210 {/render}
211        </td>
212       </tr>
213       <tr>
214         <td colspan="2"><br></td>
215       </tr>
216       <tr>
217         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
219         <td>
220 {render acl=$baseACL}
221          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
222           {html_options options=$bases selected=$base_select}
223          </select>
224 {/render}
226 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
227         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
228 {/render}
229         </td>
230        </tr>
231      </table>
233    </td>
234    <td style="border-left:1px solid #A0A0A0">
235     &nbsp;
236    </td>
237    <td>
238      <h2><img class="center" alt="" align="middle" src="plugins/departments/images/department.png"> {t}Location{/t}</h2>
240      <table summary="" style="width:100%">
241       <tr>
242        <td><LABEL for="st">{t}State{/t}</LABEL></td>
243        <td>
244 {render acl=$stACL}
245         <input id="st" name="st" size=25 maxlength=60 value="{$st}" title="{t}State where this subtree is located{/t}">
246 {/render}
247        </td>
248       </tr>
249       <tr>
250        <td><LABEL for="l">{t}Location{/t}</LABEL></td>
251        <td>
252 {render acl=$lACL}
253         <input id="l" name="l" size=25 maxlength=60 value="{$l}" title="{t}Location of this subtree{/t}">
254 {/render}
255        </td>
256       </tr>
257       <tr>
258        <td style="vertical-align:top;"><LABEL for="postalAddress">{t}Address{/t}</LABEL></td>
259        <td>
260 {render acl=$postalAddressACL}
261         <textarea id="postalAddress" name="postalAddress" style="width:100%" rows=3 cols=22 title="{t}Postal address of this subtree{/t}">{$postalAddress}</textarea>
262 {/render}
263       </tr>
264       <tr>
265        <td><LABEL for="telephoneNumber">{t}Phone{/t}</LABEL></td>
266        <td>
267 {render acl=$telephoneNumberACL}
268         <input id="telephoneNumber" name="telephoneNumber" size=25 maxlength=60 value="{$telephoneNumber}" title="{t}Base telephone number of this subtree{/t}">
269 {/render}
270        </td>
271       </tr>
272       <tr>
273        <td><LABEL for="facsimileTelephoneNumber">{t}Fax{/t}</LABEL></td>
274        <td>
275 {render acl=$facsimileTelephoneNumberACL}
276         <input id="facsimileTelephoneNumber" name="facsimileTelephoneNumber" size=25 maxlength=60 value="{$facsimileTelephoneNumber}" title="{t}Base facsimile telephone number of this subtree{/t}">
277 {/render}
278        </td>
279       </tr>
280      </table>
282    </td>
283  </tr>
284 </table>
286 <p class='seperator'>&nbsp;</p>
288 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
289  <tr>
290    <td style="vertical-align:top; width:100%">
291      <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
292 {render acl=$gosaUnitTagACL}
293      <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
294 {/render}
295    </td>
296   </tr>
297 </table>
298 {/if}
300 <!-- Place cursor -->
301 <input type='hidden' name='dep_generic_posted' value='1'>
302 <script language="JavaScript" type="text/javascript">
303   <!-- // First input field on page
304         focus_field('ou');
305   -->
306 </script>