/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * Displays a flip-switch with a label * * @param unique id for this widget * @param a gad/item * @param text for the 'on' state (optional, default 'On') * @param text for the 'off' state (optional, default 'Off') * @param text for the label (optional) * @param icon_on (optional) * @param icon_off (optional) */ {% macro flip(id, gad, txt_on, txt_off, label, icon_on, icon_off) %} {% if icon_on %}
{% endif %} {% endif %} {% endmacro %}