/** * ----------------------------------------------------------------------------- * @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' a popup will be shown.
{% filter trim|escape|nl2br %}{% verbatim %} {{ status.message('p1', 'bath.alert.info', '', '', 'Message 1', '... with some plain text ...') }} {{ status.message('p2', 'bath.alert.warning', 'bath.alert.text', 'bath.time', 'Message 2', '... a warning from the backend ...') }} {{ status.message('p3', 'bath.alert.error', '', '', 'Message 3', '... can only be closed with the ok button ...', 'error') }} {% endverbatim %}{% endfilter %}
{{ basic.flip('f1', 'bath.alert.info') }} Message 1
{{ basic.flip('f2', 'bath.alert.warning') }} Message 2
{{ basic.flip('f3', 'bath.alert.error') }} Message 3
{{ status.message('p1', 'bath.alert.info', '', '', 'Message 1', '... with some plain text ...') }} {{ status.message('p2', 'bath.alert.warning', 'bath.alert.text', 'bath.time', 'Message 2', '... a warning with timestamp from the backend ...') }} {{ status.message('p3', 'bath.alert.error', '', '', 'Message 3', '... an error can only be closed with the ok button ...', 'error') }}
{% endblock %}