Code

Updated table summary
[gosa.git] / gosa-plugins / fai / admin / fai / faiDiskEntry.tpl
1 <input type="hidden" name="TableEntryFrameSubmitted" value="1">
2 <h3>{t}Device{/t}</h3>
3 <table style='width:100%' summary="{t}FAI disk entry{/t}">
4         <tr>
5                 <td style='width:50%;' class='right-border'>
8       <table summary="{t}Disk options{/t}">
9         <tr>
10           <td>
11             <LABEL for="DISKcn">{t}Name{/t}</LABEL>{$must}&nbsp;
12           </td>
13           <td>
14 {render acl=$DISKcnACL}
15                               <input type='text' value="{$DISKcn}" size="45" maxlength="80" name="DISKcn" id="DISKcn">
16 {/render}
17                 </td>
18         </tr>
19         <tr>
20                       <td>
21             <LABEL for="fstabkey">{t}fstab key{/t}</LABEL>
22           </td>
23           <td>
24 {render acl=$DISKFAIdiskOptionACL}
25             <select name="fstabkey" size="1">
26                {html_options options=$fstabkeys selected=$fstabkey}
27             </select>
28 {/render}
29                       </td>
30         </tr>
31       </table>
33     </td>
34                 <td>
36       <table summary="{t}Generic settings{/t}">
37         <tr>
38           <td>
39             <LABEL for="DISKdescription">{t}Description{/t}</LABEL>&nbsp;
40           </td>
41           <td>
42 {render acl=$DISKdescriptionACL}
43                               <input value="{$DISKdescription}" size="45" maxlength="80" 
44               name="DISKdescription" id="DISKdescription">
45 {/render}
46                       </td>
47         </tr>
48         <tr>
49                       <td>
50             <LABEL for="disklabel">{t}Disk label{/t}</LABEL>
51           </td>
52           <td>
53 {render acl=$DISKFAIdiskOptionACL}
54             <select name="disklabel" size="1">
55                {html_options options=$disklabels selected=$disklabel}
56             </select>
57 {/render}
58                       </td>
59         </tr>
60       </table>
62     </td>
63         </tr>
64 </table>
66 {if $FAIdiskType == "lvm"}
68 <hr>
69       <h3>{t}Combined physical partitions{/t}</h3>
71       <select style='font-family: monospace; width: 100%;' 
72         name='physicalPartition[]' size=5 multiple> 
73         {html_options options=$plist}
74       </select>
75       <br>
76       <select name='lvmPartitionAdd' style='width:240px;' size=1>
77         {html_options options=$physicalPartitionList}
78       </select>
79       <button type='submit' name='addLvmPartition'>{msgPool type="addButton"}</button>&nbsp;
80       <button type='submit' name='delLvmPartition'>{msgPool type="delButton"}</button>&nbsp;
82 {/if}
83 <hr>
84 <br>
85 <h3>{t}Partition entries{/t}</h3>
86 {$setup}
87 <br>
88 {if !$freeze}
89         {if $sub_object_is_createable}
90                 <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
92         {else}
93                 <button type='submit' name='restricted'>{t}Add partition{/t}</button>
95         {/if}
96 {/if}
97 <br>    
98 <br>
99 <hr>
100 <br>
101 <div style="align:right;" align="right">
102 {if !$freeze}
103         <button type='submit' name='SaveDisk'>{msgPool type=saveButton}</button>
105 {/if}
106 <button type='submit' name='CancelDisk'>{msgPool type=cancelButton}</button>
108 </div>
109 <!-- Place cursor -->
110 <script language="JavaScript" type="text/javascript">
111   <!-- // First input field on page
112         focus_field('DISK_cn');
113   -->
114 </script>