Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9ff21697

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID 9ff216979ee746cfa216483016c81e77edff682c
  • Vorgänger fec48603
  • Nachfolger 5313b0e8

common/flash.html via INCLUDE und nicht PROCESS einbinden

flash.html überschreibt mehrere Variablen mit eigenen Werten: `title`,
`type` und `messages`. Wird das Template also mit `PROCESS`
eingebunden, so findet keine Lokalisierung statt, und die Werte aus
`flash.html` gelten dann plötzlich auch für das Template, das
`flash.html` eingebunden hat.

Unterschiede anzeigen:

templates/webpages/am/edit_units.html
2 2
[% USE HTML %]
3 3
<h1>[% title %]</h1>
4 4

  
5
[% PROCESS "common/flash.html" %]
5
[% INCLUDE "common/flash.html" %]
6 6

  
7 7
[% PROCESS "am/_units_header_info.html" %]
8 8

  
templates/webpages/client_config/form.html
77 77
 </script>
78 78
<h1>[% title | html %]</h1>
79 79

  
80
[% PROCESS 'common/flash.html' %]
80
[% INCLUDE 'common/flash.html' %]
81 81

  
82 82
<form action='controller.pl' method='POST' id='form'>
83 83
 <div class="tabwidget">
templates/webpages/csv_import/_deferred_report.html
1
[% PROCESS 'common/flash.html' %]
1
[% INCLUDE 'common/flash.html' %]
2 2
<div id='csv_import_report'></div>
3 3

  
4 4
<script type='text/javascript'>
......
26 26

  
27 27

  
28 28
</script>
29

  
templates/webpages/csv_import/_deferred_results.html
4 4

  
5 5
<h2>[% 'Import Status' | $T8 %]</h2>
6 6

  
7
[% PROCESS 'common/flash.html' %]
7
[% INCLUDE 'common/flash.html' %]
8 8
[% UNLESS SELF.background_job.data_as_hash.errors %]
9 9
<div id='progress_description'></div>
10 10
<div id='progressbar'></div>
templates/webpages/cti/calling.html
1 1
<body>
2
[% PROCESS 'common/flash.html' %]
2
[% INCLUDE 'common/flash.html' %]
3 3
</body>
4 4
</html>
templates/webpages/drafts/form.html
3 3
[%- USE LxERP %]
4 4
[%- USE HTML %]
5 5

  
6
[% PROCESS 'common/flash.html' %]
6
[% INCLUDE 'common/flash.html' %]
7 7

  
8 8
[%- IF FORM.id %]
9 9
<h3>[% 'Update this draft.' | $T8 %]</h3>
templates/webpages/dunning/search.html
3 3
[%- USE L %][%- USE P -%]
4 4
<h1>[% title %]</h1>
5 5

  
6
[% PROCESS 'common/flash.html' %]
6
[% INCLUDE 'common/flash.html' %]
7 7

  
8 8
 <form method="post" name="search" action="dn.pl" id="form">
9 9

  
templates/webpages/employee/edit.html
1 1
[%- USE LxERP -%][%- USE L -%][%- USE T8 -%]<h1>[% title | html %]</h1>
2 2

  
3
[% PROCESS "common/flash.html" %]
3
[% INCLUDE "common/flash.html" %]
4 4

  
5 5
<form action="controller.pl" method="POST" id="form">
6 6

  
templates/webpages/employee/list.html
1 1
<h1>[% title | html %]</h1>
2 2

  
3
[% PROCESS 'common/flash.html' %]
3
[% INCLUDE 'common/flash.html' %]
4 4

  
5 5
[% PROCESS 'employee/_list.html' %]
templates/webpages/gl/yearend_filter.html
5 5

  
6 6
<h1>[% title | html %]</h1>
7 7

  
8
[%- PROCESS 'common/flash.html' %]
8
[%- INCLUDE 'common/flash.html' %]
9 9

  
10 10
<form id='filter_form'>
11 11

  
templates/webpages/gobd/filter.html
5 5

  
6 6
<h1>[% title | html %]</h1>
7 7

  
8
[%- PROCESS 'common/flash.html' %]
8
[%- INCLUDE 'common/flash.html' %]
9 9

  
10 10
<p>[% 'This export will include all records in the given time range and all supplicant information from checked entities. You will receive a single zip file. Please extract this file onto the data medium requested by your auditor.' | $T8 %]</p>
11 11

  
templates/webpages/ic/search.html
4 4
[%- USE L %]
5 5
[%- USE P %]
6 6
[% SET style="width: 250px" %]
7
[%- PROCESS 'common/flash.html' %]
7
[%- INCLUDE 'common/flash.html' %]
8 8
<h1>[% title %]</h1>
9 9

  
10 10
 <form method="post" action="ic.pl" id="form">
templates/webpages/ic/search_update_prices.html
4 4
[%- USE L %]
5 5
<h1>[% 'Update prices' | $T8 %]</h1>
6 6

  
7
[% PROCESS 'common/flash.html' %]
7
[% INCLUDE 'common/flash.html' %]
8 8

  
9 9
<form method="post" action="controller.pl" id="form">
10 10
 <table>

Auch abrufbar als: Unified diff