summaryrefslogtreecommitdiff
path: root/templates/mail_queue.tpl
blob: 786283ddf5ad56b120e1895dfe3fb491da2eb9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{strip}

<div class="admin mailqueue">

	<div class="header">
		<h1>{tr}Queued Mails{/tr}</h1>
	</div>
	
	{form}
		{if $queue}
			<table class="table data">
			<tr>
				<th class="item">{smartlink ititle="Email" isort="email" offset=$offset}</th>
				<th class="item">{smartlink ititle="Content Title" isort="title" offset=$offset}</th>
				<th class="item">{smartlink ititle="Newsletter" isort="newsletter" offset=$offset}</th>
				<th class="item">{smartlink ititle="Queue Date" isort="queue_date" offset=$offset}</th>
				<th class="item">{smartlink ititle="Sent Date" isort="sent_date" offset=$offset}</th>
				<th class="item"></th>
			</tr>
			{foreach from=$queue item=q key=qId}
				<tr class="item">
					<td>{$q.email}</td>
					<td><a href="{$smarty.const.BIT_ROOT_URL}?content_id={$q.content_id}">{$q.title|escape}</a></td>
					<td><a href="{$smarty.const.BIT_ROOT_URL}?content_id={$q.nl_content_id}">{$q.newsletter_title|escape}</a></td>
					<td>{$q.queue_date|bit_short_datetime}</a></td>
					<td>{if $q.sent_date}{$q.sent_date|bit_short_datetime}{/if}</td>
					<td><input type="checkbox" name="queue_id[]" value="{$qId}" /></td>
				</tr>
			{/foreach}
			</table>
		{/if}
		
		<div class="row alignright">
			{tr}With checked:{/tr}
			&nbsp;
			<select name="batch_command">
				<option></option>
				<option value="delete">{tr}Delete{/tr}</option>
				<option value="send">{tr}Send Immediately{/tr}</option>
			</select>
		</div>
		
		<div class="row input alignright">
			<input type="submit" class="btn btn-default" name="Submit" value="Submit" />
		</div>
	
	{/form}

</div>

{/strip}