mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 21:34:12 +01:00
19 lines
1011 B
Twig
19 lines
1011 B
Twig
{# @copyright Copyright (C) 2010-2021 Combodo SARL #}
|
|
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
|
{% block iboInput %}
|
|
{% if oUIBlock.HasLabel() and oUIBlock.IsLabelBefore() %}
|
|
{% include "base/components/input/inputlabel.html.twig" %}
|
|
{% endif %}
|
|
<select id="{{ oUIBlock.GetId() }}" name="{{ oUIBlock.GetName() }}"
|
|
{% if oUIBlock.GetSubmitOnChange() %} onChange="this.form.submit();" {% endif %}
|
|
{% if oUIBlock.IsMultiple() %} multiple {% endif %}
|
|
class="{% if oUIBlock.IsHidden() %}ibo-is-hidden{% endif %}{% if oUIBlock.GetAdditionalCSSClassesAsString() %} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}{% endif %}"
|
|
>
|
|
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
|
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
|
{% endfor %}
|
|
</select>
|
|
{% if oUIBlock.HasLabel() and not oUIBlock.IsLabelBefore() %}
|
|
{% include "base/components/input/inputlabel.html.twig" %}
|
|
{% endif %}
|
|
{% endblock %} |