Code

Fixed spelling
[gosa.git] / gosa-plugins / goto / admin / systems / goto / Device / AddPartitionDialog.tpl
2 <h3>{t}Type{/t}</h3>
4 <input {if $selected_type==1} checked {/if} onClick="document.mainform.submit();"
5         type="radio" value="1" name="selected_type">{t}Physical partition{/t}<br>
6 <input  {if count($freeRaidPartitions) != 2} disabled {/if}
7         {if $selected_type==2} checked {/if} onClick="document.mainform.submit();"
8         type="radio" value="2" name="selected_type">{t}Raid device{/t}<br>
9 <input  {if !count($freeLvmPartitions)} disabled {/if}
10         {if $selected_type==3} checked {/if} onClick="document.mainform.submit();"
11         type="radio" value="3" name="selected_type">{t}LVM Volume group{/t}<br>
12 <input {if $selected_type==4} checked {/if} onClick="document.mainform.submit();"
13         type="radio" value="4" name="selected_type">{t}LVM Volume{/t}<br>
15 <hr>
17 {if $selected_type==4}
18     
19     <h3>{t}LVM Volume{/t}</h3>
20     <table>
21         <tr>
22             <td>{t}Volume name{/t}</td>
23             <td>
24                 <input type="text" name="v_name" value="{$v_name}">
25             </td>
26         </tr>
27         <tr>
28             <td>{t}Volume group{/t}</td>
29             <td>
30                 <select name="v_group">
31                     {html_options options=$volumeGroupList selected=$v_group}
32                 </select>
33             </td>
34         </tr>
35         <tr>
36             <td>{t}Mount point{/t}</td>
37             <td>
38                 {if $v_fsType == "swap"}
39                     <input disabled type="text" name="v_mountPoint" value=" - ">
40                 {else}
41                     <input type="text" name="v_mountPoint" value="{$v_mountPoint}">
42                 {/if}
43             </td>
44         </tr>
45         <tr>
46             <td>{t}File system type{/t}</td>
47             <td>
48                 <select name="v_fsType" onChange="document.mainform.submit();">
49                     {html_options options=$fsTypes selected=$v_fsType}
50                 </select>
51             </td>
52         </tr>
53         <tr>
54             <td>{t}Size{/t}</td>
55             <td>
56                 <input name="v_size" value="{$v_size}">
57             </td>
58         </tr>
59         <tr>
60             <td>{t}Encrypt{/t}</td>
61             <td><input type="checkbox" name="v_encrypt" {if $v_encrypt_selected} checked {/if}></td>
62         </tr>
63     </table>
65 {elseif $selected_type==3}
66     
67     <h3>{t}LVM Volume group{/t}</h3>
68     <table>
69         <tr>
70             <td>{t}Volume group name{/t}</td>
71             <td>
72                 <input type="text" name="vg_name" value="{$vg_name}">
73             </td>
74         </tr>
75         <tr>
76             <td>{t}Physical extent{/t}</td>
77             <td>
78                 <select name="vg_extend">
79                     {html_options options=$physicalExtendList selected=$vg_extend}
80                 </select>
81             </td>
82         </tr>
83         <tr>
84             <td>{t}Use LVM partitions{/t}</td>
85             <td>
86                 {foreach from=$freeLvmPartitions item=item key=key}
87                     <input type="checkbox" name="vg_partition_{$key}" 
88                         {if in_array($item, $vg_partitions)} checked {/if}>&nbsp;{$item}<br>
89                 {/foreach}
90             </td>
91         </tr>
92     </table>
94 {elseif $selected_type==2}
95     <h3>{t}Add raid device{/t}</h3>
97     <table>
98         <tr>
99             <td>{t}Mount point{/t}</td>
100             <td>
101                 {if $r_fsType == "swap" || $r_fsType == "pv"}
102                     <input disabled type="text" name="r_mountPoint" value=" - ">
103                 {else}
104                     <input type="text" name="r_mountPoint" value="{$r_mountPoint}">
105                 {/if}
106             </td>
107         </tr>
108         <tr>
109             <td>{t}File system type{/t}</td>
110             <td>
111                 <select name="r_fsType" onChange="document.mainform.submit();">
112                     {html_options options=$fsTypes selected=$r_fsType}
113                 </select>
114             </td>
115         </tr>
116         <tr>
117             <td>{t}Raid level{/t}</td>
118             <td>
119                 <select name="r_raidLevel">
120                     {html_options options=$raidLevelList selected=$r_raidLevel}
121                 </select>
122             </td>
123         </tr>
124         <tr>
125             <td>{t}Use raid partitions{/t}</td>
126             <td>
127                 {foreach from=$freeRaidPartitions item=item key=key}
128                     <input type="checkbox" name="r_partition_{$key}" 
129                         {if in_array($item, $r_partitions)} checked {/if}>&nbsp;{$item}<br>
130                 {/foreach}
131             </td>
132         </tr>
133         <tr>
134             <td>{t}Number of spares{/t}</td>
135             <td>
136                 <input type="text" value="{$r_spares}" name="r_spares">
137             </td>
138         </tr>
139         <tr>
140             <td>{t}Encrypt{/t}</td>
141             <td><input type="checkbox" name="r_encrypt" {if $r_encrypt_selected} checked {/if}></td>
142         </tr>
143     </table>
145 {elseif $selected_type==1}
147     <h3>{t}Add Partition{/t}</h3>
149     <table>
150         <tr>
151             <td>{t}Mount point{/t}</td>
152             <td>
153                 {if $p_fsType == "raid" || $p_fsType == "swap" || $p_fsType == "pv"}
154                     <input disabled type="text" name="p_mountPoint" value=" - ">
155                 {else}
156                     <input type="text" name="p_mountPoint" value="{$p_mountPoint}">
157                 {/if}
158             </td>
159         </tr>
160         <tr>
161             <td>{t}File system type{/t}</td>
162             <td>
163                 <select name="p_fsType" onChange="document.mainform.submit();">
164                     {html_options options=$fsTypes selected=$p_fsType}
165                 </select>
166             </td>
167         </tr>
168         <tr>
169             <td>{t}Allowable drives{/t}</td>
170             <td>
171                 {foreach from=$disks item=item key=key}
172                     <input type="radio" {if $p_used_disk == $item} checked {/if} 
173                         name="p_used_disk" value="{$item}">{$item}
174                 {/foreach}
175             </td>
176         </tr>
177         <tr>
178             <td>{t}Size{/t}</td>
179             <td>
180                 <input name="p_size" value="{$p_size}">
181             </td>
182         </tr>
183         <tr>
184             <td>{t}Force to be primary partition{/t}</td>
185             <td><input type="checkbox" name="p_forcePrimary" {if $p_forcePrimary_selected} checked {/if}></td>
186         </tr>
187         <tr>
188             <td>{t}Encrypt{/t}</td>
189             <td><input type="checkbox" name="p_encrypt" {if $p_encrypt_selected} checked {/if}></td>
190         </tr>
191     </table>
193     <hr>
195     <h3>{t}Additional size options{/t}</h3>
196     <table>
197         <tr>
198             <td><input type="radio" name="p_size_options" value="0" 
199                     onClick="document.mainform.submit();"
200                     {if $p_size_options==0} checked {/if}></td>
201             <td>{t}Fixed size{/t}</td>
202         </tr>
203         <tr>
204             <td><input type="radio" name="p_size_options" value="1" 
205                     onClick="document.mainform.submit();"
206                     {if $p_size_options==1} checked {/if}></td>
207             <td>{t}Fill all space up to{/t} 
208                 <input {if $p_size_options != 1} disabled {/if}
209                         id="size_max_value"
210                         type="text" value="{$p_size_max_value}">&nbsp;{t}MB{/t}
211             </td>
212         </tr>
213         <tr>
214             <td><input type="radio" name="p_size_options" value="2" 
215                     onClick="document.mainform.submit();"
216                     {if $p_size_options==2} checked {/if}></td>
217             <td>{t}Fill to maximum allowable size{/t}</td>
218         </tr>
219     </table>
220 {/if}
222 <hr>
223 <div class="clear"></div>
225 <div class="plugin-actions">
226   <button type='submit' name='save_partition_add'>{msgPool type=addButton}</button>
227   <button type='submit' name='cancel_partition_add'>{msgPool type=cancelButton}</button>
228 </div>