 value for the 'on' state (optional, default 1)
* @param {text=0} value for the 'off' state (optional, default 0)
* @param {color=} alternative color (e.g. '#777') for active switch (optional)
*
* @see misc/fundamentals#Items
*/
{% macro flip(id, item, txt_on, txt_off, val_on, val_off, background) %}

	<select{% if not id is empty %} id="{{ uid(page, id) }}"{% endif %} data-widget="basic.flip" data-item="{{ item }}"
		data-role="flipswitch" data-background="{{ background }}">
		<option value="{{ val_off|def