{% extends 'base.html' %}
{% import 'macros/components.html' as components %}
{% block extra_head_tags %}
{% if status_code == 200 %}
{% endif %}
{% endblock %}
{% block page_script %}
{% if json_ld %}
{% endif %}
{% endblock page_script %}
{% set body_id = 'monitoring-location' %}
{% if stations|length == 1 %}{% set page_title = stations[0].station_nm %}{% endif %}
{% block content %}
{% if status_code == 200 %}
{% if stations|length > 1 %}
Multiple sites found
Please pick a site:
Agency
Site number
Site name
{% for site in stations %}
{{ site.agency_cd }}
{{ site.site_no }}
{{ site.station_nm }}
{% endfor %}
{% else %}
{{ components.TimeseriesComponent(stations[0].site_no) }}
{% if stations[0].dec_lat_va and stations[0].dec_long_va %}
{{ components.FloodSliderComponent() }}
{{ components.MapComponent(stations[0].site_no, stations[0].dec_lat_va, stations[0].dec_long_va) }}
{% endif %}
{% if parm_grp_summary %}
Summary
USGS Parameter Group
Data Types
Start Date
End Date
{% for grp in parm_grp_summary %}
{% if grp.name %}{{ grp.name }}{% else %}n/a {% endif %}
{{ grp.data_types }}
{{ grp.start_date|date_to_string }}
{{ grp.end_date|date_to_string }}
{% endfor %}
Classic Water Data for the Nation Inventory
{% endif %}
Metadata Element
Location Metadata
Metadata Code
{% for key, value in location_with_values.items() %}
{{ STATION_FIELDS_D[key].name }}
{% if STATION_FIELDS_D[key].description %}
{{ components.QuestionTooltip(key, STATION_FIELDS_D[key].description, True) }}
{% endif %}
{% if value.url %}
{{ value.name }}
{% else %}
{{ value.name }}
{% endif %}
{% if value.desc %}
{{ components.QuestionTooltip(value.code, value.desc, False) }}
{% endif %}
{% if value.code != value.name %}{{ value.code }}{% else %}n/a {% endif %}
{% endfor %}
{% if questions_link %}
{% endif %}
{% endif %}
{% else %}
Error: HTTP {{ status_code }} -- {{ reason }}
{% endif %}
{% endblock content %}