mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-10 19:44:11 +01:00
- TWIG: Change calls to object methods from simple notation (eg. oObject.Id) to complete notation (eg. oObject.GetId()) to avoid confusion with use of arrays and variables (eg. aObject.sId) - UIBlock: $sId should not be first parameter as most of the time it can be ignored and generated by the system - NewsroomMenu: Rename method for something more less ambiguous - Html: Embed content in <div /> so we can easily find all such HTML fragments in the UI
6 lines
403 B
Twig
6 lines
403 B
Twig
<button id="{{ oUIBlock.GetId() }}" class="ibo-button ibo-is-{{ oUIBlock.GetActionType()}} ibo-is-{{ oUIBlock.GetColor() }}" type="{{ oUIBlock.GetType() }}" name="{{ oUIBlock.GetName() }}" value="{{ oUIBlock.GetValue() }}">
|
|
{% if oUIBlock.GetIconClass() is not empty %}
|
|
<span class="ibo-button-icon {{ oUIBlock.GetIconClass() }}"></span>
|
|
{% endif %}
|
|
{{ oUIBlock.GetLabel() }}
|
|
</button> |