Code

Beautified FAI templates
[gosa.git] / gosa-plugins / fai / admin / fai / faiDiskEntry.tpl
2 <input type="hidden" name="TableEntryFrameSubmitted" value="1">
3 <h3>{t}Device{/t}
4 </h3>
5 <table style='width:100%' summary="{t}FAI disk entry{/t}">
6  <tr>
7   <td style='width:50%;' class='right-border'>
8    <table summary="{t}Disk options{/t}">
9     <tr>
10      <td><LABEL for="DISKcn">{t}Name{/t}</LABEL>
11       {$must}&nbsp;
12      </td>
13      <td>
14       {render acl=$DISKcnACL}
15        <input type='text' value="{$DISKcn}" size="45" maxlength="80" name="DISKcn" id="DISKcn">
16       {/render}
17      </td>
18     </tr>
19     <tr>
20      <td><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>
31   </td>
32   <td>
33    <table summary="{t}Generic settings{/t}">
34     <tr>
35      <td><LABEL for="DISKdescription">{t}Description{/t}</LABEL>&nbsp;
36      </td>
37      <td>
38       {render acl=$DISKdescriptionACL}
39        <input value="{$DISKdescription}" size="45" maxlength="80"               name="DISKdescription" id="DISKdescription">
40       {/render}
41      </td>
42     </tr>
43     <tr>
44      <td><LABEL for="disklabel">{t}Disk label{/t}</LABEL>
45      </td>
46      <td>
47       {render acl=$DISKFAIdiskOptionACL}
48        <select name="disklabel" size="1">
49         {html_options options=$disklabels selected=$disklabel}
50        </select>
51       {/render}
52      </td>
53     </tr>
54    </table>
55   </td>
56  </tr>
57 </table>
59 {if $FAIdiskType == "lvm"}
60  <hr>
61  <h3>{t}Combined physical partitions{/t}
62  </h3>
63  <select style='font-family: monospace; width: 100%;'         name='physicalPartition[]' size=5 multiple>
64   {html_options options=$plist}
65  </select>
66  <br>
67  <select name='lvmPartitionAdd' style='width:240px;' size=1>
68   {html_options options=$physicalPartitionList}
69  </select>
70  <button type='submit' name='addLvmPartition'>
71  {msgPool type="addButton"}</button>&nbsp;
72  <button type='submit' name='delLvmPartition'>
73  {msgPool type="delButton"}</button>&nbsp;
74  
75 {/if}
76 <hr>
77 <br>
78 <h3>{t}Partition entries{/t}
79 </h3>
80 {$setup}
81 <br>
83 {if !$freeze}
84  
85  {if $sub_object_is_createable}
86   <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
87   {else}
88   <button type='submit' name='restricted'>{t}Add partition{/t}</button>
89   
90  {/if}
91  
92 {/if}
93 <br>
94 <br>
95 <hr>
96 <br>
97 <div class="plugin-actions">
98  
99  {if !$freeze}
100   <button type='submit' name='SaveDisk'>
101   {msgPool type=saveButton}</button>
102   
103  {/if}
104  <button type='submit' name='CancelDisk'>
105  {msgPool type=cancelButton}</button>
106 </div><!-- Place cursor -->
107 <script language="JavaScript" type="text/javascript"><!-- // First input field on page  focus_field('DISK_cn');  --></script>