Skip to content
Snippets Groups Projects
Commit 4fef53c3 authored by Jared Hancock's avatar Jared Hancock
Browse files

staff: Allow profile update of vacation mode

Also fixup some layout issues in filter management
parent 317da2f2
Branches
Tags
No related merge requests found
...@@ -631,6 +631,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable { ...@@ -631,6 +631,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable {
$this->default_signature_type = $vars['default_signature_type']; $this->default_signature_type = $vars['default_signature_type'];
$this->default_paper_size = $vars['default_paper_size']; $this->default_paper_size = $vars['default_paper_size'];
$this->lang = $vars['lang']; $this->lang = $vars['lang'];
$this->onvacation = isset($vars['onvacation'])?1:0;
if ($errors) if ($errors)
return false; return false;
......
...@@ -56,8 +56,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -56,8 +56,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<em>(1...99)</em> <em>(1...99)</em>
&nbsp;<span class="error">*&nbsp;<?php echo $errors['execorder']; ?></span> &nbsp;<span class="error">*&nbsp;<?php echo $errors['execorder']; ?></span>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<label class="inline checkbox">
<input type="checkbox" name="stop_onmatch" value="1" <?php echo $info['stop_onmatch']?'checked="checked"':''; ?> > <input type="checkbox" name="stop_onmatch" value="1" <?php echo $info['stop_onmatch']?'checked="checked"':''; ?> >
<?php echo __('<strong>Stop</strong> processing further on match!');?> <?php echo __('<strong>Stop</strong> processing further on match!');?>
</label>
&nbsp;<i class="help-tip icon-question-sign" href="#execution_order"></i> &nbsp;<i class="help-tip icon-question-sign" href="#execution_order"></i>
</td> </td>
</tr> </tr>
...@@ -114,10 +116,16 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -114,10 +116,16 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<td colspan=2> <td colspan=2>
<em><?php echo __('Rules Matching Criteria');?>:</em> <em><?php echo __('Rules Matching Criteria');?>:</em>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="match_all_rules" value="1" <?php echo $info['match_all_rules']?'checked="checked"':''; ?>><?php echo __('Match All');?> <label>
&nbsp;&nbsp;&nbsp; <input type="radio" name="match_all_rules" value="1" <?php echo $info['match_all_rules']?'checked="checked"':''; ?>>
<input type="radio" name="match_all_rules" value="0" <?php echo !$info['match_all_rules']?'checked="checked"':''; ?>><?php echo __('Match Any');?> <?php echo __('Match All');?>
&nbsp;<span class="error">*&nbsp;</span> </label>
<span style="display:inline-block;width:10px"> </span>
<label>
<input type="radio" name="match_all_rules" value="0" <?php echo !$info['match_all_rules']?'checked="checked"':''; ?>>
<?php echo __('Match Any');?>
</label>
<span class="error">*</span>
<em>(<?php echo __('case-insensitive comparison');?>)</em> <em>(<?php echo __('case-insensitive comparison');?>)</em>
&nbsp;<i class="help-tip icon-question-sign" href="#rules_matching_criteria"></i> &nbsp;<i class="help-tip icon-question-sign" href="#rules_matching_criteria"></i>
...@@ -232,8 +240,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) { ...@@ -232,8 +240,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
<?php } <?php }
} ?> } ?>
</select> </select>
<input id="new-action-btn" type="button" value="<?php echo __('Add'); ?>" <button id="new-action-btn" type="button" class="inline green button" onclick="javascript:
onclick="javascript:
var dropdown = $('#new-action-select'), selected = dropdown.find(':selected'); var dropdown = $('#new-action-select'), selected = dropdown.find(':selected');
dropdown.val(''); dropdown.val('');
$('#dynamic-actions') $('#dynamic-actions')
...@@ -248,7 +255,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) { ...@@ -248,7 +255,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
) )
).append( ).append(
$('<input>').attr({type:'hidden',name:'actions[]',value:'N'+selected.val()}) $('<input>').attr({type:'hidden',name:'actions[]',value:'N'+selected.val()})
);"/> );"><?php echo __('Add'); ?></button>
</td> </td>
</tr> </tr>
<tr> <tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment