mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* email: if forwarding via SIEVE is not allowed - disable the according fields
This commit is contained in:
parent
8d8a80c26a
commit
a3b4b91d63
@ -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
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user