17756ba7b6225144d8881b2286799d71a8b4c5e9
2 <h3>{t}Partition{/t}
3 </h3>
4 <table style='width: 100%;' width="100%" summary="{t}FAI partition{/t}">
5 <tr>
7 {if $FAIdiskType == "lvm"}
8 <td>{t}Name{/t}
9 </td>
10 <td width="35%">
11 <input type='text' name="cn" value="{$cn}">
12 </td>
13 {else}
14 <td>{t}Type{/t}
15 </td>
16 <td width="35%">
17 <select name="FAIpartitionType" onChange='document.mainform.submit();' size=1>
18 {html_options options=$partitionTypes selected=$FAIpartitionType}
19 </select>
21 {if $cn != ""} (
22 {$cn})
24 {/if}
25 </td>
27 {/if}
28 <td>{t}Description{/t}
29 </td>
30 <td width="35%">
31 <input type="text" value="{$description}" name="description">
32 </td>
33 </tr>
35 {if $FAIdiskType == "disk" || $FAIdiskType == "lvm"}
36 <tr>
37 <td>{t}Size{/t}
38 </td>
39 <td colspan=3>
40 <select name="FAIpartitionSizeType" onChange='document.mainform.submit();'>
41 {html_options options=$partitionSizeTypes selected=$FAIpartitionSizeType}
42 </select>
44 {if $FAIpartitionSizeType != "remaining"}
45 <input type='text' name='sizeStart' value='{$sizeStart}' size='5'>
46 <select name='sizeStart_Type'>
47 {html_options options=$sizeTypes selected=$sizeStart_Type}
48 </select>
49 {else}
50 <input type='text' name='dummy3' value='' size='5' disabled>
51 <select name='dummy4' disabled size=1>
52 {html_options options=$sizeTypes}
53 </select>
55 {/if} -
57 {if $FAIpartitionSizeType != "fixed" && $FAIpartitionSizeType != "remaining"}
58 <input type='text' name='sizeStop' value='{$sizeStop}' size='5'>
59 <select name='sizeStop_Type'>
60 {html_options options=$sizeTypes selected=$sizeStop_Type}
61 </select>
62 {else}
63 <input type='text' name='dummy1' value='' size='5' disabled>
64 <select name='dummy2' disabled size=1>
65 {html_options options=$sizeTypes}
66 </select>
68 {/if}
69 </td>
70 </tr>
71 <tr>
72 <td colspan="4">
73 <hr>
74 </td>
75 </tr>
76 <tr>
77 <td colspan="2">
80 <input id="resize" type='checkbox' value='1' name='resize' {if $resize} checked {/if}> <label for='resize'>{t}Resize existing partition{/t}</label>
81 </td>
82 <td colspan="2">
85 <input id="bootable" type='checkbox' value='1' name='bootable' {if $bootable} checked {/if}> <label for='bootable'>{t}Bootable{/t}</label>
86 </td>
87 </tr>
88 <tr>
89 <td colspan="4">
92 <input id="preserve" type='checkbox' value='1' name='preserve' {if $preserve} checked {/if}> <label for="preserve">{t}Preserve{/t}</label>
93 <select name='preserveType' size=1>
94 {html_options options=$preserveTypes selected=$preserveType}
95 </select>
96 </td>
97 </tr>
99 {/if}
100 <tr>
101 <td colspan="4">
102 <hr>
103 </td>
104 </tr>
106 {if $FAIdiskType == "raid"}
107 <tr>
108 <td colspan="4">
109 <h3>{t}Combined physical partitions{/t}
110 </h3>
111 <select name='physicalPartition[]' size=5 style="width:100%; font-family: monospace;" multiple>
112 {html_options options=$plist}
113 </select>
114 <br>
115 <select name='physicalPartitionAdd' style='width:240px;' size=1>
116 {html_options options=$physicalPartitionList}
117 </select>
118 <button type='submit' name='addPhysicalPartition'>
119 {msgPool type=addButton}</button>
120 <button type='submit' name='delPhysicalPartition'>
121 {msgPool type=delButton}</button>
122 <button type='submit' name='toggleMissing'>{t}Toggle missing{/t}</button>
123 <button type='submit' name='toggleSpare'>{t}Toggle spare{/t}</button>
124 </td>
125 </tr>
126 <tr>
127 <td colspan="4">
128 <hr>
129 </td>
130 </tr>
132 {/if}
133 <tr>
134 <td>{t}Filesystem{/t}
135 </td>
136 <td>
137 <select name='FAIfsType' onChange="document.mainform.submit();" size=1>
138 {html_options options=$FAIfsTypes selected=$FAIfsType}
139 </select>
140 </td>
141 <td>{t}Filesystem create options{/t}
142 </td>
143 <td>
144 <input type='text' name="FAIfsCreateOptions" value="{$FAIfsCreateOptions}">
145 </td>
146 </tr>
147 <tr>
148 <td colspan=2>
151 <input id="encrypted" type='checkbox' name='encrypted' value='1' {if $encrypted} checked {/if}> <label for="encrypted">{t}Encrypted{/t}</label>
152 </td>
153 <td>{t}Tune options{/t}
154 </td>
155 <td>
156 <input type='text' name="FAIfsTuneOptions" value="{$FAIfsTuneOptions}">
157 </td>
158 </tr>
159 <tr>
160 <td colspan="4">
161 <hr>
162 </td>
163 </tr>
164 <tr>
165 <td>{t}Mount point{/t}{$must}
166 </td>
167 <td>
169 {if $FAIfsType != "swap"}
170 <input type='text' name="FAImountPoint" value="{$FAImountPoint}">
171 {else}
172 <input type='text' name="dummy10" value="swap" disabled>
174 {/if}
175 </td>
176 <td>{t}Mount options{/t}
177 </td>
178 <td>
179 <input type='text' name="FAImountOptions" value="{$FAImountOptions}">
180 </td>
181 </tr><!-- Table cell sizing -->
182 <tr>
183 <td colspan=2 style='width:50%;'>
184 </td>
185 <td colspan=2 style='width:50%;'>
186 </td>
187 </tr>
188 </table>
189 <input type='hidden' name='faiPartition' value='1'>
190 <hr>
191 <div style='text-align:right; width:100%; padding:5px'>
193 {if !$freeze}
194 <button type='submit' name='PartitionSave'>
195 {msgPool type=okButton}</button>
197 {/if}
198 <button type='submit' name='PartitionCancel'>
199 {msgPool type=cancelButton}</button>
200 </div>