mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
OK for Tom Select
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
{% set attr = attr|merge({class: (attr.class|default('') ~ ' ibo-input')|trim}) %}
|
||||
<select is="tom-select-element" class="field_autocomplete ibo-input ibo-input-select ibo-input-select-autocomplete ui-autocomplete-input"
|
||||
{{ block('widget_attributes') }}
|
||||
{% if multiple %} multiple="multiple" data-tom-select-multiple="true" {% endif %}
|
||||
{% if max_items_selected is defined %} data-tom-select-max-items="{{ max_items_selected }}" {% endif %}
|
||||
{% if placeholder is defined %} data-tom-select-placeholder="{{ placeholder }}" {% endif %}
|
||||
{% if disable_input is defined%} data-tom-select-disable-control-input=true {% endif %}
|
||||
{% if multiple %} multiple="multiple" {% endif %}
|
||||
{% if max_items_selected is defined %} data-tom-select-max-items-selected="{{ max_items_selected }}" {% endif %}
|
||||
{% if disable_auto_complete %} data-tom-select-disable-auto-complete=true {% endif %}
|
||||
{% if placeholder is not none %} hidePlaceholder=false {% endif %}
|
||||
>
|
||||
{%- if placeholder is not none -%}
|
||||
<option value=""{% if placeholder_attr|default({}) %}{% with { attr: placeholder_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}{% if required and value is empty %} selected="selected"{% endif %}>{{ placeholder != '' ? (translation_domain is same as(false) ? placeholder : placeholder|trans({}, translation_domain)) }}</option>
|
||||
|
||||
Reference in New Issue
Block a user