Revision 68f1c66a
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
templates/webpages/common/flash.html | ||
---|---|---|
1 |
[%- USE HTML -%] |
|
2 |
[%- IF FLASH %] |
|
3 |
[%- BLOCK output %] |
|
4 |
<div class="flash_message_[% type %]"> |
|
5 |
[%- title %]: |
|
6 |
[% FOREACH message = messages %] |
|
7 |
[%- HTML.escape(message) %] |
|
8 |
[%- UNLESS loop.last %]<br>[% END %] |
|
9 |
[%- END %] |
|
10 |
</div> |
|
11 |
[%- END %] |
|
12 |
[%- IF FLASH.error && FLASH.error.size %] |
|
13 |
[%- PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %] |
|
14 |
[%- END %] |
|
15 |
[%- IF FLASH.warning && FLASH.warning.size %] |
|
16 |
[%- PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %] |
|
17 |
[%- END %] |
|
18 |
[%- IF FLASH.info && FLASH.info.size %] |
|
19 |
[%- PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %] |
|
20 |
[%- END %] |
|
21 |
[%- END %] |
Auch abrufbar als: Unified diff
Vergessenes Template zum Flash-Mechanismus