aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/infos_errors.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/smartpocket/template/infos_errors.tpl')
-rw-r--r--themes/smartpocket/template/infos_errors.tpl32
1 files changed, 18 insertions, 14 deletions
diff --git a/themes/smartpocket/template/infos_errors.tpl b/themes/smartpocket/template/infos_errors.tpl
index ce2db88d9..72ae50f18 100644
--- a/themes/smartpocket/template/infos_errors.tpl
+++ b/themes/smartpocket/template/infos_errors.tpl
@@ -1,19 +1,23 @@
-{if isset($errors) }
-<div class="errors">
- <ul>
- {foreach from=$errors item=error}
- <li>{$error}</li>
- {/foreach}
- </ul>
+{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="infos">
- <ul>
- {foreach from=$infos item=info}
- <li>{$info}</li>
- {/foreach}
- </ul>
+<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} \ No newline at end of file
+{/if}
+
+{footer_script}{literal}
+$(document).ready(function () {
+ $('.close-button').click(function() {
+ $(this).parents('.ui-bar').remove();
+ });
+});
+{/literal}{/footer_script} \ No newline at end of file