From: Moritz Bunkus Date: Thu, 30 Dec 2010 14:43:54 +0000 (+0100) Subject: Vergessenes Template zum Flash-Mechanismus X-Git-Tag: release-2.6.2beta1~17^2~6^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=68f1c66a321810fbf9028ef92f1fa17392127258;p=kivitendo-erp.git Vergessenes Template zum Flash-Mechanismus --- diff --git a/templates/webpages/common/flash.html b/templates/webpages/common/flash.html new file mode 100644 index 000000000..fe908512a --- /dev/null +++ b/templates/webpages/common/flash.html @@ -0,0 +1,21 @@ +[%- USE HTML -%] +[%- IF FLASH %] + [%- BLOCK output %] +
+ [%- title %]: + [% FOREACH message = messages %] + [%- HTML.escape(message) %] + [%- UNLESS loop.last %]
[% END %] + [%- END %] +
+ [%- END %] + [%- IF FLASH.error && FLASH.error.size %] + [%- PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %] + [%- END %] + [%- IF FLASH.warning && FLASH.warning.size %] + [%- PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %] + [%- END %] + [%- IF FLASH.info && FLASH.info.size %] + [%- PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %] + [%- END %] +[%- END %]