{if !$newsletters || $gContent->isValid() || $smarty.request.new} {include file="bitpackage:newsletters/edit_newsletter.tpl"} {else} {strip}
{bithelp}

{tr}Newsletter Settings{/tr}

{minifind} {foreach key=nlId from=$newsletters item=nl} {foreachelse} {/foreach}
{tr}Newsletters{/tr}
{smartlink ititle="Name" isort=name offset=$offset} {smartlink ititle="Description" isort=description offset=$offset} {smartlink ititle="Created" isort=last_sent offset=$offset} {smartlink ititle="Last Sent" isort=created offset=$offset} {smartlink ititle="Unsubscribed" isort=users offset=$offset} {tr}Action{/tr}
{$nl.title|default:"Untitled Newsletter"|escape} {$nl.data} {$nl.created|bit_short_date} {$nl.last_sent|bit_short_date} {$nl.unsub_count|default:0} {booticon iname="icon-file" ipackage="icons" iexplain="New Edition"} {booticon iname="icon-trash" ipackage="icons" iexplain=Remove} {booticon iname="icon-edit" ipackage="icons" iexplain=Edit}
{tr}No Records Found{/tr}
{if $gBitUser->hasPermission('p_newsletters_create')} Create new newsletter {/if} {pagination}
{/strip} {/if}