{* $Id$ *} {title help="Newsletters"}{tr}Admin newsletters{/tr}{/title}
{button href="tiki-admin_newsletters.php?cookietab=2" _icon_name="create" _text="{tr}Create{/tr}"} {icon name="list"} {tr}List Newsletters{/tr} {icon name="envelope"} {tr}Send Newsletters{/tr} {* {button href="tiki-newsletters.php" _class="btn btn-info" _icon_name="list" _text="{tr}List{/tr}"} {button href="tiki-send_newsletters.php" _class="btn btn-primary" _icon_name="envelope" _text="{tr}Send{/tr}"} *}
{tabset} {tab name="{tr}Newsletters{/tr}"}

{tr}Newsletters{/tr}

{if $channels or ($find ne '')} {include file='find.tpl'} {/if}
{* table-responsive class cuts off css drop-down menus *} {section name=user loop=$channels} {sectionelse} {norecords _colspan=8} {/section}
{self_link _sort_arg='sort_mode' _sort_field='nlId'}{tr}ID{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='name'}{tr}Newsletter{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='author'}{tr}Author{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='users'}{tr}Users{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='editions'}{tr}Editions{/tr}{/self_link} {tr}Drafts{/tr} {self_link _sort_arg='sort_mode' _sort_field='lastSent'}{tr}Last Sent{/tr}{/self_link}
{self_link cookietab='2' _anchor='anchor2' nlId=$channels[user].nlId _title="{tr}Edit{/tr}"}{$channels[user].nlId}{/self_link} {self_link cookietab='2' _anchor='anchor2' nlId=$channels[user].nlId _title="{tr}Edit{/tr}"}{$channels[user].name|escape}{/self_link}
{$channels[user].description|escape|nl2br}
{$channels[user].author} {$channels[user].users} ({$channels[user].confirmed}) {$channels[user].editions} {$channels[user].drafts} {if empty($channels[user].lastSent)} {tr}Never{/tr} {else} {$channels[user].lastSent|tiki_short_datetime} {/if} {actions} {strip} {permission_link mode=text type=newsletter permType=newsletters id=$channels[user].nlId title=$channels[user].name} {icon name='group' _menu_text='y' _menu_icon='y' alt="{tr}Subscriptions{/tr}"} {icon name='envelope' _menu_text='y' _menu_icon='y' alt="{tr}Send newsletter{/tr}"} {icon name='file-archive' _menu_text='y' _menu_icon='y' alt="{tr}Archives{/tr}"} {self_link _icon_name='edit' _menu_text='y' _menu_icon='y' cookietab='2' _anchor='anchor2' nlId=$channels[user].nlId} {tr}Edit{/tr} {/self_link} {self_link _icon_name='remove' _menu_text='y' _menu_icon='y' remove=$channels[user].nlId _onclick="confirmPopup('{tr}Remove newsletter?{/tr}', '{ticket mode=get}')"} {tr}Remove{/tr} {/self_link} {/strip} {/actions}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {/tab} {tab name="{tr}Create/Edit Newsletters{/tr}"}

{tr}Create/Edit Newsletters{/tr}

{if isset($individual) && $individual eq 'y'} {permission_link mode=link type=newsletter permType=newsletters id=$info.nlId title=$info.name label="{tr}There are individual permissions set for this newsletter{/tr}"} {/if}
{ticket}
{/tab} {/tabset}