{* $Id$ *} {title help="Mail Notifications"}{tr}Mail notifications{/tr}{/title} {if empty($prefs.sender_email)} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}You need to set Sender Email before creating email notifications{/tr}. {/remarksbox} {/if}

{tr}Add notification{/tr}

{ticket} {if $offset}{/if} {if $numrows ne $prefs.maxRecords and $numrows}{/if}
{jq} $("select[name='destination']").change(function () { $("#loginrow").hide(); $("#emailrow").hide(); $("input[name='login']").attr("disabled","disabled"); $("input[name='email']").attr("disabled","disabled"); $("#" + $("select[name='destination']").val() + "row").show(); $("input[name='" + $("select[name='destination']").val() + "']").focus(); $("input[name='" + $("select[name='destination']").val() + "']").removeAttr("disabled"); } ); {/jq}
{autocomplete element='#flogin' type='username'}

{tr}Mail notifications{/tr}

{if $channels or ($find ne '')} {include file='find.tpl' find_show_num_rows='y'} {/if}
{ticket}
{section name=user loop=$channels} {sectionelse} {norecords _colspan=6} {/section}
{if $channels} {select_all checkbox_names='checked[]'} {/if} {self_link _sort_arg="sort_mode" _sort_field="event"}{tr}Event{/tr}{/self_link} {self_link _sort_arg="sort_mode" _sort_field="object"}{tr}Object Id{/tr}{/self_link} {self_link _sort_arg="sort_mode" _sort_field="email"}{tr}Email{/tr}{/self_link} {self_link _sort_arg="sort_mode" _sort_field="user"}{tr}User / Group{/tr}{/self_link}
{$channels[user].event} {if $channels[user].url} {$channels[user].object|escape} {else} {$channels[user].object|escape} {/if} {if $channels[user].watchtype eq 'group'} {icon name="group"} {else} {icon name="user"} {/if} {$channels[user].user|escape} {icon name="delete" class="tips" href="{$smarty.server.SCRIPT_NAME}?{query removeevent=$channels[user].watchId removetype=$channels[user].watchtype}" title=":{tr}Delete{/tr}" onclick="confirmPopup('{tr}Delete mail notification event?{/tr}', '{ticket mode=get}')"}
{if $channels}
{/if}
{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links} {if !empty($trackers)}

{tr}Trackers Outbound Emails{/tr}

{section name=ix loop=$trackers} {/section}
{$trackers[ix].value|escape}
{/if} {if !empty($forums)}

{tr}Forums Outbound Emails{/tr}

{section name=ix loop=$forums} {/section}
{$forums[ix].outbound_address|escape}
{/if}