From c01d62c4a634f27fc4560d88cf98b84af9a85d95 Mon Sep 17 00:00:00 2001 From: "Martin Helmling mh@waldpark.octosoft.eu" Date: Wed, 17 Feb 2016 14:55:54 +0100 Subject: [PATCH] Flash-Template Macro immer per INCLUDE dazunehmen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bei PROCESS bleiben Macro variable "typ", "title" und "message" für den Rest des Templates gesetzt, bzw überschreiben gesetzte Template Variable, aufgefallen z.B in ic/form_header.html : Dort gibt es die HIDDEN Variable "title", die dann vom Macro beim letzen Durchlauf auf Ok bzw (Übersetzung von Ok) gesetzt wird Es gibt noch ein paar mehr template files (7), in denen PROCESS verwendet wird, ob es dort Auswirkungen hat ist noch zu prüfen --- templates/webpages/ic/form_header.html | 2 +- templates/webpages/ic/generate_report_top.html | 2 +- templates/webpages/inventory/warehouse_selection_stock.html | 2 +- templates/webpages/is/form_header.html | 2 +- templates/webpages/letter/edit.html | 2 +- templates/webpages/price_rule/report_top.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/webpages/ic/form_header.html b/templates/webpages/ic/form_header.html index d9d635b29..482edc596 100644 --- a/templates/webpages/ic/form_header.html +++ b/templates/webpages/ic/form_header.html @@ -4,7 +4,7 @@ [% PROCESS 'common/select_warehouse_bin.html' %]

[% title %] [% HTML.escape(partnumber) %] [% HTML.escape(description) %]

-[% PROCESS 'common/flash.html' %] +[% INCLUDE 'common/flash.html' %]
diff --git a/templates/webpages/ic/generate_report_top.html b/templates/webpages/ic/generate_report_top.html index 3e757a59f..291f6ce38 100644 --- a/templates/webpages/ic/generate_report_top.html +++ b/templates/webpages/ic/generate_report_top.html @@ -1,6 +1,6 @@ [%- USE HTML %] [%- USE T8 %] [%- USE L %] -[%- PROCESS 'common/flash.html' %] +[%- INCLUDE 'common/flash.html' %] [% 'Options' | $T8 %]: [% options.join(', ') %] diff --git a/templates/webpages/inventory/warehouse_selection_stock.html b/templates/webpages/inventory/warehouse_selection_stock.html index e3119913c..d53dc0569 100644 --- a/templates/webpages/inventory/warehouse_selection_stock.html +++ b/templates/webpages/inventory/warehouse_selection_stock.html @@ -5,7 +5,7 @@

[% title | html %]

-[%- PROCESS 'common/flash.html' %] +[%- INCLUDE 'common/flash.html' %] diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html index 57058027a..f9a8879c6 100644 --- a/templates/webpages/is/form_header.html +++ b/templates/webpages/is/form_header.html @@ -25,7 +25,7 @@

[% saved_message %]

-[%- PROCESS 'common/flash.html' %] +[%- INCLUDE 'common/flash.html' %] [%- INCLUDE 'generic/set_longdescription.html' %]
diff --git a/templates/webpages/letter/edit.html b/templates/webpages/letter/edit.html index 31f6f1f3e..3de5ea38f 100644 --- a/templates/webpages/letter/edit.html +++ b/templates/webpages/letter/edit.html @@ -10,7 +10,7 @@ - [%- PROCESS 'common/flash.html' %] + [%- INCLUDE 'common/flash.html' %]
    diff --git a/templates/webpages/price_rule/report_top.html b/templates/webpages/price_rule/report_top.html index a534a8733..a00d95870 100644 --- a/templates/webpages/price_rule/report_top.html +++ b/templates/webpages/price_rule/report_top.html @@ -1,4 +1,4 @@ [%- USE L %] -[%- PROCESS 'common/flash.html' %] +[%- INCLUDE 'common/flash.html' %] [%- PROCESS 'price_rule/_filter.html' filter=SELF.models.filtered.laundered UNLESS FORM.inline %]
    -- 2.20.1