Code

Updated buttons
[gosa.git] / gosa-plugins / goto / admin / systems / goto / printer.tpl
1 <table summary="" width="100%">
2  <tr>
3   <td style="vertical-align:top; width:50%; border-right:1px solid #B0B0B0">
4 {if $StandAlone}
5    <h3>{t}General{/t}</h3>
6    <table summary="">
7     <tr>
8      <td><LABEL for="cn" >{t}Printer name{/t}</LABEL>{$must}</td>
9      <td>
10 {render acl=$cnACL}
11       <input type='text' name="cn" id="cn" size=20 maxlength=60 value="{$cn}">
12 {/render}
13      </td>
14     </tr>
15     <tr>
16      <td><LABEL for="description">{t}Description{/t}</LABEL></td>
17      <td>
18 {render acl=$descriptionACL}
19       <input type='text' id="description" name="description" size=25 maxlength=80 value="{$description}">
20 {/render}
21      </td>
22     </tr>
23     <tr>
24       <td colspan=2>&nbsp;</td>
25     </tr>
26     <tr>
27      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
28      <td>
29 {render acl=$baseACL}
30        {$base}
31 {/render}
32      </td>
33     </tr>
34    </table>
35   </td>
36   <td>
37 {/if}
38    <h3>{t}Details{/t}</h3>
39    <table summary="">
40 {if !$StandAlone}
41       <tr> 
42          <td><LABEL for="description">{t}Description{/t}</LABEL></td> 
43          <td> 
44         {render acl=$descriptionACL} 
45            <input type='text' id="description" name="description" size=25 maxlength=80 value="{$description}"> 
46         {/render} 
47          </td> 
48       </tr> 
49 {/if} 
50      <tr>
51        <td><LABEL for="l">{t}Printer location{/t}</LABEL></td>
52        <td>
53 {render acl=$lACL}
54         <input type='text' id="l" name="l" size=30 maxlength=80 value="{$l}">
55 {/render}
56        </td>
57      </tr>
58      <tr>
59        <td><LABEL for="labeledURI">{t}Printer URL{/t}</LABEL>{$must}</td>
60        <td>
61 {render acl=$labeledURIACL}
62         <input type='text' id="labeledURI" name="labeledURI" size=30 maxlength=80 value="{$labeledURI}">
63 {/render}
64        </td>
65      </tr>
66 {if $displayServerPath && 0}
67     <tr>
68      <td>{t}PPD Provider{/t}
69      </td>
70      <td>
71       <input size=30 type='text' value='{$ppdServerPart}' name='ppdServerPart'>
72      </td>
73     </tr>
74 {/if}
75    </table>
76    <table summary="">
77     <tr> 
78      <td>
79       <br>
80       {t}Driver{/t}: <i>{$driverInfo}</i>&nbsp;
81 {render acl=$gotoPrinterPPDACL mode=read_active}
82        <button type='submit' name='EditDriver'>{t}Edit{/t}</button>
84 {/render}
85 {render acl=$gotoPrinterPPDACL}
86        <button type='submit' name='RemoveDriver'>{t}Remove{/t}</button>
88 {/render}
89      </td>
90     </tr>
91    </table>
92   </td>
93  </tr>
94 </table>
96 <hr>
98 <h3>{t}Permissions{/t}</h3>
99 <table summary="" width="100%">
100  <tr>
101   <td style="border-right:1px solid #B0B0B0; width:50%">
102    <table style="width:100%" summary=''>
103     <tr>
104      <td>
105       {t}Users which are allowed to use this printer{/t}<br>
106 {render acl=$gotoUserPrinterACL}
107       <select size="1" name="UserMember[]" title="{t}Users{/t}" style="width:100%;height:120px;"  multiple>
108        {html_options options=$UserMembers values=$UserMemberKeys}
109       </select><br>
110 {/render}
111 {render acl=$gotoUserPrinterACL}
112       <button type='submit' name='AddUser'>{msgPool type=addButton}</button>
114 {/render}
115 {render acl=$gotoUserPrinterACL}
116       <button type='submit' name='DelUser'>{msgPool type=delButton}</button>
118 {/render}
119      </td>
120     </tr>
121    </table> 
122  
123   </td>
124   <td>
125    <table style="width:100%" summary=''>
126     <tr>
127      <td>
128       {t}Users which are allowed to administrate this printer{/t}<br>
129 {render acl=$gotoUserPrinterACL}
130            <select size="1" name="AdminMember[]" title="{t}Admins{/t}" style="width:100%;height:120px;"  multiple>
131                     {html_options options=$AdminMembers values=$AdminMemberKeys}
132                    </select><br>
133 {/render}
134 {render acl=$gotoUserPrinterACL}
135        <button type='submit' name='AddAdminUser'>{msgPool type=addButton}</button>
137 {/render}
138 {render acl=$gotoUserPrinterACL}
139        <button type='submit' name='DelAdmin'>{msgPool type=delButton}</button>
141 {/render}
142   
143      </td>
144     </tr>
145    </table>
146    
147   </td>
148  </tr>
149 </table>
152 {if $netconfig ne ''}
153 <hr>
154 {$netconfig}
155 {/if}
157 <!-- Place cursor -->
158 <script language="JavaScript" type="text/javascript">
160   <!-- // First input field on page
161   if(document.mainform.cn)
162         focus_field('cn');
163   -->
164 </script>