Revision de66b95f
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
templates/webpages/common/flash.html | ||
---|---|---|
1 | 1 |
[%- USE HTML -%][%- USE LxERP %][%- USE T8 %] |
2 |
[%- IF FLASH %]
|
|
3 |
[%- BLOCK output %]
|
|
4 |
<div class="flash_message_[% type %]">
|
|
5 |
<a href='#' style='float:right' onclick='$($(this).closest("div")).remove()'><img src='image/close.png' border='0' alt='[% 'Close Flash' | $T8 %]'></a>
|
|
6 |
[%- title %]:
|
|
2 |
[%- BLOCK output %]
|
|
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 | 7 |
[% FOREACH message = messages %] |
8 | 8 |
[%- HTML.escape(message) %] |
9 | 9 |
[%- UNLESS loop.last %]<br>[% END %] |
10 | 10 |
[%- END %] |
11 |
</div> |
|
12 |
[%- END %] |
|
13 |
[%- IF FLASH.error && FLASH.error.size %] |
|
14 |
[%- PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %] |
|
15 |
[%- END %] |
|
16 |
[%- IF FLASH.warning && FLASH.warning.size %] |
|
17 |
[%- PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %] |
|
18 |
[%- END %] |
|
19 |
[%- IF FLASH.info && FLASH.info.size %] |
|
20 |
[%- PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %] |
|
21 |
[%- END %] |
|
11 |
</span> |
|
12 |
</div> |
|
22 | 13 |
[%- 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 %] |
Auch abrufbar als: Unified diff
Flash-DIVs immer ausgeben & Flash-Kategorie fett