mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-02 07:34:13 +01:00
* Fix TWIG exceptions due non existent JS templates for ajax tab * Fix DisplayBlock::GetRenderContent and HistoryBlock::GetRenderContent signature mismatch warning * Add return type hinting on ButtonFactory methods * Rename ButtonFactory::MakeAlternativeNeutralActionButton() to ButtonFactory::MakeLinkNeutral() * Add ButtonFactory::MakeLinkNeutral() to visual test page * Fix button spacing/padding when only icon or label
14 lines
661 B
Twig
14 lines
661 B
Twig
<button id="{{ oUIBlock.GetId() }}"
|
|
class="ibo-button ibo-is-{{ oUIBlock.GetActionType() }} ibo-is-{{ oUIBlock.GetColor() }} {{ oUIBlock.GetAdditionalCSSClass() }}"
|
|
type="{{ oUIBlock.GetType() }}"
|
|
name="{{ oUIBlock.GetName() }}"
|
|
value="{{ oUIBlock.GetValue() }}"
|
|
{% if oUIBlock.IsDisabled() is same as(true) %} disabled {% 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> |