{% import "macros/components/structural_element_selector.html" as mac_struct_elmt_selector %} {% extends "pages/base.html" %} {% set title = "Timeseries" %} {% block main_toolbar %} {{ super() -}} {% filter indent(width=20, first=True) %} {% if signed_user.is_admin %}
Add
Import CSV
Set semantics Set locations
{% endif %} {% endfilter %} {% endblock main_toolbar %} {% block main_content %} {{ super() -}}

{% filter indent(width=12, first=False) %} {{ mac_struct_elmt_selector.render_site_selector(html_element_id="siteSelector", title=none) -}} {% endfilter %}
{% filter indent(width=12, first=False) %} {{ mac_struct_elmt_selector.render_zone_selector(html_element_id="zoneSelector", title=none) -}} {% endfilter %}
{% if ts_properties | length > 0 %}
{% for x in ts_properties %} {% set prop_id = "prop_" + x.id | string %} {% if prop_id in filters %}
{{ x.name }}{% if x.unit_symbol %} [{{ x.unit_symbol }}]{% endif %} {% if x.value_type == "string" %} {% elif x.value_type == "integer" %} {% elif x.value_type == "float" %} {% elif x.value_type == "boolean" %}
{% endif %}
{% if x.decription or x.value_type %}
{{ x.description }}{% if x.value_type %}{% if x.description %}, {% endif %}{{ x.value_type }}{% endif %}
{% endif %}
{% endif %} {% endfor %}
{% endif %}
{% if timeseries|length > 0 %}
{% for x in timeseries %}

{% if signed_user.is_admin %} ID #{{ x.id }} {% endif %}
{{ x.name }} {% if x.unit_symbol is not none %} [{{ x.unit_symbol }}] {% endif %}
{{ x.description | crlf2html }}
{% if signed_user.is_admin %} Edit {% endif %}
Timeseries data state
{% endfor %}
{% else %}

No data

{% endif %}
{% endblock main_content %} {% block body_scripts %} {{ super() -}} {% filter indent(width=8, first=True) %} {% endfilter %} {% endblock body_scripts %}