{% macro stat(widget, js_hook, options={}) -%}
{{ widget.label }}:
{%- endmacro %} {% macro actionstatus(widget, js_hook, options={}) -%} {% if widget.style == 'table' %} {{ widget.label }} {{ widget.lexical }}   
{% for action in widget.actions %} {% if action.options %} {% endif %} {% endfor %}
{% if widget.help_text %}{% endif %} {% else %}
{{ widget.lexical }}
{% for action in widget.actions %} {% if action.options %} {% endif %} {% endfor %}
{% if widget.help_text %}{% endif %}
{% endif %} {% if widget.style == 'table' %} {# put the ending tr after script #} {% endif %} {%- endmacro %} {% macro gauge(widget, js_hook, options={}) -%}
{%- endmacro %} {% macro barstatus(widget, js_hook, options={}) -%}
/ {{ widget.num_unit_name }}
{%- endmacro %} {% macro squarestatus(widget, js_hook, options={}) -%} {% if widget.fields %} {% for sub_field_name, sub_field in widget.fields.iteritems() %} {% endfor %} {% else %} {% endif %}
{{ widget.label }}
{{ sub_field.verbose_name }}
{%- endmacro %} {% macro plaininfo(widget, js_hook, options={}) -%} {% if widget.style == 'table' %} {{ widget.label }} {{ widget.lexical }}   {% endif %} {%- endmacro %} {% macro plainstatus(widget, js_hook, options={}) -%} {{ widget.label }}   {%- endmacro %}