Merged edit-vacation.tpl and users_vacation.tpl.
Prepare merging of edit-vacation.php and users/vacation.php users/vacation.php, edit-vacation.php: - first step of merging - renamed some variables to fit vacation.tpl - some code sorting and cleanup - replaced JS redirect on cancel with handling in PHP users_vacation.tpl, edit-vacation.tpl: - deleted (merged to vacation.tpl) vacation.tpl: - new file, result of merging edit-vacation.tpl and users_vacation.tpl - display mail address to users also (to be discussed) Thanks to J.Kruis (jan-kruis@SF) for the patch, https://sourceforge.net/tracker/?func=detail&aid=3383236&group_id=191583&atid=937966 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1163 a1433add-5e2c-0410-b055-b7f2511e0802pull/2/head
parent
3ff680d3a6
commit
1695f1a7b2
@ -1,68 +0,0 @@
|
||||
{literal}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function newLocation() {
|
||||
window.location="{/literal}{$fCanceltarget}{literal}"
|
||||
}
|
||||
</script>
|
||||
<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>
|
||||
<tr>
|
||||
<td class="label"><label>{$PALANG.pUsersLogin_username}:</label></td>
|
||||
<td><em>{$tUseremail}</em></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><label>{$PALANG.pUsersVacation_activefrom}:</label></td>
|
||||
<td><input class="flat readonly" name="activefrom" value="{$tActiveFrom}" readonly="readonly" />
|
||||
{literal}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
new tcal ({
|
||||
'formname': 'edit-vacation',
|
||||
'controlname': 'activefrom'
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><label>{$PALANG.pUsersVacation_activeuntil}:</label></td>
|
||||
<td><input class="flat readonly" name="activeuntil" value="{$tActiveUntil}" readonly="readonly" />
|
||||
{literal}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
new tcal ({
|
||||
'formname': 'edit-vacation',
|
||||
'controlname': 'activeuntil'
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><label>{$PALANG.pUsersVacation_subject}:</label></td>
|
||||
<td><textarea class="flat" rows="3" cols="60" name="fSubject" >{$tSubject}</textarea></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><label>{$PALANG.pUsersVacation_body}:</label></td>
|
||||
<td><textarea class="flat" rows="10" cols="60" name="fBody" >{$tBody}</textarea></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </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="button" name="fCancel" value="{$PALANG.exit}" onclick="newLocation()" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
Loading…
Reference in New Issue