diff --git a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl
index c6972b0ede85150aac687132944ae479dafd8d3a..c27450add5fcc3369d33ce5a54f5e2761a6de58b 100644 (file)
+{if !$is_account}
<table style='width:100%;'>
<tr>
- <td style='width:50%;'>
+ <td style='width:55%;'>
<table>
<tr>
- <td>{t}Device{/t}</td>
+ <td colspan="2">
+ {render acl=$acl}
+ <input class="center" type='checkbox' onChange="document.mainform.submit();"
+ {if $is_account} checked {/if}
+ name='gotoLpdEnable_enabled'> {t}Enable printer settings{/t}</td>
+ {/render}
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+{else}
+<table style='width:100%;'>
+ <tr>
+ <td style='width:55%;'>
+ <table>
+<!--
+ <tr>
+ <td>{t}Device{/t} #</td>
+ <td>
+ <select name='DevID' onChange="document.mainform.submit();">
+ {foreach from=$data key=key item=item}
+ <option {if $key == $DevID} selected {/if} value='{$key}'>{$key+1}: {$item.s_Type} {$item.s_Device}</option>
+ {/foreach}
+ </select>
+ {if $data_cnt >= 3}
+ <input type="button" disabled name="dummy1" value="{msgPool type=addButton}">
+ {else}
+ <input type="submit" name="add_printer" value="{msgPool type=addButton}">
+ {/if}
+ <input type="submit" name="del_printer" value="{msgPool type=delButton}">
+ </td>
+ </tr>
+-->
+ <tr>
+ <td colspan="2">
+ {render acl=$acl}
+ <input class="center" type='checkbox' onChange="document.mainform.submit();"
+ {if $is_account} checked {/if}
+ name='gotoLpdEnable_enabled'> {t}Enable printer settings{/t}</td>
+ {/render}
+ </TD>
+ </tr>
+ <tr>
+ <td>{t}Type{/t}</td>
<td>
- <select name='device'>
- {html_options options=$devices selected=$device}
+ {render acl=$acl}
+ <select name='s_Type' onChange="document.mainform.submit();" size=1>
+ {html_options options=$a_Types selected=$s_Type}
</select>
+ {/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Device{/t}</td>
+ <td>
+ {render acl=$acl}
+ <input type='text' name='s_Device' value='{$s_Device}'>
+ {/render}
</td>
</tr>
<tr>
<td>{t}Port{/t}</td>
<td>
- <input type='text' name='port' value='{$port}'>
+ {render acl=$acl}
+ <input type='text' name='i_Port' value='{$i_Port}'>
+ {/render}
</td>
</tr>
<tr>
<td>{t}Options{/t}</td>
<td>
- <input type='text' value='{$options}' name='options'>
+ {render acl=$acl}
+ <input type='text' name='s_Options' value='{$s_Options}'>
+ {/render}
</td>
</tr>
<tr>
<td>{t}Write only{/t}</td>
<td>
- <input type='checkbox' name='writeonly' value='1' >
+ {render acl=$acl}
+ <input {if $s_WriteOnly == "Y"} checked {/if} type='checkbox' name='s_WriteOnly' value='Y' >
+ {/render}
</td>
</tr>
</table>
</td>
<td>
+{if $s_Type == "S"}
<table>
<tr>
- <td>{t}Speed{/t}</td>
- <td></td>
+ <td>{t}Bit rate{/t}</td>
+ <td>
+ {render acl=$acl}
+ <select name='s_Speed' size=1>
+ {html_options options=$a_Speeds selected=$s_Speed}
+ </select>
+ {/render}
+ </td>
</tr>
<tr>
<td>{t}Flow control{/t}</td>
- <td></td>
+ <td>
+ {render acl=$acl}
+ <select name='s_FlowControl' size=1>
+ {html_options options=$a_FlowControl selected=$s_FlowControl}
+ </select>
+ {/render}
+ </td>
</tr>
<tr>
<td>{t}Parity{/t}</td>
- <td></td>
+ <td>
+ {render acl=$acl}
+ <select name='s_Parity' size=1>
+ {html_options options=$a_Parities selected=$s_Parity}
+ </select>
+ {/render}
+ </td>
</tr>
<tr>
<td>{t}Bits{/t}</td>
- <td></td>
+ <td>
+ {render acl=$acl}
+ <select name='i_Bit' size=1>
+ {html_options options=$a_Bits selected=$i_Bit}
+ </select>
+ {/render}
+ </td>
</tr>
</table>
+{/if}
</td>
</tr>
</table>
-
-<p class='seperator'>
-</p>
-<div style='width:100%; text-align: right; padding:5px;'>
- <input type='submit' name='gotoLpdEnable_Ok' value='{msgPool type=okButton}'>
- <input type='submit' name='gotoLpdEnable_Close' value='{msgPool type=cancelButton}'>
-</div>
+{/if}
+<input type='hidden' name="gotoLpdEnable_entry_posted" value="1">