-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy patherrors.tpl
20 lines (19 loc) · 831 Bytes
/
errors.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{*
* =|= Error Messages ===========================================
*
* Error / Validation messages shown after submitting forms.
* ==============================================================
*}
{if isset($errors) && $errors}
<div class="error">
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
<ol>
{foreach from=$errors key=k item=error}
<li>{$error}</li>
{/foreach}
</ol>
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
<p class="lnk"><a href="{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'|secureReferrer}" title="{l s='Back'}">« {l s='Back'}</a></p>
{/if}
</div>
{/if}