1 [%- USE HTML -%][%- USE LxERP %][%- USE T8 %]
3 <div id="flash_[% type %]" class="flash_message_[% type %]"[% IF !messages || !messages.size %] style="display: none"[% END %]>
4 <a href='#' style='float:right' onclick='$(this).closest("div").find(".flash_content").empty(); $(this).closest("div").hide()'><img src='image/close.png' border='0' alt='[% 'Close Flash' | $T8 %]'></a>
5 <span class="flash_title">[%- title %]:</span>
6 <span id="flash_[% type %]_content" class="flash_content">
7 [% FOREACH message = messages %]
8 [%- HTML.escape(message) %]
9 [%- UNLESS loop.last %]<br>[% END %]
14 [%- PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %]
15 [%- PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %]
16 [%- PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %]