diff --git a/gosa-plugins/samba/personal/samba/sambaLogonHours.tpl b/gosa-plugins/samba/personal/samba/sambaLogonHours.tpl
index 3f5ab3029b49907eb7182bbd521be727492a698b..c348545b13942ec102260f7928307a8a28fc7be2 100644 (file)
-
+{if $acl}
<!-- Javacript function used to switch a complete row or col of selected hours -->
<script language="javascript" type="text/javascript">
{literal}
}
{/literal}
</script>
+{/if}
<h1>{t}Specify the hours this user is allowed to log in{/t}</h1>
<br>
{/foreach}
</tr>
+{if $acl}
<!-- Add toggle buttons for hours -->
<tr>
<td style='text-align: left;' class='list0'>
</td>
{/foreach}
<td>
-
<input type='button' onClick="toggle_chk('^day_[0-9]*_[0-9]*$');" value='+/-' style='width:100%;'>
</td>
</tr>
+{/if}
<!-- Add Entries -->
{foreach from=$Matrix item=days key=key_day}
{else}
<td style="text-align:center;height: 22px; background-color: rgb(245, 245, 245); border-right: solid 1px;">
{/if}
- {if $Matrix[$key_day].$key_hour}
- <input id='day_{$key_day}_{$key_hour}' type='checkbox' name='day_{$key_day}_{$key_hour}' checked >
- {else}
- <input id='day_{$key_day}_{$key_hour}' type='checkbox' name='day_{$key_day}_{$key_hour}' >
- {/if}
+ <input type='checkbox'
+ {if $acl} id='day_{$key_day}_{$key_hour}' name='day_{$key_day}_{$key_hour}' {/if}
+ {if $Matrix[$key_day].$key_hour} checked {/if}
+ {if !$acl} disabled {/if}>
</td>
{/foreach}
+{if $acl}
<!-- Add toggle button for days -->
<td>
<input type='button' onClick="toggle_chk('^day_{$key_day}_[0-9]*$')" value='+/-' style='padding:0px;margin:0px;'>
</td>
+{/if}
</tr>
{/foreach}
</table>
<input type='hidden' name='sambaLogonHoursPosted' value='1'>
<br>
<p class="plugbottom">
+{if $acl}
<input type=submit name="save_logonHours" value="{msgPool type=saveButton}">
+{/if}
<input type=submit name="cancel_logonHours" value="{msgPool type=cancelButton}">
</p>