diff --git a/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl b/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl
index b92dd47dddcfcfb15101ab14b267297451d73a1a..8a033c9ea648cb0a1e074388452dd723b46eaa90 100644 (file)
-<table width="100%" summary="">
- <tr>
- <td width="50%" valign="top">
- <h2><img class="center" alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}"> {t}Generic{/t}</h2>
- <table summary="" cellspacing="4">
- <tr>
- <td>
- <LABEL for="cn">
- {t}Name{/t}{$must}
- </LABEL>
- </td>
- <td>
-{render acl=$cnACL}
- <input value="{$cn}" size="45" maxlength="80" id='cn' disabled >
-{/render}
- </td>
- </tr>
- <tr>
- <td>
- <LABEL for="description">
- {t}Description{/t}
- </LABEL>
- </td>
- <td>
-{render acl=$descriptionACL}
- <input value="{$description}" size="45" maxlength="80" name="description" id="description">
-{/render}
- </td>
- </tr>
- </table>
- </td>
- <td style="border-left: 1px solid rgb(160, 160, 160);">
-
- </td>
- <td>
- <h2><img class="center" alt="" src="plugins/fai/images/fai_partitionTable.png" align="middle" title="{t}Objects{/t}">
- <LABEL for="SubObject">
- {t}Discs{/t}
- </LABEL>
- </h2>
- <table width="100%" summary="">
- <tr>
- <td>
- <select name="disks[]" title="{t}Choose a disk to delete or edit{/t}" style="width:100%" size="20" id="SubObject" multiple>
- {html_options options=$disks}
- <option> </option>
- </select><br>
-{if $sub_object_is_addable}
- <input type="submit" name="AddDisk" value="{msgPool type=addButton}" title="{msgPool type=addButton}">
-{else}
- <input type="button" name="dummy_c" value="{msgPool type=addButton}" title="{msgPool type=addButton}" disabled >
-{/if}
- <input type="submit" name="EditDisk" value="{t}Edit{/t}" title="{t}Edit{/t}">
-
-{if $sub_object_is_removeable}
- <input type="submit" name="DelDisk" value="{msgPool type=delButton}" title="{msgPool type=delButton}">
-{else}
- <input type="button" name="dummy_r" disabled value="{msgPool type=delButton}" title="{msgPool type=delButton}">
-{/if}
- </td>
- </tr>
- </table>
- </td>
- </tr>
+<table width="100%" summary="{t}FAI partition table{/t}">
+ <tr>
+ <td width="50%" valign="top">
+ <h3>{t}Generic{/t}
+ </h3>
+ <table summary="{t}Generic settings{/t}" cellspacing="4">
+ <tr>
+ <td><LABEL for="cn">{t}Name{/t}
+ {$must}</LABEL>
+ </td>
+ <td>
+ {render acl=$cnACL}
+ <input type='text' value="{$cn}" size="45" maxlength="80" id='cn' disabled >
+ {/render}
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="description">{t}Description{/t}</LABEL>
+ </td>
+ <td>
+ {render acl=$descriptionACL}
+ <input type='text' value="{$description}" size="45" maxlength="80" name="description" id="description">
+ {/render}
+ </td>
+ </tr>
+ </table>
+ <hr>
+ <p>
+ <input type="checkbox" name="mode" value="1" {$mode} {$lockmode} id='setup-storage'
+ onClick="changeState('AddRaid'); changeState('AddVolgroup');">
+ <label for='setup-storage'>{t}Use 'setup-storage' to partition the disk{/t}</label>
+ </p>
+ </td>
+ <td class='left-border'>
+ </td>
+ <td>
+ <h3><LABEL for="SubObject">{t}Discs{/t}</LABEL>
+ </h3>
+ {$Entry_listing}
+
+ {if $sub_object_is_addable}
+ <button type='submit' name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
+ <button {$storage_mode} {$addraid} type='submit' name='AddRaid' id="AddRaid" title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
+ <button {$storage_mode} type='submit' name='AddVolgroup' id="AddVolgroup" title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
+ {else}
+ <button type='button' disabled name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
+ <button type='button' disabled name='AddRaid' title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
+ <button type='button' disabled name='AddVolgroup' title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
+
+ {/if}
+ </td>
+ </tr>
</table>
-<!-- Place cursor -->
-<script language="JavaScript" type="text/javascript">
- <!-- // First input field on page
- focus_field('cn','description');
- -->
-</script>
-
+<input type='hidden' name='FAIpartitionTablePosted' value='1'><!-- Place cursor -->
+<script language="JavaScript" type="text/javascript"><!-- // First input field on page focus_field('cn','description'); --></script>