Code

Added ACL handling to license managmenet
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / licensePoolGeneric.tpl
1 {if !$init_successfull}
2 <br>
3 <b>{msgPool type=siError}</b><br>
4 {t}Check if the GOsa support daemon (gosa-si) is running.{/t}&nbsp;
5 <input type='submit' name='retry_init' value="{t}retry{/t}">
6 <br>
7 <br>
8 {else}
11 <table width="100%">
12   <tr> 
13     <td style='vertical-align:top;'>
14         <!-- GENERIC -->
15         <h2>{t}Generic{/t}</h2>
16         <table>
17           <tr> 
18             <td>{t}Name{/t}</td>
19             <td>
20               {if $initially_was_account}
21                 <input type='text' value='{$cn}' disabled>
22               {else}
23 {render acl=$cnACL}
24               <input type='text' value='{$cn}' name='cn'>
25 {/render}
26               {/if}
27             </td>
28           </tr>
29           <tr> 
30             <td>{t}Description{/t}</td>
31             <td>
32 {render acl=$descriptionACL}
33               <input type='text' value='{$description}' name='description'>
34 {/render}
35             </td>
36           </tr>
37         </table>
39     </td>
40     <td style='width:50%; border-left: 1px solid #AAA;padding: 5px;'>
41         <!-- LICENSES -->
42         <h2>{t}Licenses{/t}</h2>
43         <table style='width:100%;'>
44           <tr> 
45             <td>
46               {$licenses}
47 {render acl=$licensesACL}
48               <input type='submit' name='addLicense' value='{msgPool type=addButton}'>
49 {/render}
50             </td>
51           </tr>
52         </table>
54     </td>
55   </tr>
56   <tr> 
57     <td colspan="2">
58       <p class='separator'>&nbsp;</p>
59     </td>
60   </tr>
61   <tr>
62     <td style='width:50%'>
63         <!-- APPLICATIONS -->
64         <h2>{t}Applications{/t}</h2>
65         <table style='width:100%;'>
66           <tr> 
67             <td>
68 {render acl=$productIdsACL}
69               <select name='productIds[]' multiple size="6" style="width:100%;">
70                 {html_options options=$productIds}
71               </select><br>
72 {/render}
73 {render acl=$productIdsACL}
74               <select name='availableProduct'>
75                 {html_options options=$availableProductIds}
76               </select>
77 {/render}
78 {render acl=$productIdsACL}
79               <input type='submit' name='addProduct' value='{msgPool type='addButton'}'>
80 {/render}
81 {render acl=$productIdsACL}
82               <input type='submit' name='removeProduct' value='{msgPool type='delButton'}'>
83 {/render}
84             </td>
85           </tr>
86         </table>
88     </td>
89     <td style="border-left: 1px solid #AAA; padding: 5px;">
90         <!-- SOFTWARE -->
91         <h2>{t}Windows software IDs{/t}</h2>
92         <table style='width:100%;'>
93           <tr> 
94             <td>
95 {render acl=$windowsSoftwareIdsACL}
96               <select name='softwareIds[]' multiple size="6" style="width:100%;">
97                 {html_options options=$softwareIds}
98               </select>
99 {/render}
100 {render acl=$windowsSoftwareIdsACL}
101               <input type='text' name='newSoftwareId' value='' size=10>
102 {/render}
103 {render acl=$windowsSoftwareIdsACL}
104               <input type='submit' name='addSoftware' value='{msgPool type='addButton'}'>
105 {/render}
106 {render acl=$windowsSoftwareIdsACL}
107               <input type='submit' name='removeSoftware' value='{msgPool type='delButton'}'>
108 {/render}
109             </td>
110           </tr>
111         </table>
113     </td>
114   </tr>
115 </table>
116 <input name='opsiLicensePoolPosted' value='1' type='hidden'>
117 {/if}