/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_status.html" %} {% block example %}
Examples
If you flip the switch to 'on' the alert is been triggerd and the notification will be shown. Watch how clicking the "OK" button in the message box of the warning message resets the trigger item, if item_ack is identical to item_trigger.
{{ status.notify('n1', 'bath.alert.info', 'bath.alert.text', 'INFO', 'Information', 'The heating is too hot!', 'info') }}
{{ status.notify('n2', 'bath.alert.warning', 'bath.alert.text', 'WARN', 'Warning', 'The heating is too hot! Please switch it off!', 'warning', 'bath.alert.warning') }}
{{ basic.flip('f1', 'bath.alert.info') }} Info
{{ status.notify('n1', 'bath.alert.info', 'bath.alert.text', 'INFO', 'Information', 'The heating is too hot!', 'info') }} {{ basic.flip('f2', 'bath.alert.warning') }} Warning
{{ status.notify('n2', 'bath.alert.warning', 'bath.alert.text', 'WARN', 'Warning', 'The heating is too hot! Please switch it off!', 'warning', 'bath.alert.warning') }} {{ basic.flip('f3', 'bath.alert.error') }} Error
{{ status.notify('n3', 'bath.alert.error', 'bath.alert.text', 'ERROR', 'Error', 'The heating is too hot! It will burn now!', 'error','bath.alert.error') }}
{% endblock %}