Code

Added ACLs to the Device template
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 12:58:03 +0000 (12:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 12:58:03 +0000 (12:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19715 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/Device.tpl

index c4603100c1bdcbb1bb76958e7d9bdbbc764b0015..3eb9696ac2d816c8e2a812cfdaf02bb4fa342562 100644 (file)
@@ -8,42 +8,72 @@
             <table>
                 <tr>
                     <td><LABEL for='name'>{t}Name{/t}</LABEL></td>
-                    <td> <input type="text" name="cn" value="{$cn}" id="cn" value="{$cn}"></td>
+                    <td>
+                        {render acl=$cnACL}
+                            <input type="text" name="cn" value="{$cn}" id="cn" value="{$cn}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                     <td><LABEL for='description'>{t}Description{/t}</LABEL></td>
-                    <td> <input type="text" name="description" value="{$description}" id="description" value="{$description}"></td>
+                    <td>
+                        {render acl=$descriptionACL}
+                            <input type="text" name="description" value="{$description}" id="description" value="{$description}">
+                        {/render}
+                    </td>
                 </tr>
             </table>
             <hr>
             <table>
                 <tr>
                     <td><LABEL for='ou'>{t}Organizational unit{/t}</LABEL></td>
-                    <td> <input type="text" name="ou" value="{$ou}" id="ou" value="{$ou}"></td>
+                    <td>
+                        {render acl=$ouACL}
+                            <input type="text" name="ou" value="{$ou}" id="ou" value="{$ou}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                     <td><LABEL for='o'>{t}Organizaton{/t}</LABEL></td>
-                    <td> <input type="text" name="o" value="{$o}" id="o" value="{$o}"></td>
+                    <td>
+                        {render acl=$oACL}
+                            <input type="text" name="o" value="{$o}" id="o" value="{$o}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                     <td><LABEL for='l'>{t}Location{/t}</LABEL></td>
-                    <td> <input type="text" name="l" value="{$l}" id="l" value="{$l}"></td>
+                    <td>
+                        {render acl=$lACL}
+                            <input type="text" name="l" value="{$l}" id="l" value="{$l}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                     <td><LABEL for='serialNumber'>{t}Serial number{/t}</LABEL></td>
-                    <td> <input type="text" name="serialNumber" value="{$serialNumber}" id="serialNumber" value="{$serialNumber}"></td>
+                    <td>
+                        {render acl=$serialNumberACL}
+                            <input type="text" name="serialNumber" value="{$serialNumber}" id="serialNumber" value="{$serialNumber}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                     <td><LABEL for='seeAlso'>{t}See also{/t}</LABEL></td>
-                    <td> <input type="text" name="seeAlso" value="{$seeAlso}" id="seeAlso" value="{$seeAlso}"></td>
+                    <td>
+                        {render acl=$seeAlsoACL}
+                            <input type="text" name="seeAlso" value="{$seeAlso}" id="seeAlso" value="{$seeAlso}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
                 </tr>
                 <tr>
                     <td><LABEL for='owner'>{t}Owner{/t}</LABEL></td>
                     <td>
-                        <input type="text" name="owner" value="{$owner_name}" id="owner" value="{$owner_name}" 
+                        {render acl=$ownerACL}
+                            <input type="text" name="owner" value="{$owner_name}" id="owner" value="{$owner_name}" 
                             title="{$owner}" disabled style="width:120px;">
+                        {/render}
 
                         {image path="images/lists/edit.png" action="editOwner" acl=$ownerACL}
                         {if $owner!=""}
             <h3>{t}Registered device{/t}</h3>
             <table>
                 <tr>
-                    <td><LABEL for='manager'>{t}Manager{/t}</LABEL></td>
+                    <td><LABEL for='manager'>{t}Manager{/t}</LABEL>
+                    </td>
                     <td>
-                        <input type="text" name="manager" value="{$manager_name}" id="manager" value="{$manager_name}" 
+                        {render acl=$managerACL}
+                            <input type="text" name="manager" value="{$manager_name}" id="manager" value="{$manager_name}" 
                             title="{$manager}" disabled style="width:120px;">
+                        {/render}
 
                         {image path="images/lists/edit.png" action="editManager" acl=$managerACL}
                         {if $manager!=""}
                 <tr>
                     <td><LABEL for='deviceUUID'>{t}Device UUID{/t}</LABEL></td>
                     <td> 
-                        <input type="text" name="deviceUUID" value="{$deviceUUID}" id="deviceUUID" value="{$deviceUUID}">
-                        {image path="images/lists/reload.png" action="reloadUUID"}
+                        {render acl=$deviceUUIDACL}
+                            <input type="text" name="deviceUUID" value="{$deviceUUID}" id="deviceUUID" value="{$deviceUUID}">
+                        {/render}
+                        {render acl=$deviceUUIDACL}
+                            {image path="images/lists/reload.png" action="reloadUUID"}
+                        {/render}
                     </td>
                 </tr>
                 <tr>
-                    <td><LABEL for='deviceStatus'>{t}Status{/t}</LABEL></td>
-                    <td> <input type="text" name="deviceStatus" value="{$deviceStatus}" id="deviceStatus" value="{$deviceStatus}"></td>
+                    <td><LABEL for='deviceStatus'>{t}Status{/t}</LABEL>
+                    </td>
+                    <td>
+                        {render acl=$deviceStatusACL}
+                            <input type="text" name="deviceStatus" value="{$deviceStatus}" id="deviceStatus" value="{$deviceStatus}">
+                        {/render}
+                    </td>
                 </tr>
             </table>
 
             <h3>{t}Network settings{/t}</h3>
             <table>
                 <tr>
-                    <td><LABEL for='ipHostNumber'>{t}IP-address{/t}</LABEL></td>
-                    <td> <input type="text" name="ipHostNumber" value="{$ipHostNumber}" id="ipHostNumber" value="{$ipHostNumber}"></td>
+                    <td><LABEL for='ipHostNumber'>{t}IP-address{/t}</LABEL>
+                    </td>
+                    <td>
+                        {render acl=$ipHostNumberACL}
+                            <input type="text" name="ipHostNumber" value="{$ipHostNumber}" id="ipHostNumber" value="{$ipHostNumber}">
+                        {/render}
+                    </td>
                 </tr>
                 <tr>
-                    <td><LABEL for='macAddress'>{t}MAC-address{/t}</LABEL></td>
-                    <td> <input type="text" name="macAddress" value="{$macAddress}" id="macAddress" value="{$macAddress}"></td>
+                    <td><LABEL for='macAddress'>{t}MAC-address{/t}</LABEL>
+                    </td>
+                    <td>
+                        {render acl=$macAddressACL}
+                            <input type="text" name="macAddress" value="{$macAddress}" id="macAddress" value="{$macAddress}">
+                        {/render}
+                    </td>
                 </tr>
             </table>
         </td>