Code

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