Revision de66b95f
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
css/kivitendo/main.css | ||
---|---|---|
361 | 361 |
margin-bottom: 5px; |
362 | 362 |
padding: 5px; |
363 | 363 |
} |
364 |
|
|
365 |
.flash_title { |
|
366 |
font-weight: bold; |
|
367 |
} |
css/lx-office-erp/main.css | ||
---|---|---|
377 | 377 |
padding: 5px; |
378 | 378 |
} |
379 | 379 |
|
380 |
.flash_title { |
|
381 |
font-weight: bold; |
|
382 |
} |
|
383 |
|
|
380 | 384 |
.jqmWindow { |
381 | 385 |
display: none; |
382 | 386 |
|
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