Code

Updated LVM handling for FAI partitions.
[gosa.git] / gosa-plugins / fai / admin / fai / faiDiskEntry.tpl
1 <input type="hidden" name="TableEntryFrameSubmitted" value="1">
2 <h2><img class="center" alt="" src="plugins/fai/images/fai_partitionTable.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Device{/t}</h2>
3 <table style='width:100%' summary="">
4         <tr>
5                 <td style='width:50%;border-right:1px solid #909090;'>
7       <table>
8         <tr>
9           <td>
10             <LABEL for="DISKcn">{t}Name{/t}</LABEL>{$must}&nbsp;
11           </td>
12           <td>
13 {render acl=$DISKcnACL}
14                               <input value="{$DISKcn}" size="45" maxlength="80" name="DISKcn" id="DISKcn">
15 {/render}
16                 </td>
17         </tr>
18         <tr>
19                       <td>
20             <LABEL for="fstabkey">{t}fstab key{/t}</LABEL>
21           </td>
22           <td>
23 {render acl=$DISKFAIdiskOptionACL}
24             <select name="fstabkey" size="1">
25                {html_options options=$fstabkeys selected=$fstabkey}
26             </select>
27 {/render}
28                       </td>
29         </tr>
30       </table>
32     </td>
33                 <td>
35       <table>
36         <tr>
37           <td>
38             <LABEL for="DISKdescription">&nbsp;{t}Description{/t}</LABEL>&nbsp;
39           </td>
40           <td>
41 {render acl=$DISKdescriptionACL}
42                               <input value="{$DISKdescription}" size="45" maxlength="80" 
43               name="DISKdescription" id="DISKdescription">
44 {/render}
45                       </td>
46         </tr>
47         <tr>
48                       <td>
49             <LABEL for="disklabel">{t}Disk label{/t}</LABEL>
50           </td>
51           <td>
52 {render acl=$DISKFAIdiskOptionACL}
53             <select name="disklabel" size="1">
54                {html_options options=$disklabels selected=$disklabel}
55             </select>
56 {/render}
57                       </td>
58         </tr>
59       </table>
61     </td>
62         </tr>
63 </table>
65 {if $FAIdiskType == "lvm"}
67 <p class="seperator">&nbsp;</p>
68 <table width="100%">
69   <tr>
70     <td>
71       <h2>{t}Combined physical partitions{/t}</h2>
73       <select style='font-family: monospace; width: 100%;' 
74         name='physicalPartition[]' size=5 multiple> 
75         {html_options options=$plist}
76       </select>
77       <br>
78       <select name='lvmPartitionAdd'>
79         {html_options options=$physicalPartitionList}
80       </select>
81       <input type="submit" name='addLvmPartition' value="{msgPool type="addButton"}">&nbsp;
82       <input type="submit" name='delLvmPartition' value="{msgPool type="delButton"}">&nbsp;
83     </td>
84   </tr>
85 </table>
87 {/if}
88 <p class="seperator">&nbsp;</p>
89 <br>
90 <h2><img class="center" alt="" src="images/lists/paste.png" align="middle" title="{t}Partition entries{/t}">&nbsp;{t}Partition entries{/t}</h2>
91 {$setup}
92 <br>
93 {if !$freeze}
94         {if $sub_object_is_createable}
95                 <input type="submit" name="AddPartition" value="{t}Add partition{/t}">
96         {else}
97                 <input type="submit" name="restricted" value="{t}Add partition{/t}" disabled>
98         {/if}
99 {/if}
100 <br>    
101 <br>
102 <p class="seperator">&nbsp;</p>
103 <br>
104 <div style="align:right;" align="right">
105 {if !$freeze}
106         <input type="submit" name="SaveDisk" value="{msgPool type=saveButton}">
107 {/if}
108 <input type="submit" name="CancelDisk" value="{msgPool type=cancelButton}" >
109 </div>
110 <!-- Place cursor -->
111 <script language="JavaScript" type="text/javascript">
112   <!-- // First input field on page
113         focus_field('DISK_cn');
114   -->
115 </script>