mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
N°8955 add UI block for uninstallation
This commit is contained in:
8
templates/base/components/badge/layout.html.twig
Normal file
8
templates/base/components/badge/layout.html.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
<span id="{{ oUIBlock.GetId() }}"
|
||||
class="{{ oUIBlock.GetBlocksInheritanceCSSClassesAsString() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }} ibo-is-{{ oUIBlock.GetColor() }}"
|
||||
{% if oUIBlock.GetTooltip() is not empty %}
|
||||
data-tooltip-content="{{ oUIBlock.GetTooltip() }}"
|
||||
{% endif %}
|
||||
>
|
||||
{{ oUIBlock.GetLabel() }}
|
||||
</span>
|
||||
@@ -1,5 +1,8 @@
|
||||
|
||||
$('#{{ oUIBlock.GetId() }}').parent().on('click', function() {
|
||||
let oInput = $(this).find('.ibo-toggler');
|
||||
oInput.prop('checked', !oInput.prop('checked'));
|
||||
oInput.trigger('change');
|
||||
let oInput = $(this).find('.ibo-toggler');
|
||||
if (!oInput.prop('disabled')) {
|
||||
oInput.prop('checked', !oInput.prop('checked'));
|
||||
oInput.trigger('change');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user