source: trunk/themes/smartpocket/template/infos_errors.tpl @ 13234

Last change on this file since 13234 was 13234, checked in by patdenice, 9 years ago

feature:2577
Many improvements

File size: 680 bytes
Line 
1{if isset($errors)}
2<div class="ui-bar ui-bar-e errors">
3  <h3>{'Error'|@translate}</h3>
4        <div><a href="#" data-role="button" data-icon="delete" data-iconpos="notext" class="close-button">Button</a></div>
5        <p>{'<br>'|@implode:$errors}</p>
6</div>
7{/if}
8
9{if not empty($infos)}
10<div class="ui-bar ui-bar-b infos">
11  <h3>{'Info'|@translate}</h3>
12        <div><a href="#" data-role="button" data-icon="delete" data-iconpos="notext" class="close-button">Button</a></div>
13        <p>{'<br>'|@implode:$infos}</p>
14</div>
15{/if}
16
17{footer_script}{literal}
18$(document).ready(function () {
19  $('.close-button').click(function() {
20    $(this).parents('.ui-bar').remove();
21  });
22});
23{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.