/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @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.
{{ status.notify('n1', 'bath_alert_info', 'bath_alert_text', 'INFO', 'Information', 'The heating ist to hot!', 'info') }}
{{ basic.flip('f1', 'bath_alert_info') }} Info
{{ status.notify('n1', 'bath_alert_info', 'bath_alert_text', 'INFO', 'Information', 'The heating ist to hot!', 'info') }} {{ basic.flip('f2', 'bath_alert_warning') }} Warning
{{ status.notify('n2', 'bath_alert_warning', 'bath_alert_text', 'WARN', 'Warning', 'The heating ist to hot! Please switch it off!', 'warning') }} {{ basic.flip('f3', 'bath_alert_error') }} Error
{{ status.notify('n3', 'bath_alert_error', 'bath_alert_text', 'ERROR', 'Error', 'The heating ist to hot! It will burn now!', 'error') }}
{% endblock %}