Code

Attachmentpool dialog fixed
[gosa.git] / plugins / admin / systems / glpi.tpl
index 2f960e09b75a4cde2c3a94991b80c9795a963681..70e87c5c5a2cf292c08a54c650ff561681774795 100644 (file)
@@ -4,9 +4,9 @@
                        <!--Upper left-->       
                        
                        <h2>{t}Generic{/t}</h2>
-                       <table summary="">
+                       <table summary="" cellpadding=5>
                                <tr>
-                                       <td width="150">{t}System type{/t}
+                                       <td >{t}System type{/t}
                                        </td>
                                        <td>
                                                <select name="type" {$typeACL}>
                                        </td>
                                        <td>
                                                <i>{$tech_num}&nbsp; </i>&nbsp;
-                                               <input type="submit" value="{t}Choose{/t}" name="SelectTechPerson" {$tech_numACL}>
+                                               <input type="submit" value="{t}Edit{/t}" name="SelectTechPerson" {$tech_numACL}>
                                        </td>
                                </tr>
                        </table>
-                       <p class="seperator" >&nbsp;</p>
-                       <h2>{t}Installed devices{/t}</h2>
-                       <table summary="" width="100%"> 
-                               <tr>
-                                       <td>
-                                               <select name="InstalledDevices" {$InstalledDevicesACL} style="height:120px;width:100%;" multiple>
-                                                       {html_options values=$InstalledDeviceKeys output=$InstalledDevices}
-                                               </select>
-                                               <input name="AddDevice" value="{t}Edit{/t}" type="submit" {$InstalledDevicesACL}>       
-                                       </td>
-                               </tr>
-                       </table>
-                       <p class="seperator" >&nbsp;</p>
-                       <input type="submit" value="{t}Trading{/t}" name="Trading">     
-                       <input type="submit" value="{t}Software{/t}" name="Software">   
-                       <input type="submit" value="{t}Contracts{/t}" name="Contracts"> 
                </td>
                <td style="border-left: 1px solid rgb(160, 160, 160); vertical-align: top; padding-right: 5px;">
+
                        <!--Upper right-->
                        <h2>{t}Contacts{/t}</h2>
                        <table summary="" width="100%">
                                        <td>
                                                {t}Contact person{/t}
                                        </td>
-                                       <td>
+                                       <td width="100%">
                                                <i>{$contact_num}&nbsp; </i>&nbsp;
-                                               <input {$contact_numACL} type="submit" value="{t}Edit{/t}"><img src="images/mailto.png" class="center" alt="{t}mailto{/t}">     
+                                               <input {$contact_numACL} type="submit" name="SelectContactPerson" value="{t}Edit{/t}">
                                        </td>
                                </tr>
                                <tr>
-                                       <td>
+                                       <td valign="top">
                                                {t}Comments{/t}
                                        </td>
                                        <td>
                                        </td>
                                </tr>
                        </table>
+               </td>
+       </tr>
+</table>
+<p class="seperator" >&nbsp;</p>
+<table summary="" style="width:100%;">
+       <tr>
+               <td style="width:50%;">
+                       <h2>{t}Installed devices{/t}</h2>
+                       <table summary="" width="100%"> 
+                               <tr>
+                                       <td>
+                                               <select name="InstalledDevices" {$InstalledDevicesACL} style="height:120px;width:100%;" multiple>
+                                                       {html_options values=$InstalledDeviceKeys output=$InstalledDevices}
+                                               </select>
+                                               <input name="AddDevice" value="{t}Edit{/t}" type="submit" {$InstalledDevicesACL}>       
+                                       </td>
+                               </tr>
+                       </table>
                        <p class="seperator" >&nbsp;</p>
+                       <input type="submit" value="{t}Trading{/t}" name="Trading">     
+                       <input type="submit" value="{t}Software{/t}" name="Software">   
+                       <input type="submit" value="{t}Contracts{/t}" name="Contracts"> 
+               </td>
+               <td style="border-left: 1px solid rgb(160, 160, 160); vertical-align: top; padding-right: 5px;">
                        <h2>{t}Attachments{/t}</h2>
                        <table summary="" width="100%"> 
                                <tr>
                                        <td>
-                                               <select name="Attachments" {$AttachmentsACL} style="height:120px;width:100%;" multiple>
-                                                       {html_options values=$Attachments output=$Attachments}
+                                               <select name="Attachments[]" {$AttachmentsACL} style="height:120px;width:100%;" multiple>
+                                                       {html_options values=$AttachmentKeys output=$Attachments}
                                                </select>
-                                               <input name="AddDevice" value="{t}Edit{/t}" type="submit">      
+                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit" {$AttachmentsACL}>     
+                                               <input name="RemoveAttachment"  value="{t}Remove{/t}" type="submit" {$AttachmentsACL}>  
                                        </td>
                                </tr>
                        </table>
                </td>
        </tr>
 </table>
+<input type="hidden" name="glpi_tpl_posted" value="1">