1 <input type="hidden" name="TableEntryFrameSubmitted" value="1">
2 <h3>{t}Device{/t}</h3>
3 <table style='width:100%' summary="">
4 <tr>
5 <td style='width:50%;' class='right-border'>
8 <table>
9 <tr>
10 <td>
11 <LABEL for="DISKcn">{t}Name{/t}</LABEL>{$must}
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>
37 <tr>
38 <td>
39 <LABEL for="DISKdescription">{t}Description{/t}</LABEL>
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 <table width="100%">
70 <tr>
71 <td>
72 <h3>{t}Combined physical partitions{/t}</h3>
74 <select style='font-family: monospace; width: 100%;'
75 name='physicalPartition[]' size=5 multiple>
76 {html_options options=$plist}
77 </select>
78 <br>
79 <select name='lvmPartitionAdd' style='width:240px;' size=1>
80 {html_options options=$physicalPartitionList}
81 </select>
82 <button type='submit' name='addLvmPartition'>{msgPool type="addButton"}</button>
84 <button type='submit' name='delLvmPartition'>{msgPool type="delButton"}</button>
86 </td>
87 </tr>
88 </table>
90 {/if}
91 <hr>
92 <br>
93 <h3>{t}Partition entries{/t}</h3>
94 {$setup}
95 <br>
96 {if !$freeze}
97 {if $sub_object_is_createable}
98 <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
100 {else}
101 <button type='submit' name='restricted'>{t}Add partition{/t}</button>
103 {/if}
104 {/if}
105 <br>
106 <br>
107 <hr>
108 <br>
109 <div style="align:right;" align="right">
110 {if !$freeze}
111 <button type='submit' name='SaveDisk'>{msgPool type=saveButton}</button>
113 {/if}
114 <button type='submit' name='CancelDisk'>{msgPool type=cancelButton}</button>
116 </div>
117 <!-- Place cursor -->
118 <script language="JavaScript" type="text/javascript">
119 <!-- // First input field on page
120 focus_field('DISK_cn');
121 -->
122 </script>