{% with _active = (active is not defined or active or active is none) %} {% set attribute_text = model.ATTR_VALUE_CURRENT + '=' + _active | lower + ' ' + model.ATTR_VALUE_PREVIOUS + '=' + _active | lower + '' %} {% if _active %} {% set class_name = '' %} {% include 'components/common/buttons/_icon_trash.html' %} {% else %} {% set class_name = model.FLAG_ACTIVE %} {% include 'components/common/buttons/_icon_add.html' %} {% endif %} {% endwith %}