* email: if forwarding via SIEVE is not allowed - disable the according fields

This commit is contained in:
Klaus Leithoff 2012-04-24 14:37:03 +00:00
parent 8d8a80c26a
commit a3b4b91d63
2 changed files with 13 additions and 2 deletions

View File

@ -409,6 +409,17 @@
$this->t->set_var('value_address',lang('not allowed'));
}
}
if ((!empty($preferences->preferences['prefpreventforwarding']) &&
$preferences->preferences['prefpreventforwarding'] == 1 ))
{
$this->t->set_var('action_address_disabled','disabled');
$this->t->set_var('address_value_disabled','disabled');
}
else
{
$this->t->set_var('action_address_disabled','');
$this->t->set_var('address_value_disabled','');
}
$this->t->set_var('value_ruleID',$_ruleID);
// translate most of the parts

View File

@ -89,10 +89,10 @@ function SubmitForm(a)
</tr>
<tr CLASS="sieveRowActive">
<td>
<input TYPE="radio" NAME="action" VALUE="address" id="action_address" {checked_action_address}> <label for="action_address">{lang_forward_to_address}:</label>
<input TYPE="radio" NAME="action" VALUE="address" id="action_address" {checked_action_address} {action_address_disabled}> <label for="action_address">{lang_forward_to_address}:</label>
</td>
<td>
<input class="input_text" TYPE="text" NAME="address" style="width:250px;" onchange="document.getElementById('action_address').checked = true;" SIZE="40" value="{value_address}">
<input class="input_text" TYPE="text" NAME="address" style="width:250px;" onchange="document.getElementById('action_address').checked = true;" SIZE="40" value="{value_address}" {address_value_disabled}>
</td>
</tr>
<tr CLASS="sieveRowActive">