From: Sven Schöling Date: Fri, 22 Oct 2010 12:14:45 +0000 (+0200) Subject: multibox part 2. X-Git-Tag: release-2.6.2beta1~92^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b364553bd1c69d15999e3269649fa9a8b55eb8c3;p=kivitendo-erp.git multibox part 2. Jetzt komplett PROCESS fähig, die einzelnen Variablen werden zwischengespeichert unter einem Pseudonamespace, und garantiert überschrieben beim Folgeaufruf. --- diff --git a/templates/webpages/generic/multibox.html b/templates/webpages/generic/multibox.html index 72d895747..3c24f0597 100644 --- a/templates/webpages/generic/multibox.html +++ b/templates/webpages/generic/multibox.html @@ -6,7 +6,7 @@ decides wether it should be a text field or a drop down box, generates the HTML code, and fixes everything just right. - call: INCLUDE generic/multibox.html var = var, var2 = .... + call: PROCESS generic/multibox.html var = var, var2 = .... options and variables: name : name of the select/textfield @@ -26,43 +26,44 @@ select_name : if a select is displayed, use a different name. ex.: department for textinput, but department_id for selects readonly : softly prevents modification -%] -[%- DEFAULT - limit = limit != '' ? limit : vclimit != '' ? vclimit : 200 - show_text = allow_textbox and DATA.size and limit < DATA.size ? 1 : 0 - id = id != '' ? id : name - default = default != '' ? default : $name --%] [%- - name = (select_name != '' and ! show_text) ? select_name : name + Multibox__limit = limit != '' ? limit : vclimit != '' ? vclimit : 200 + Multibox__show_text = allow_textbox and DATA.size and Multibox__limit < DATA.size ? 1 : 0 + Multibox__id = id != '' ? id : name + Multibox__default = default != '' ? default : $name + Multibox__name = (select_name != '' and ! Multibox__show_text) ? select_name : name -%] -[%- IF show_text %] +[%- IF Multibox__show_text %] [%- IF select -%] [%- END -%] [%- ELSE %] [%- END %]