X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fgeneric%2Fmultibox.html;h=bf39fe8a8b47570ebef98dc41b85580ecc0b2f94;hb=ead4bcd581bcaace363f9647b46c37c850e2fa5c;hp=72d895747e5566950e91323d90e00539c945f1dc;hpb=4dbd40c0260327ca136a5c0f49c67822e837f451;p=kivitendo-erp.git
diff --git a/templates/webpages/generic/multibox.html b/templates/webpages/generic/multibox.html
index 72d895747..bf39fe8a8 100644
--- a/templates/webpages/generic/multibox.html
+++ b/templates/webpages/generic/multibox.html
@@ -3,10 +3,10 @@
Multibox
This template makes an input box for you,
- decides wether it should be a text field or a drop down box,
+ decides whether 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
@@ -25,44 +25,48 @@
limit : defines the limit of entries, after which a textbox is generated. defaults to vclimit, or, failing to find that, 200.
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
+ class : CSS class names (optional)
-%]
[%-
- 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 * 1 != 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 %]