0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 11:38:42 +02:00
postfixadmin/templates/vacation.tpl
Christian Boltz 8c139c95d6 vacation:
restrict reply type to a list of options ($CONF[vacation_choice_of_reply]),
remove input field for custom interval


config.inc.php:
- change $CONF['vacation_choice_of_reply'] to [seconds] => [$PALANG label]
  (note: reply to every mail is commented by default because it can be
  annoying. Admins will have to explicitely add/enable it in their config.)
- remove $CONF[vacation_replytype_default]
- update comment about dovecot:* for $CONF[encrypt]

*.lang:
- add texts for reply types

VacationHandler.php:
- remove reply_type at various places
- set_away(): remove reply_type from list of function parameters

templates/vacation.tpl:
- update reply type dropdown for the changed $CONF['vacation_choice_of_reply']
- remove the input fields for custom reply delay

vacation.php:
- restrict reply type to a list of options ($CONF[vacation_choice_of_reply])
- if vacation is disabled, but old values are stored in the database,
  change the activeFrom and activeUntil date to today to avoid users
  have to scroll through the calendar a lot

xmlrpc.php:
- update set_away() call to match the removed parameter

upgrade.php:
- comment out upgrade_1345_mysql() which created the reply_type and 
  interval_time fields in the vacation table in mysql
- add upgrade_1610() to add the vacation.interval_time field


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1610 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-22 16:50:55 +00:00

76 lines
2.1 KiB
Smarty

{literal}
<script language="JavaScript" src="calendar.js" type="text/javascript"></script>
{/literal}
<div id="edit_form">
<form name="edit-vacation" method="post" action=''>
<table>
<tr>
<th colspan="3">{$PALANG.pUsersVacation_welcome}</th>
</tr>
{if !$authentication_has_role.user}
<tr>
<td class="label"><label>{$PALANG.pLogin_username}:</label></td>
<td><em>{$tUseremail}</em></td>
<td>&nbsp;</td>
</tr>
{/if}
<tr>
<td class="label"><label>{$PALANG.pUsersVacation_activefrom}:</label></td>
<td><input class="flat readonly" name="fActiveFrom" value="{$tActiveFrom}" readonly="readonly" />
{literal}
<script language="JavaScript" type="text/javascript">
new tcal ({
'formname': 'edit-vacation',
'controlname': 'fActiveFrom'
});
</script>
{/literal}
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pUsersVacation_activeuntil}:</label></td>
<td><input class="flat readonly" name="fActiveUntil" value="{$tActiveUntil}" readonly="readonly" />
{literal}
<script language="JavaScript" type="text/javascript">
new tcal ({
'formname': 'edit-vacation',
'controlname': 'fActiveUntil'
});
</script>
{/literal}
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pVacation_reply_type}:</label></td>
<td>
<select class="flat" name="fInterval_Time">
{html_options options=$select_options selected=$tInterval_Time}
</select>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.subject}:</label></td>
<td><textarea class="flat" rows="3" cols="60" name="fSubject" >{$tSubject}</textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.message}:</label></td>
<td><textarea class="flat" rows="10" cols="60" name="fBody" >{$tBody}</textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2">
<input class="button" type="submit" name="fChange" value="{$PALANG.pEdit_vacation_set}" />
<input class="button" type="submit" name="fBack" value="{$PALANG.pEdit_vacation_remove}" />
<input class="button" type="submit" name="fCancel" value="{$PALANG.exit}" />
</td>
</tr>
</table>
</form>
</div>