Code

Updated FAI partition stuff
[gosa.git] / gosa-plugins / fai / admin / fai / faiPartition.tpl
2 <h2>{t}Partition{/t}</h2>
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 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();'>
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 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 name='dummy3' value='' size='5' disabled>
41         <select name='dummy4' disabled>
42           {html_options options=$sizeTypes}
43         </select>
44       {/if}
45       &nbsp;-&nbsp;
46       {if $FAIpartitionSizeType != "fixed" && $FAIpartitionSizeType != "remaining"}
47         <input 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 name='dummy1' value='' size='5' disabled>
53         <select name='dummy2' disabled>
54           {html_options options=$sizeTypes}
55         </select>
56       {/if}
57     </td>
58   </tr>
59   <tr>
60     <td colspan="4">
61       <p class="seperator">&nbsp;</p>
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'>
79         {html_options options=$preserveTypes selected=$preserveType}
80       </select>
81     </td>
82   </tr>
84 {/if}
86   <tr>
87     <td colspan="4">
88       <p class="seperator">&nbsp;</p>
89     </td>
90   </tr>
92 {if $FAIdiskType == "raid"}
94   <tr>
95     <td colspan="4">
96       <h2>{t}Combined physical partitions{/t}</h2>      
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;'>
104         {html_options options=$physicalPartitionList}
105       </select>
106       <input type="submit" name='addPhysicalPartition' value="{msgPool type="addButton"}">&nbsp; 
107       <input type="submit" name='delPhysicalPartition' value="{msgPool type="delButton"}">&nbsp; 
108       <input type="submit" name='toggleMissing' value="{t}Toggle missing{/t}">&nbsp; 
109       <input type="submit" name='toggleSpare' value="{t}Toggle spare{/t}">&nbsp; 
110     </td>
111   </tr>
112   <tr>
113     <td colspan="4">
114       <p class="seperator">&nbsp;</p>
115     </td>
116   </tr>
117 {/if}
119   <tr>
120     <td>
121       {t}Filesystem{/t}
122     </td>
123     <td>
124       <select name='FAIfsType' onChange="document.mainform.submit();">
125         {html_options options=$FAIfsTypes selected=$FAIfsType}
126       </select>
127     </td>
128     <td>
129       {t}Filesystem create options{/t}
130     </td>
131     <td>
132       <input name="FAIfsCreateOptions" value="{$FAIfsCreateOptions}">
133     </td>
134   </tr>
135   <tr>
136     <td colspan=2>
137       <input id="encrypted" type='checkbox' name='encrypted' value='1' {if $encrypted} checked {/if}>
138       &nbsp;<label for="encrypted">{t}Encrypted{/t}</label>
139     </td>
140     <td>
141       {t}Tune options{/t}
142     </td>
143     <td>
144       <input name="FAIfsTuneOptions" value="{$FAIfsTuneOptions}">
145     </td>
146   </tr>
147   <tr>
148     <td colspan="4">
149       <p class="seperator">&nbsp;</p>
150     </td>
151   </tr>
152   <tr>
153     <td>
154       {t}Mount point{/t}
155     </td>
156     <td>
157       {if $FAIfsType != "swap"}
158         <input name="FAImountPoint" value="{$FAImountPoint}">
159       {else}
160         <input name="dummy10" value="swap" disabled>
161       {/if}
162     </td>
163     <td>
164       {t}Mount options{/t}
165     </td>
166     <td>
167       <input name="FAImountOptions" value="{$FAImountOptions}">
168     </td>
169   </tr>
171   <!-- Table cell sizing  --> 
172   <tr>
173     <td colspan=2 style='width:50%;'></td>
174     <td colspan=2 style='width:50%;'></td>
175   </tr>
176 </table>
178 <input type='hidden' name='faiPartition' value='1'>
179 <p class='seperator'>&nbsp;</p>
180 <div style='text-align:right; width:100%; padding:5px'>
181   {if !$freeze}
182   <input type='submit' name='PartitionSave' value='{msgPool type=okButton}'>
183   &nbsp;
184   {/if}
185   <input type='submit' name='PartitionCancel' value='{msgPool type=cancelButton}'>
186 </div>