X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6f2893dcf199d5e5147cc2020c2ab6984f4274dc..ba52ee60:/templates/webpages/generic/multibox.html diff --git a/templates/webpages/generic/multibox.html b/templates/webpages/generic/multibox.html index 3c24f0597..28ff8370f 100644 --- a/templates/webpages/generic/multibox.html +++ b/templates/webpages/generic/multibox.html @@ -25,11 +25,12 @@ 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 + class : CSS class names (optional) -%] [%- 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__id = id != '' && id * 1 != id ? id : name Multibox__default = default != '' ? default : $name Multibox__name = (select_name != '' and ! Multibox__show_text) ? select_name : name -%] @@ -39,6 +40,7 @@ [%- IF Multibox__id %] id="[% Multibox__id | html %]"[% END -%] [%- IF Multibox__default %] value="[% Multibox__default | html %]"[% END -%] [%- IF style %] style="[% style | html %]"[% END -%] + [%- IF class %] class="[% class | html %]"[% END -%] [%- IF readonly %] readonly[% END -%] [%- -%]> [%- IF select -%] @@ -49,6 +51,7 @@ [%- IF Multibox__name %] name="[% Multibox__name | html %]"[% END -%] [%- IF Multibox__id %] id="[% Multibox__id | html %]"[% END -%] [%- IF style %] style="[% style | html %]"[% END -%] + [%- IF class %] class="[% class | html %]"[% END -%] [%- IF onChange %] onChange="[% onChange | html %]"[% END -%] [%- IF readonly %] disabled[% END -%] [%- -%]>