Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d25334c6

Von Hans Peter Schlaepfer vor mehr als 6 Jahren hinzugefügt

  • ID d25334c6f26a49abac9707a54e5b987bd587d96e
  • Vorgänger e7c11f83
  • Nachfolger 3740d9a0

Aenderungen hpschlaepfer

Unterschiede anzeigen:

templates/webpages/common/flash.html
1
[%- USE HTML -%]
2
[%- USE LxERP %]
3
[%- USE T8 %]
4
[%- BLOCK output %]
5
<div id="flash_[% type %]" class="flash_message flash_message_[% type %]"[% IF !messages || !messages.size %] style="display: none"[% END %]>
6
  <a href="#" style="float:right" onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()' class="icon-close">
7
    &#10005;<!-- <img src="image/close.png" border="0" alt="[% #'Close Flash' | $T8 %]"> -->
8
  </a>
9
  <span class="flash_title">[%- title %]:</span>
10
  <div class="flash_notification">
11
    <span id="flash_[% type %]_content" class="content">
12
      [% FOREACH message = messages %]
13
        [%- HTML.escape(message) %]
14
        [%- UNLESS loop.last %]<br>[% END %]
15
      [%- END %]
16
    </span>
17
    <span id="flash_[% type %]_disp" class="display" style="display: none">
18
      <a href="#" style="float:left" onclick='$("#flash_detail_[% type %]").toggle();'>
19
      [[% 'Details' | $T8 %]]
20
      </a>
21
    </span>
22
    <div id="flash_detail_[% type %]" class="detail" style="display: none">
23
        <span id="flash_[% type %]_detail"></span>
24
        <a href="#" style="float:left" onclick='$("#flash_detail_[% type %]").hide()' class="icon-close">&#10005;</a>
25
        <!-- <img src="image/close.png" border="0" alt="[% #'Close Details' | $T8 %]">-->
26
    </div>
27
  </div>
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE T8 %]
4
[% BLOCK output %] 
5
<div id="flash_[% type %]" class="flash_message flash_message_[% type %]" [% IF !messages || !messages.size %] style="display: none" [% END %]>
6
<div class="icon-container">
7
  <a href="#" onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()' class="icon-close"> &#10005;</a> 
8
  <span id="flash_[% type %]_disp" class="display" style="display: none"> 
9
    <a href="#" onclick='$("#flash_detail_[% type %]").toggle();' class="button"> [% 'Details' | $T8 %] </a> 
10
  </span> 
28 11
</div>
29
[%- END %]
30
[%- PROCESS output title=LxERP.t8('Error')       type='error'   messages = FLASH.error   %]
31
[%- PROCESS output title=LxERP.t8('Warning')     type='warning' messages = FLASH.warning %]
32
[%- PROCESS output title=LxERP.t8('Information') type='info'    messages = FLASH.info    %]
33
[%- PROCESS output title=LxERP.t8('Ok')          type='ok'      messages = FLASH.ok      %]
12
<div class="message-container">
13
	<span class="flash_title">[% title %]:</span> 
14
	<div class="flash_notification">
15
		<span id="flash_[% type %]_content" class="content"> 
16
      [% FOREACH message = messages %] [% HTML.escape(message) %] [% UNLESS loop.last %]<br>[% END %] [% END %]
17
    </span> 
18
		<div id="flash_detail_[% type %]" class="detail" style="display: none">
19
			<span id="flash_[% type %]_detail"></span> 
20
			<a href="#" style="float:left" onclick='$("#flash_detail_[% type %]").hide()' class="icon-close">&#10005;</a> 
21
		</div>
22
	</div><!-- /.flash_notification -->
23
</div>
24
</div>
25
[% END %]
26
[% PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %]
27
[% PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %]
28
[% PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %]
29
[% PROCESS output title=LxERP.t8('Ok') type='ok' messages = FLASH.ok %] 

Auch abrufbar als: Unified diff