You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/templates/edit-mailbox.tpl

78 lines
2.4 KiB
Smarty

<div id="edit_form">
<form name="mailbox" method="post" action="">
<table>
<tr>
<th colspan="4">
{if $mode == 'edit'}
{$PALANG.pEdit_mailbox_welcome}</th>
{else}
{$PALANG.pCreate_mailbox_welcome}
{/if}
</tr>
<tr>
<td class="label"><label>{$PALANG.pEdit_mailbox_username}:</label></td>
{if $mode == 'edit'}
<td><em>{$fUsername}</em></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
{else}
<td><input class="flat" type="text" name="fUsername" value="{$tUsername}"/></td>
<td>@
<select name="fDomain">{$select_options}</select>
</td>
<td class="error_msg">{$pCreate_mailbox_username_text_error}</td>
{/if}
</tr>
<tr>
<td class="label"><label>{$PALANG.pCreate_mailbox_password}:</label></td>
<td><input class="flat" type="password" name="fPassword" /></td>
<td>{$PALANG.pCreate_mailbox_password_text}</td>
<td class="error_msg">{$mailbox_password_text_error}</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pCreate_mailbox_password2}:</label></td>
<td><input class="flat" type="password" name="fPassword2" /></td>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pEdit_mailbox_name}:</label></td>
<td><input class="flat" type="text" name="fName" value="{$tName}" /></td>
<td>{$PALANG.pCreate_mailbox_name_text}</td>
<td>&nbsp;</td>
</tr>
{if $CONF.quota===YES}
<tr>
<td class="label"><label>{$PALANG.pEdit_mailbox_quota}{if $mode == 'edit'} (max: {$tMaxquota}){/if}:</label></td>
<!-- TODO: show available quota in create -->
<!-- TODO: better place to show available quota? -->
<td><input class="flat" type="text" name="fQuota" value="{$tQuota}" /></td>
<td>{$PALANG.pEdit_mailbox_quota_text}</td>
<td class="error_msg">{$mailbox_quota_text_error}</td>
</tr>
{/if}
<tr>
<td class="label"><label>{$PALANG.pCreate_mailbox_active}:</label></td>
<td><input class="flat" type="checkbox" name="fActive"{$tActive}/></td>
<td colspan="2">&nbsp;</td>
</tr>
{if $mode == 'create'}
<tr>
<td class="label"><label>{$PALANG.pCreate_mailbox_mail}:</label></td>
<td><input class="flat" type="checkbox" name="fMail" checked="checked" /></td>
<td colspan="2">&nbsp;</td>
</tr>
{/if}
<tr>
<td>&nbsp;</td>
<td colspan="3">
<input class="button" type="submit" name="submit"
value="{if $mode == 'edit'}{$PALANG.save}{else}{$PALANG.pCreate_mailbox_button}{/if}" />
{if $mode == 'edit'}
<input class="button" type="submit" name="cancel" value="{$PALANG.exit}"/>
{/if}
</td>
</tr>
</table>
</form>
</div>