aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/infos_errors.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-02-18 20:26:52 +0000
committerpatdenice <patdenice@piwigo.org>2012-02-18 20:26:52 +0000
commit26ed60c972da7e18325c35a62e72025d1a70fbf1 (patch)
treedbbd725d4b44402ec9c4b1b149db52c4fe886173 /themes/smartpocket/template/infos_errors.tpl
parent4b696df2dad09a333ee41705e2236fb0d986e0c1 (diff)
feature:2577
Many improvements git-svn-id: http://piwigo.org/svn/trunk@13234 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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