Code

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