Code

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