Code

Udpated JS focus,
[gosa.git] / plugins / admin / systems / printer.tpl
2 <table summary="" width="100%">
3         <tr>
4                 <td style="vertical-align:top; width:50%; border-right:1px solid #B0B0B0">
5 {if $StandAlone }
6                         <h2>{t}General{/t}</h2>
7                         <table summary="">
8                          <tr>
9                           <td><LABEL for="cn" >{t}Printer name{/t}</LABEL>{$must}</td>
10                           <td><input name="cn" id="cn" size=20 maxlength=60 value="{$cn}" {$cnACL}></td>
11                          </tr>
12                          <tr>
13                           <td><LABEL for="description">{t}Description{/t}</LABEL></td>
14                           <td><input id="description" name="description" size=25 maxlength=80 value="{$description}" {$descriptionACL}></td>
15                          </tr>
16                          <tr>
17                                   <td colspan=2>&nbsp;</td>
18                          </tr>
19                          <tr>
20                           <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
21                           <td>
22                            <select size="1" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
23                                 {html_options options=$bases selected=$base_select}
24                            </select>
25                                 {if $baseACL == ""}
26                                         <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
27                                 {else}
28                                         <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
29                                 {/if}
30                                 </td>
31                           </tr>
32                         </table>
33                 </td>
34                 <td>
35 {/if}
36                         <h2>{t}Details{/t}</h2>
37                         <table summary="">
38                                 <tr>
39                                         <td><LABEL for="l">{t}Printer location{/t}</LABEL></td>
40                                         <td><input id="l" name="l" size=25 maxlength=80 value="{$l}" {$lACL}></td>
41                                 </tr>
42                                 <tr>
43                                         <td><LABEL for="labeledURI">{t}Printer URL{/t}</LABEL>{$must}</td>
44                                         <td><input id="labeledURI" name="labeledURI" size=25 maxlength=80 value="{$labeledURI}" {$labeledURIACL}></td>
45                                 </tr>
46                         </table>
47                         <table summary="">
48                                 <tr>    
49                                         <td>
50                                                 <br>
51                                                 {t}Driver{/t}: <i>{$driverInfo}</i>&nbsp;
52                                                         <input type="submit" name="EditDriver" value="{t}Edit{/t}" {$gotoPrinterPPDACL}>
53                                                         <input type="submit" name="RemoveDriver" value="{t}Remove{/t}" {$gotoPrinterPPDACL}>
54                                         </td>
55                                 </tr>
56                         </table>
57   </td>
58  </tr>
59 </table>
61 <p class="plugbottom" style="margin-bottom:0px; padding:0px;">&nbsp;</p>
63 <h2><img class="center" alt="" align="middle" src="images/closedlock.png"> {t}Permissions{/t}</h2>
64 <table summary="" width="100%">
65         <tr>
66                 <td style="border-right:1px solid #B0B0B0; width:50%">
67                         <table style="width:100%" summary=''>
68                                 <tr>
69                                         <td>
70                                                 {t}Users which are allowed to use this printer{/t}<br>
71                                                 <select  {if $gotoUserPrinterACL!="" || $gotoGroupPrinterACL!=""} disabled {/if}
72                                                          size="1" name="UserMember[]" title="{t}Users{/t}" style="width:100%;height:120px;"  multiple>
73                                                 {html_options options=$UserMembers values=$UserMemberKeys}
74                                         </select><br>
75                                                         <input {$gotoUserPrinterACL} type="submit" value="{t}Add user{/t}"  name="AddUser">
76                                                         <input {$gotoGroupPrinterACL} type="submit" value="{t}Add group{/t}" name="AddGroup">
77                                                         <input {if $gotoUserPrinterACL!="" || $gotoGroupPrinterACL!=""} disabled {/if} 
78                                                                 type="submit" value="{t}Delete{/t}" name="DelUser">
79                                         </td>
80                                 </tr>
81                         </table>        
82         
83                 </td>
84                 <td>
85                         <table style="width:100%" summary=''>
86                                 <tr>
87                                         <td>
88                                                 {t}Users which are allowed to administrate this printer{/t}<br>
89                                                 <select {if $gotoUserAdminPrinterACL!="" || $gotoGroupAdminPrinterACL!=""} disabled {/if}
90                                                         size="1" name="AdminMember[]" title="{t}Admins{/t}" style="width:100%;height:120px;"  multiple>
91                                                 {html_options options=$AdminMembers values=$AdminMemberKeys}
92                                         </select><br>
93                                                         <input {$gotoUserAdminPrinterACL} type="submit" value="{t}Add user{/t}"  name="AddAdminUser">
94                                                         <input {$gotoGroupAdminPrinterACL} type="submit" value="{t}Add group{/t}" name="AddAdminGroup">
95                                                         <input {if $gotoUserAdminPrinterACL!="" || $gotoGroupAdminPrinterACL!=""} disabled {/if}
96                                                                 type="submit" value="{t}Delete{/t}" name="DelAdmin">
97                 
98                                         </td>
99                                 </tr>
100                         </table>
101                         
102                 </td>
103         </tr>
104 </table>
106 {if $netconfig ne ''}
107 <p class="plugbottom" style="margin-bottom:0px; padding:0px;">&nbsp;</p>
108 {$netconfig}
109 {/if}
111 <!-- Place cursor -->
112 <script language="JavaScript" type="text/javascript">
113   <!-- // First input field on page
114         focus_field('cn');
115   -->
116 </script>