Code

Updated FAI partition handling
[gosa.git] / gosa-plugins / fai / admin / fai / faiDiskEntry.tpl
index 3de13c88eaf118528c004d81300f18e3551c324b..77404af1b162996843aacd9a886a231125d4c873 100644 (file)
@@ -3,59 +3,87 @@
 <table style='width:100%' summary="">
        <tr>
                <td style='width:50%;border-right:1px solid #909090;'>
-                <table>
-                <tr>
-                <td>
-                        <LABEL for="DISKcn">
-                       {t}Name{/t}
-                       </LABEL>{$must}&nbsp;
-                </td><td>
+
+      <table>
+        <tr>
+          <td>
+            <LABEL for="DISKcn">{t}Name{/t}</LABEL>{$must}&nbsp;
+          </td>
+          <td>
 {render acl=$DISKcnACL}
-                       <input value="{$DISKcn}" size="45" maxlength="80" name="DISKcn" id="DISKcn">
+                             <input value="{$DISKcn}" size="45" maxlength="80" name="DISKcn" id="DISKcn">
 {/render}
-               </td>
-                </tr>
-                <tr>
-               <td><LABEL for="fstabkey">
-                       {t}FSTAB key{/t}
-                </td><td>
+               </td>
+        </tr>
+        <tr>
+                     <td>
+            <LABEL for="fstabkey">{t}FSTAB key{/t}</LABEL>
+          </td>
+          <td>
 {render acl=$DISKFAIdiskOptionACL}
-                        <select name="fstabkey" size="1">
-                           {html_options values=$fstabkeys output=$fstabkeys selected=$fstabkey}
-                        </select>
+            <select name="fstabkey" size="1">
+               {html_options options=$fstabkeys selected=$fstabkey}
+            </select>
 {/render}
-               </td>
-                </tr>
-                </table>
-                </td>
+                     </td>
+        </tr>
+      </table>
+
+    </td>
                <td>
-                <table>
-                <tr>
-                <td>
-<LABEL for="DISKdescription">
-                       &nbsp;{t}Description{/t}
-                       </LABEL>&nbsp;
-                </td><td>
+
+      <table>
+        <tr>
+          <td>
+            <LABEL for="DISKdescription">&nbsp;{t}Description{/t}</LABEL>&nbsp;
+          </td>
+          <td>
 {render acl=$DISKdescriptionACL}
-                       <input value="{$DISKdescription}" size="45" maxlength="80" name="DISKdescription" id="DISKdescription">
+                             <input value="{$DISKdescription}" size="45" maxlength="80" 
+              name="DISKdescription" id="DISKdescription">
 {/render}
-               </td>
-                </tr>
-                <tr>
-               <td><LABEL for="disklabel">
-                       {t}Disk label{/t}
-                </td><td>
+                     </td>
+        </tr>
+        <tr>
+                     <td>
+            <LABEL for="disklabel">{t}Disk label{/t}</LABEL>
+          </td>
+          <td>
 {render acl=$DISKFAIdiskOptionACL}
-                        <select name="disklabel" size="1">
-                           {html_options values=$disklabels output=$disklabels selected=$disklabel}
-                        </select>
+            <select name="disklabel" size="1">
+               {html_options options=$disklabels selected=$disklabel}
+            </select>
 {/render}
-               </td>
-                </tr>
-                </table>
+                     </td>
+        </tr>
+      </table>
+
+    </td>
        </tr>
 </table>
-<br>
+
+{if $FAIdiskType == "lvm"}
+
+<p class="seperator">&nbsp;</p>
+<table width="100%">
+  <tr>
+    <td>
+      <h2>{t}Combined physical partitions{/t}</h2>
+
+      <select name='physicalPartition' size=5 style="width:100%;">
+        {html_options options=$plist}
+      </select>
+      <br>
+      <select name='lvmPartitionAdd'>
+        {html_options options=$physicalPartitionList}
+      </select>
+      <input type="submit" name='addLvmPartition' value="{msgPool type="addButton"}">&nbsp;
+      <input type="submit" name='delLvmPartition' value="{msgPool type="delButton"}">&nbsp;
+    </td>
+  </tr>
+</table>
+
+{/if}
 <p class="seperator">&nbsp;</p>
 <br>
 <h2><img class="center" alt="" src="images/lists/paste.png" align="middle" title="{t}Partition entries{/t}">&nbsp;{t}Partition entries{/t}</h2>