mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-26 21:54:13 +01:00
20 lines
1.0 KiB
Twig
20 lines
1.0 KiB
Twig
<button id="{{ oUIBlock.GetId() }}"
|
|
class="ibo-button ibo-is-{{ oUIBlock.GetActionType() }} ibo-is-{{ oUIBlock.GetColor() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}{% if oUIBlock.IsHidden() %} ibo-is-hidden{% endif %}"
|
|
{% if oUIBlock.GetDataAttributes() %}
|
|
{% for sName, sValue in oUIBlock.GetDataAttributes() %}
|
|
data-{{ sName }}="{{ sValue }}"
|
|
{% endfor %}
|
|
{% endif %}
|
|
type="{{ oUIBlock.GetType() }}"
|
|
name="{{ oUIBlock.GetName() }}"
|
|
value="{{ oUIBlock.GetValue() }}"
|
|
{% if oUIBlock.IsDisabled() %} disabled {% endif %}
|
|
{% if oUIBlock.GetTooltip() is not empty %} data-tooltip-content="{{ oUIBlock.GetTooltip() }}" {% else %} title="{{ oUIBlock.GetLabel() }}" {% endif %}
|
|
>
|
|
{% if oUIBlock.GetIconClass() is not empty %}
|
|
<span class="ibo-button--icon {{ oUIBlock.GetIconClass() }}"></span>
|
|
{% endif %}
|
|
{% if oUIBlock.GetLabel() is not empty %}
|
|
<span class="ibo-button--label">{{ oUIBlock.GetLabel() }}</span>
|
|
{% endif %}
|
|
</button> |