mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
WIP Tom Select options
This commit is contained in:
@@ -23,7 +23,13 @@
|
||||
|
||||
{%- block choice_widget_collapsed -%}
|
||||
{% 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"{% endif %}>
|
||||
<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 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>
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user