diff --git a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl
index 48910843cd5ff3871fac9c429fdeb9d6b5620d44..c27450add5fcc3369d33ce5a54f5e2761a6de58b 100644 (file)
{if !$is_account}
+<table style='width:100%;'>
+ <tr>
+ <td style='width:55%;'>
+ <table>
+ <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>
+ </table>
+ </td>
+ </tr>
+</table>
{else}
<table style='width:100%;'>
<tr>
- <td style='width:50%;'>
+ <td style='width:55%;'>
<table>
+<!--
<tr>
<td>{t}Device{/t} #</td>
<td>
<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='s_Type' onChange="document.mainform.submit();">
+ {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>
+ {render acl=$acl}
<input type='text' name='i_Port' value='{$i_Port}'>
+ {/render}
</td>
</tr>
<tr>
<td>{t}Options{/t}</td>
<td>
+ {render acl=$acl}
<input type='text' name='s_Options' value='{$s_Options}'>
+ {/render}
</td>
</tr>
<tr>
<td>{t}Write only{/t}</td>
<td>
- <input {if $s_WriteOnly} checked {/if} type='checkbox' name='s_WriteOnly' value='Y' >
+ {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 == "Serial"}
+{if $s_Type == "S"}
<table>
<tr>
- <td>{t}Speed{/t}</td>
+ <td>{t}Bit rate{/t}</td>
<td>
- <select name='s_Speed'>
+ {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>
- <select name='s_FlowControl'>
+ {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>
- <select name='s_Parity'>
+ {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>
- <select name='i_Bit'>
+ {render acl=$acl}
+ <select name='i_Bit' size=1>
{html_options options=$a_Bits selected=$i_Bit}
</select>
+ {/render}
</td>
</tr>
</table>
</td>
</tr>
</table>
-<input type='hidden' name="gotoLpdEnable_entry_posted" value="1">
-<p class='seperator'>
-</p>
{/if}
-<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>
+<input type='hidden' name="gotoLpdEnable_entry_posted" value="1">