Code

d3bb658e3db62deb15c926f5d0845644caeb58f4
[gosa.git] / gosa-core / plugins / admin / departments / generic.tpl
1 {if $dep_type == "c"}
2 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
3  <tr>
4    <td style="vertical-align:top; width:50%">
5      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
6      <table summary="">
7       <tr>
8        <td><LABEL for="c">{t}Country name{/t}</LABEL>{$must}</td>
9        <td>
10 {render acl=$ouACL}
11         <input id="c" name="c" size=25 maxlength=60 value="{$c}" title="{t}Name of country to create{/t}">
12 {/render}
13        </td>
14       </tr>
15       <tr>
16        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
17        <td>
18 {render acl=$descriptionACL}
19         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
20 {/render}
21        </td>
22       </tr>
23       <tr>
24         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
25         <td>
26 {render acl=$baseACL}
27          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
28           {html_options options=$bases selected=$base_select}
29          </select>
30 {/render}
32 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
33         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
34 {/render}
35           </td>
36          </tr>
37         </table>
38   </td>
39  </tr>
40 </table>
44 {else}
46 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
47  <tr>
48    <td style="vertical-align:top; width:50%">
49      <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
50      
51      <table summary="">
52       <tr>
53        <td><LABEL for="ou">{t}Name of department{/t}</LABEL>{$must}</td>
54        <td>
55 {render acl=$ouACL}
56         <input id="ou" name="ou" size=25 maxlength=60 value="{$ou}" title="{t}Name of subtree to create{/t}">
57 {/render}
58        </td>
59       </tr>
60       <tr>
61        <td><LABEL for="c">{t}Name of department{/t}</LABEL>{$must}</td>
62        <td>
63 {render acl=$ouACL}
64     <input id="c" name="c" size=25 maxlength=60 value="{$c}" title="{t}Name of country to create{/t}">
65 {/render}
66        </td>
67       </tr>
68       <tr>
69        <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
70        <td>
71 {render acl=$descriptionACL}
72         <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
73 {/render}
74        </td>
75       </tr>
76       <tr>
77        <td><LABEL for="businessCategory">{t}Category{/t}</LABEL></td>
78        <td>
79 {render acl=$businessCategoryACL}
80         <input id="businessCategory" name="businessCategory" size=25 maxlength=80 value="{$businessCategory}" title="{t}Category for this subtree{/t}">
81 {/render}
82        </td>
83       </tr>
84       <tr>
85         <td colspan="2"><br></td>
86       </tr>
87       <tr>
88         <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
90         <td>
91 {render acl=$baseACL}
92          <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}"> 
93           {html_options options=$bases selected=$base_select}
94          </select>
95 {/render}
97 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
98         <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
99 {/render}
100         </td>
101        </tr>
102      </table>
104    </td>
105    <td style="border-left:1px solid #A0A0A0">
106     &nbsp;
107    </td>
108    <td>
109      <h2><img class="center" alt="" align="middle" src="plugins/departments/images/department.png"> {t}Location{/t}</h2>
111      <table summary="" style="width:100%">
112       <tr>
113        <td><LABEL for="st">{t}State{/t}</LABEL></td>
114        <td>
115 {render acl=$stACL}
116         <input id="st" name="st" size=25 maxlength=60 value="{$st}" title="{t}State where this subtree is located{/t}">
117 {/render}
118        </td>
119       </tr>
120       <tr>
121        <td><LABEL for="l">{t}Location{/t}</LABEL></td>
122        <td>
123 {render acl=$lACL}
124         <input id="l" name="l" size=25 maxlength=60 value="{$l}" title="{t}Location of this subtree{/t}">
125 {/render}
126        </td>
127       </tr>
128       <tr>
129        <td style="vertical-align:top;"><LABEL for="postalAddress">{t}Address{/t}</LABEL></td>
130        <td>
131 {render acl=$postalAddressACL}
132         <textarea id="postalAddress" name="postalAddress" style="width:100%" rows=3 cols=22 title="{t}Postal address of this subtree{/t}">{$postalAddress}</textarea>
133 {/render}
134       </tr>
135       <tr>
136        <td><LABEL for="telephoneNumber">{t}Phone{/t}</LABEL></td>
137        <td>
138 {render acl=$telephoneNumberACL}
139         <input id="telephoneNumber" name="telephoneNumber" size=25 maxlength=60 value="{$telephoneNumber}" title="{t}Base telephone number of this subtree{/t}">
140 {/render}
141        </td>
142       </tr>
143       <tr>
144        <td><LABEL for="facsimileTelephoneNumber">{t}Fax{/t}</LABEL></td>
145        <td>
146 {render acl=$facsimileTelephoneNumberACL}
147         <input id="facsimileTelephoneNumber" name="facsimileTelephoneNumber" size=25 maxlength=60 value="{$facsimileTelephoneNumber}" title="{t}Base facsimile telephone number of this subtree{/t}">
148 {/render}
149        </td>
150       </tr>
151      </table>
153    </td>
154  </tr>
155 </table>
157 <p class='seperator'>&nbsp;</p>
159 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
160  <tr>
161    <td style="vertical-align:top; width:100%">
162      <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
163 {render acl=$gosaUnitTagACL}
164      <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
165 {/render}
166    </td>
167   </tr>
168 </table>
169 {/if}
171 <!-- Place cursor -->
172 <input type='hidden' name='dep_generic_posted' value='1'>
173 <script language="JavaScript" type="text/javascript">
174   <!-- // First input field on page
175         focus_field('ou');
176   -->
177 </script>