Code

Updated buttons
[gosa.git] / gosa-plugins / fai / admin / fai / faiDiskEntry.tpl
1 <input type="hidden" name="TableEntryFrameSubmitted" value="1">
2 <h3>{t}Device{/t}</h3>
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 type='text' 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">{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 <hr>
68 <table width="100%">
69   <tr>
70     <td>
71       <h3>{t}Combined physical partitions{/t}</h3>
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' style='width:240px;'>
79         {html_options options=$physicalPartitionList}
80       </select>
81       <button type='submit' name='addLvmPartition'>{msgPool type="addButton"}</button>&nbsp;
83       <button type='submit' name='delLvmPartition'>{msgPool type="delButton"}</button>&nbsp;
85     </td>
86   </tr>
87 </table>
89 {/if}
90 <hr>
91 <br>
92 <h3>{t}Partition entries{/t}</h3>
93 {$setup}
94 <br>
95 {if !$freeze}
96         {if $sub_object_is_createable}
97                 <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
99         {else}
100                 <button type='submit' name='restricted'>{t}Add partition{/t}</button>
102         {/if}
103 {/if}
104 <br>    
105 <br>
106 <hr>
107 <br>
108 <div style="align:right;" align="right">
109 {if !$freeze}
110         <button type='submit' name='SaveDisk'>{msgPool type=saveButton}</button>
112 {/if}
113 <button type='submit' name='CancelDisk'>{msgPool type=cancelButton}</button>
115 </div>
116 <!-- Place cursor -->
117 <script language="JavaScript" type="text/javascript">
118   <!-- // First input field on page
119         focus_field('DISK_cn');
120   -->
121 </script>