tiki-newsletter_archives.tpl 2.58 KB
Newer Older
1
{title help="Newsletters"}{tr}Sent editions{/tr}{if $nl_info}: {$nl_info.name}{/if}{/title}
2

3
<div class="t_navbar margin-bottom-md">
4
	{if $tiki_p_list_newsletters eq "y"}
5
		{button href="tiki-newsletters.php" class="btn btn-default" _text="{tr}List Newsletters{/tr}"}
6
	{/if}
7
	{if $tiki_p_subscribe_newsletters eq "y"}
8
		{button href="tiki-newsletters.php?nlId=$nlId&amp;info=1" class="btn btn-default" _text="{tr}Subscribe{/tr}"}
9 10
	{/if}
	{if $tiki_p_send_newsletters eq "y"}
11
		{button href="tiki-send_newsletters.php?nlId=$nlId" class="btn btn-default" _text="{tr}Send Newsletters{/tr}"}
12 13
	{/if}
	{if $tiki_p_admin_newsletters eq "y"}
14
		{button href="tiki-admin_newsletters.php" class="btn btn-default" _text="{tr}Admin Newsletters{/tr}"}
15 16
	{/if}
</div>
17 18
<br>
<br>
19
<div id="newsletter_archives">
20 21 22
	{if $edition}
		<h3>{tr}Subject{/tr}</h3>
		<div class="alert alert-info newsletter_subject">{$edition.subject|escape}</div>
23

24 25
		<h3>{tr}HTML version{/tr}</h3>
		<div class="alert alert-info newsletter_content">{$edition.dataparsed}</div>
26

27 28 29 30 31 32 33 34 35 36 37
		{if $allowTxt eq 'y'}
			<h3>{tr}Text version{/tr}</h3>
			{if $edition.datatxt}<div class="alert alert-info newsletter_textdata" >{$info.datatxt|escape|nl2br}</div>{/if}
			{if $txt}<div class="alert alert-info newsletter_text">{$txt|escape|nl2br}</div>{/if}
		{/if}
		<div class="newsletter_trailer">
			{assign var="sent" value=$edition.users}
			{tr}The newsletter was sent to {$sent} email addresses{/tr}<br>
			{$edition.sent|tiki_short_datetime}
		</div>
	{/if}
38

39 40 41 42 43 44 45 46 47 48
	{assign var=view_editions value='y'}
	{assign var=cur value='ed'}
	{assign var=bak value='dr'}
	{assign var=sort_mode value=$ed_sort_mode}
	{assign var=sort_mode_bak value='sent_desc'}
	{assign var=offset value=$ed_offset}
	{assign var=offset_bak value=0}
	{assign var=find value=$ed_find}
	{assign var=find_bak value=''}
	{include file='sent_newsletters.tpl'}
49

50 51
	{if $edition_errors}
		<h2>{tr}Errors:{/tr} {$edition_info.subject} / {$edition_info.sent|tiki_short_datetime}</h2>
lindonb's avatar
lindonb committed
52
		<a href="tiki-newsletter_archives.php?deleteError={$edition_info.editionId}" title="{tr}Delete errors{/tr}">{icon name='remove' alt="{tr}Remove{/tr}"}</a>
53
		<div class="table-responsive">
54
			<table class="table">
55 56 57 58 59
				<tr>
					<th>{tr}Email{/tr}</th>
					<th>{tr}User{/tr}</th>
					<th>{tr}Status{/tr}</th>
				</tr>
60

61 62 63 64 65 66 67 68 69 70
				{section name=ix loop=$edition_errors}
					<tr>
						<td class="email">{$edition_errors[ix].email}</td>
						<td class="username">{$edition_errors[ix].login}</td>
						<td class="text">{if $edition_errors[ix].error eq 'y'}{tr}Error{/tr}{else}{tr}Not sent{/tr}{/if}</td>
					</tr>
				{/section}
			</table>
		</div>
	{/if}
71
</div>