summaryrefslogtreecommitdiff
path: root/templates/user_subscriptions.tpl
blob: fbb745d801ef9c913442b21177059d7f0b2c706b (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
52
53
54
55
{if $subInfo || $gBitUser->hasPermission('p_newsletters_subscribe')}
{strip}
<div class="display newsletters">
	<div class="header">
		<h1>{tr}Mailing Subscriptions{/tr}</h1>
	</div>

	<div class="body">
	{formfeedback hash=$feedback}
	{form enctype="multipart/form-data" id="editpageform"}
		<input type="hidden" name="response_content_id" value="{$subInfo.content_id}" />
{if $smarty.request.sub}
		<input type="hidden" name="sub" value="{$smarty.request.sub}" />
		<div class="row">
<em>
			{formlabel label="In Response To"}
			{forminput}
				{tr}{$subInfo.content_description}{/tr}: {$subInfo.title|escape}
			{/forminput}
</em>
		</div>
{/if}
		<div class="row">
			{formlabel label="User Information"}
			{forminput}
				{displayname hash=$subInfo}<br/>
				{$subInfo.email}
			{/forminput}
		</div>
		<div class="row">
			{formlabel label="Subscriptions"}
			{forminput}
				{foreach from=$newsletters key=nlId item=nl}
					{if $nl.allow_user_sub}<input type="checkbox" name="nl_content_id[]" value="{$nlId}" {if !$unsubs.$nlId && !$subInfo.unsubscribe_all}checked="checked"{/if}/>{/if} <a href="{$nl.display_url}"/>{$nl.title|escape}</a> <br/>
				{foreachelse}
					{tr}No newsletters were found{/tr}
				{/foreach}
			{/forminput}
		</div>
		<div class="row">
			{formlabel label="Permanent Unsubscribe"}
			{forminput}
				<input type="checkbox" name="unsubscribe_all" value="y" {if $subInfo.unsubscribe_all}checked="checked"{/if} /> {tr}Remove myself from all lists, and receive no further mailings from{/tr} {$gBitSystem->getConfig('siteTitle','this site')}.</br>
			{/forminput}
		</div>
		<div class="row submit">
			<input type="submit" name="update" value="{tr}Update Subscriptions{/tr}" />
		</div>
	{/form}
	</div>	<!-- end .body -->
</div>	<!-- end .newsletters -->
{/strip}
{else}
	{include file="bitpackage:newsletters/list_newsletters.tpl"}
{/if}