aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/infos_errors.tpl
blob: 72ae50f1834f556c7f38b5b6710947de90913ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{if isset($errors)}
<div class="ui-bar ui-bar-e errors">
  <h3>{'Error'|@translate}</h3>
	<div><a href="#" data-role="button" data-icon="delete" data-iconpos="notext" class="close-button">Button</a></div>
	<p>{'<br>'|@implode:$errors}</p>
</div>
{/if}

{if not empty($infos)}
<div class="ui-bar ui-bar-b infos">
  <h3>{'Info'|@translate}</h3>
	<div><a href="#" data-role="button" data-icon="delete" data-iconpos="notext" class="close-button">Button</a></div>
	<p>{'<br>'|@implode:$infos}</p>
</div>
{/if}

{footer_script}{literal}
$(document).ready(function () {
  $('.close-button').click(function() {
    $(this).parents('.ui-bar').remove();
  });
});
{/literal}{/footer_script}