Code

Prepared fai to use removeEntries.tpl
[gosa.git] / gosa-plugins / fai / admin / fai / faiPartitionTable.tpl
1 <table width="100%" summary="">
2         <tr>
3                 <td width="50%" valign="top">
4                                 <h3>{t}Generic{/t}</h3>
5                                 <table summary="" cellspacing="4">
6                                         <tr>
7                                                 <td>
8                                                         <LABEL for="cn">
9                                                         {t}Name{/t}{$must}
10                                                         </LABEL>
11                                                 </td>
12                                                 <td>
13 {render acl=$cnACL}
14                                                         <input type='text' value="{$cn}" size="45" maxlength="80" id='cn' disabled >
15 {/render}
16                                                 </td>
17                                         </tr>
18                                         <tr>
19                                                 <td>
20                                                         <LABEL for="description">
21                                                         {t}Description{/t}
22                                                         </LABEL>
23                                                 </td>
24                                                 <td>
25 {render acl=$descriptionACL}
26                                                         <input type='text' value="{$description}" size="45" maxlength="80" name="description" id="description">
27 {/render}
28                                                 </td>
29                                         </tr>
30                                 </table>
31                                 <hr>
32                                 <p>
33                                 <input type="checkbox" name="mode" value="1" {$mode} {$lockmode} onClick="changeState('AddRaid'); changeState('AddVolgroup');"> {t}Use 'setup-storage' to partition the disk{/t}                                      </p>
34                 </td>
35                 <td style="border-left: 1px solid rgb(160, 160, 160);">
36                    &nbsp;
37                 </td>
38                 <td>
39                                 <h3>
40                                         <LABEL for="SubObject">
41                                                 {t}Discs{/t}
42                                         </LABEL>
43                                 </h3>
44                                 {$Entry_divlist}
45 {if $sub_object_is_addable}
46                                 <button type='submit' name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
48                                 <button type='submit' name='AddRaid' id="AddRaid" title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
50                                 <button type='submit' name='AddVolgroup' id="AddVolgroup" title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
52 {else}
53                                 <button type='submit' name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
55                                 <button type='submit' name='AddRaid' title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
57                                 <button type='submit' name='AddVolgroup' title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
59 {/if}
61                 </td>
62         </tr>
63 </table>
64 <input type='hidden' name='FAIpartitionTablePosted' value='1'>
65 <!-- Place cursor -->
66 <script language="JavaScript" type="text/javascript">
67   <!-- // First input field on page
68         focus_field('cn','description');
69   -->
70 </script>