Code

Added label in class name selector for more comfort.
[gosa.git] / gosa-plugins / fai / admin / fai / faiTemplateEntry.tpl
1 <input type="hidden" name="SubObjectFormSubmitted" value="1">
3 <h3>{t}Generic{/t}</h3>
4 <table width="100%" summary="{t}FAI template entry{/t}">
5 <tr>
6   <td style='width:50%;padding-right:10px;' class='right-border'>
8                 <table style='width:100%;' summary="{t}Generic settings{/t}">
9                   <tr>
10                     <td>
11                 {t}File name{/t}{$must}&nbsp;
12                     </td>
13                     <td style='width:100%;'>
14 {render acl=$cnACL}
15                       <input style='width:100%;' value="{$templateFile}" 
16             name="templateFile" maxlength="80">
17 {/render}
18                     </td>
19             </tr>
20                   <tr>
21                           <td>
22                                   <LABEL for="templatePath">
23                                         {t}Destination path{/t}{$must}&nbsp;
24                                   </LABEL>
25                           </td>
26                           <td>
27 {render acl=$FAItemplatePathACL}
28                                   <input style='width:100%;' type="text" name="templatePath" 
29             value="{$templatePath}" id="templatePath" >
30 {/render}
31                                 </td>
32       </tr>
33                 </table>
34         </td>
35   <td>
37     {t}Description{/t}
38 {render acl=$descriptionACL}
39     <input  style='width:100%;' maxlength="80" 
40       value="{$description}" name="description">
41 {/render}
42   </td>
43 </tr>
44 </table>
46 <hr>
48 <table width="100%" summary="{t}Template attributes{/t}">
49 <tr>
50   <td colspan=2>
51     <h3>
52       <img class="center" alt="" 
53         src="plugins/fai/images/fai_template.png" 
54         title="{t}Template attributes{/t}">&nbsp;{t}Template attributes{/t}
55     </h3>
56   </td>
57 </tr>
58 <tr>
59   <td style='width:50%;' class='right-border'>
61   <table summary="{t}Template file status{/t}">
62     <tr>
63       <td>
64         {t}File{/t}{$must}:&nbsp; {$status}
65         {if $bStatus}
66           <a href="{$plug}&amp;getFAItemplate">
67           <img class="center" alt="{t}Save template{/t}..." 
68             title="{t}Save template{/t}..." src="images/save.png" border="0" />
69           </a>
70           <a href="{$plug}&amp;editFAItemplate">
71           <img class="center" alt="{t}Edit template{/t}..." 
72             title="{t}Edit template{/t}..." src="images/lists/edit.png" border="0" />
73           </a>
74         {/if}
75       </td>
76     </tr>
77     {if $bStatus}
78     <tr>
79       <td>
80                     {t}Full path{/t}:&nbsp; <i>{$FAItemplatePath}</i>
81       </td>
82     </tr>
83     {/if}
84     <tr>
85                   <td class='center'>
87 {render acl=$FAItemplateFileACL}
88                           <input type="file" name="FAItemplateFile" value="" id="FAItemplateFile">
89 {/render}
90 {render acl=$FAItemplateFileACL}
91                           <button type='submit' name='TmpFileUpload'>{t}Upload{/t}</button>
93 {/render}
94                   </td>
95     </tr>
96         </table>
97         </td>
98         <td>
99           <table summary="{t}File attributes{/t}">
100                 <tr>
101         
102                 <td>
103                         <LABEL for="user">
104                                 {t}Owner{/t}{$must}&nbsp;
105                         </LABEL>
106                         </td>
107                 <td>
108 {render acl=$FAIownerACL}
109                         <input type="text" name="user" value="{$user}" id="user" size="15">
110 {/render}
111                 </td>
112         </tr><tr>
113                 <td>
115                         <LABEL for="group">
116                                 {t}Group{/t}{$must}&nbsp;
117                         </LABEL>
118                         </td>
119                 <td>
120 {render acl=$FAIownerACL}
121                         <input type="text" name="group" value="{$group}" id="group" size="15">
122 {/render}
123                         <br>
124                         <br>
125                 </td>
126         </tr><tr>
127                 <td>{t}Access{/t}{$must}&nbsp; 
128 </td>
129                 <td>
130           <table summary="{t}File permissions{/t}">
132                <colgroup width="55" span="3">
133                 </colgroup>
134                 <tr>
135                         <th>{t}Class{/t}</th>
136                         <th>{t}Read{/t}</th>
137                         <th>{t}Write{/t}</th>
138                         <th>{t}Execute{/t}</th>
139                         <th>&nbsp;</th>
140                         <th>{t}Special{/t}</th>
141                         <th>&nbsp;</th>
142                 </tr>
143                 <tr><td>{t}User{/t}</td>
144 {render acl=$FAImodeACL}
145                         <td align="center"><input type="checkbox" name="u4" value="4" {$u4}></td>
146 {/render}
147 {render acl=$FAImodeACL}
148                         <td align="center"><input type="checkbox" name="u2" value="2" {$u2}></td>
149 {/render}
150 {render acl=$FAImodeACL}
151                         <td align="center"><input type="checkbox" name="u1" value="1" {$u1}></td>
152 {/render}
153                         <td>&nbsp;</td>
154 {render acl=$FAImodeACL}
155                         <td align="center"><input type="checkbox" name="s4" value="4" {$s4}></td>
156 {/render}
157                         <td>({t}SUID{/t})</td>
158                         </tr>
160                 <tr><td>{t}Group{/t}</td>
161 {render acl=$FAImodeACL}
162                         <td align="center"><input type="checkbox" name="g4" value="4" {$g4}></td>
163 {/render}
164 {render acl=$FAImodeACL}
165                         <td align="center"><input type="checkbox" name="g2" value="2" {$g2}></td>
166 {/render}
167 {render acl=$FAImodeACL}
168                         <td align="center"><input type="checkbox" name="g1" value="1" {$g1}></td>
169 {/render}
170                         <td>&nbsp;</td>
171 {render acl=$FAImodeACL}
172                         <td align="center"><input type="checkbox" name="s2" value="2" {$s2}></td>
173 {/render}
174                         <td>({t}SGID{/t})</td>
175                         </tr>
177                 <tr><td>{t}Others{/t}</td>
178 {render acl=$FAImodeACL}
179                         <td align="center"><input type="checkbox" name="o4" value="4" {$o4}></td>
180 {/render}
181 {render acl=$FAImodeACL}
182                         <td align="center"><input type="checkbox" name="o2" value="2" {$o2}></td>
183 {/render}
184 {render acl=$FAImodeACL}
185                         <td align="center"><input type="checkbox" name="o1" value="1" {$o1}></td>
186 {/render}
187                         <td>&nbsp;</td>
188 {render acl=$FAImodeACL}
189                         <td align="center"><input type="checkbox" name="s1" value="1" {$s1}></td>
190 {/render}
191                         <td>({t}sticky{/t})</td>
192         </tr></table>
193         
194                 </td></tr></table>
195         </td>
196 </tr>
197 <tr>
198 <td colspan=2>
199 <br>
200 <hr>
201 <br>
202 <div class="plugin-actions">
203 {if !$freeze}
204         <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>&nbsp;
206 {/if}
207         <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
209 </div>
210 </td>
211 </tr>
212 </table>
214 <input type='hidden' name='FAItemplateEntryPosted' value='1'>
216 <!-- Place cursor -->
217 <script language="JavaScript" type="text/javascript">
218   <!-- // First input field on page
219         focus_field('cn','description');
220   -->
221 </script>