Revision 4c3bd0d8
Von Hans Peter Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/common/flash.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP %][%- USE T8 %]
|
||
[%- BLOCK output %]
|
||
<div id="flash_[% type %]" class="flash_message_[% type %]"[% IF !messages || !messages.size %] style="display: none"[% END %]>
|
||
<a href='#' style='float:right'
|
||
onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()'>
|
||
<img src='image/close.png' border='0' alt='[% 'Close Flash' | $T8 %]'></a>
|
||
<span class="flash_title">[%- title %]:</span>
|
||
<span id="flash_[% type %]_content">
|
||
[% FOREACH message = messages %]
|
||
[%- HTML.escape(message) %]
|
||
[%- UNLESS loop.last %]<br>[% END %]
|
||
[%- END %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE T8 %]
|
||
|
||
[% BLOCK output %]
|
||
<div id="flash_[% type %]" class="flash_message flash_message_[% type %]" [% IF !messages || !messages.size %] style="display: none" [% END %]>
|
||
<div class="icon-container">
|
||
<a href="#" onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()' class="icon-close"> ✕</a>
|
||
<span id="flash_[% type %]_disp" class="display" style="display: none">
|
||
<a href="#" onclick='$("#flash_detail_[% type %]").toggle();' class="button"> [% 'Details' | $T8 %] </a>
|
||
</span>
|
||
<span id="flash_[% type %]_disp" style="display: none">
|
||
<a href='#' style='float:left' onclick='$("#flash_detail_[% type %]").toggle();'>
|
||
[[% 'Details' | $T8 %]]</a> </span>
|
||
<div id="flash_detail_[% type %]" style="display: none">
|
||
<br>
|
||
<span id="flash_[% type %]_detail"></span><br>
|
||
<a href='#' style='float:left'
|
||
onclick='$("#flash_detail_[% type %]").hide()'>
|
||
<img src='image/close.png' border='0' alt='[% 'Close Details' | $T8 %]'></a><br>
|
||
</div>
|
||
</div>
|
||
[%- END %]
|
||
[%- PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %]
|
||
[%- PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %]
|
||
[%- PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %]
|
||
[%- PROCESS output title=LxERP.t8('Ok') type='ok' messages = FLASH.ok %]
|
||
</div>
|
||
<div class="message-container">
|
||
<span class="flash_title">[% title %]:</span>
|
||
<div class="flash_notification">
|
||
<span id="flash_[% type %]_content" class="content">
|
||
[% FOREACH message = messages %] [% HTML.escape(message) %] [% UNLESS loop.last %]<br>[% END %] [% END %]
|
||
</span>
|
||
<div id="flash_detail_[% type %]" class="detail" style="display: none">
|
||
<span id="flash_[% type %]_detail"></span>
|
||
<a href="#" style="float:left" onclick='$("#flash_detail_[% type %]").hide()' class="icon-close">✕</a>
|
||
</div>
|
||
</div><!-- /.flash_notification -->
|
||
</div>
|
||
</div>
|
||
[% END #BLOCK output %]
|
||
|
||
[% PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %]
|
||
[% PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %]
|
||
[% PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %]
|
||
[% PROCESS output title=LxERP.t8('Ok') type='ok' messages = FLASH.ok %]
|
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/common/..