PageRenderTime 1627ms CodeModel.GetById 1621ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/modules/mod_mailinglist/templates/mailinglist_confirm.tpl

https://code.google.com/p/zotonic/
Smarty Template | 39 lines | 28 code | 11 blank | 0 comment | 3 complexity | 1bd0dff6976249997eb2a6f40545e971 MD5 | raw file
 1{% extends "page.tpl" %}
 2
 3{% block title %}Confirm subscription{% endblock %}
 4
 5{% block content %}
 6
 7<section id="content-wrapper" class="clearfix">
 8	<article id="content" class="zp-100">
 9		<div class="padding">
10		{% with m.mailinglist.confirm_key[q.confirm_key] as confirm %}
11			{% if confirm.mailinglist_id and confirm.email %}
12				<h1>Subscribe to {{ m.rsc[confirm.mailinglist_id].title }}</h1>
13	
14				<p class="summary">{{ m.rsc[confirm.mailinglist_id].summary }}</p>
15				
16				<h2>{_ Please confirm your subscription _}</h2>
17				
18				<p>{_ Click the button below to confirm your subscription to this mailing list. _}</p>
19				 
20				<div id="confirm">
21					{% button text=_"Subscribe"
22							action={mailinglist_confirm confirm_key=q.confirm_key 
23									on_success={update target="confirm" text=_"<p>Thank you. You are now subscribed.</p>"}
24									on_error={update target="confirm" text=_"<p>Sorry, something went wrong. Please try to re-subscribe.</p>"}} %}
25				</div>
26				
27			{% else %}
28				<h1>{_ Sorry, canĂ¢&#x20AC;&#x2122;t confirm your subscription _}</h1>
29				
30				<p>{_ The confirmation key is unknown. Either you already confirmed or something else went wrong. _}</p>
31				<p>{_ You can try to re-subscribe to one of our mailing lists in the side column. _}</p>
32
33			{% endif %}
34		{% endwith %}
35		</div>
36	</article>
37</section>
38
39{% endblock %}