Code

Followup commit for #3020
[gosa.git] / trunk / gosa-plugins / goto / admin / systems / goto / gotoLpdEnable.tpl
1 {if !$is_account}
3 <table style='width:100%;'>
4         <tr>
5                 <td style='width:55%;'>
6                         <table>
7                                 <tr>
8                                         <td colspan="2">
9                                                 {render acl=$acl}
10                                                 <input class="center" type='checkbox' onChange="document.mainform.submit();" 
11                                                         {if $is_account} checked {/if}
12                                                         name='gotoLpdEnable_enabled'>&nbsp;{t}Enable printer settings{/t}</td>
13                                                 {/render}
14                                         </td>
15                                 </tr>
16                         </table>
17                 </td>
18         </tr>
19 </table>
20 {else}
21 <table style='width:100%;'>
22         <tr>
23                 <td style='width:55%;'>
24                         <table>
25 <!--
26                                 <tr>
27                                         <td>{t}Device{/t}&nbsp;#</td>
28                                         <td>
29                                                 <select name='DevID' onChange="document.mainform.submit();">
30                                                         {foreach from=$data key=key item=item}
31         <option {if $key == $DevID} selected {/if} value='{$key}'>{$key+1}: {$item.s_Type} {$item.s_Device}</option>
32                                                         {/foreach}
33                                                 </select>
34                                                 {if $data_cnt >= 3}
35                                                 <input type="button" disabled name="dummy1" value="{msgPool type=addButton}">
36                                                 {else}
37                                                 <input type="submit" name="add_printer" value="{msgPool type=addButton}">
38                                                 {/if}
39                                                 <input type="submit" name="del_printer" value="{msgPool type=delButton}">
40                                         </td>
41                                 </tr>
42 -->
43                                 <tr>
44                                         <td colspan="2">
45                                                 {render acl=$acl}
46                                                 <input class="center" type='checkbox' onChange="document.mainform.submit();" 
47                                                         {if $is_account} checked {/if}
48                                                         name='gotoLpdEnable_enabled'>&nbsp;{t}Enable printer settings{/t}</td>
49                                                 {/render}
50                                         </TD>
51                                 </tr>
52                                 <tr>
53                                         <td>{t}Type{/t}</td>
54                                         <td>    
55                                                 {render acl=$acl}
56                                                 <select name='s_Type'  onChange="document.mainform.submit();">
57                                                         {html_options options=$a_Types selected=$s_Type}
58                                                 </select>
59                                                 {/render}
60                                         </td>
61                                 </tr>
62                                 <tr>
63                                         <td>{t}Device{/t}</td>
64                                         <td>    
65                                                 {render acl=$acl}
66                                                 <input type='text' name='s_Device' value='{$s_Device}'>
67                                                 {/render}
68                                         </td>
69                                 </tr>
70                                 <tr>
71                                         <td>{t}Port{/t}</td>
72                                         <td>
73                                                 {render acl=$acl}
74                                                 <input type='text' name='i_Port' value='{$i_Port}'>
75                                                 {/render}
76                                         </td>
77                                 </tr>
78                                 <tr>
79                                         <td>{t}Options{/t}</td>
80                                         <td>
81                                                 {render acl=$acl}
82                                                 <input type='text' name='s_Options' value='{$s_Options}'>
83                                                 {/render}
84                                         </td>
85                                 </tr>
86                                 <tr>
87                                         <td>{t}Write only{/t}</td>
88                                         <td>
89                                                 {render acl=$acl}
90                                                 <input {if $s_WriteOnly == "Y"} checked {/if} type='checkbox' name='s_WriteOnly' value='Y' >
91                                                 {/render}
92                                         </td>
93                                 </tr>
94                         </table>
95                 </td>
96                 <td>
97 {if $s_Type == "S"}
98                         <table>
99                                 <tr>
100                                         <td>{t}Bit rate{/t}</td>
101                                         <td>
102                                                 {render acl=$acl}
103                                                 <select name='s_Speed'>
104                                                         {html_options options=$a_Speeds selected=$s_Speed}
105                                                 </select>
106                                                 {/render}
107                                         </td>
108                                 </tr>
109                                 <tr>
110                                         <td>{t}Flow control{/t}</td>
111                                         <td>
112                                                 {render acl=$acl}
113                                                 <select name='s_FlowControl'>
114                                                         {html_options options=$a_FlowControl selected=$s_FlowControl}
115                                                 </select>
116                                                 {/render}
117                                         </td>
118                                 </tr>
119                                 <tr>
120                                         <td>{t}Parity{/t}</td>
121                                         <td>
122                                                 {render acl=$acl}
123                                                 <select name='s_Parity'>
124                                                         {html_options options=$a_Parities selected=$s_Parity}
125                                                 </select>
126                                                 {/render}
127                                         </td>
128                                 </tr>
129                                 <tr>
130                                         <td>{t}Bits{/t}</td>
131                                         <td>
132                                                 {render acl=$acl}
133                                                 <select name='i_Bit'>
134                                                         {html_options options=$a_Bits selected=$i_Bit}
135                                                 </select>
136                                                 {/render}
137                                         </td>
138                                 </tr>
139                         </table>
140 {/if}
141                 </td>
142         </tr>
143 </table>
144 {/if}
145 <input type='hidden' name="gotoLpdEnable_entry_posted" value="1">