{% extends "base.html" %} {% load i18n %} {% load static %} {% load permissions %} {% block title %} {% trans 'Enhydris - Station' %} - {%if station %}{{ station.name }} {% endif %} {% endblock %} {% block extrajs %} {% endblock %} {% block content %}
{% if notifications %}
× {% for message in notifications %} {{ message }} {% endfor %}
{% endif %} {% if station %}
{% if station.point %} {% endif %}
{% trans "Station Details" %}
{% if request.user|can_edit:station %} {% trans "Edit" %} {% endif %} {% if request.user|can_delete:station %} {% trans "Delete" %} {% endif %} {% if request.user|can_edit:station %}
{% endif %}
{% if enabled_user_content %} {% if station.creator %} {% else %} {% endif %} {% endif %}
{% trans 'ID' %} {{ station.id }}
{% trans 'Name' %} {{ station.name }}
{% trans 'Remarks' %} {{ station.remarks }}
{% trans 'Water Basin' %} {{ station.water_basin.name }}
{% trans 'Water Division' %} {{ station.water_division.name }}
{% trans 'Political Division' %} {{ station.political_division.name }}
{% trans 'Co-ordinates' %} {{ station.point.y | floatformat:5 }}, {{ station.point.x | floatformat:5 }} {% if station.approximate %} ({% trans 'approximate' %}) {% endif %} {% if station.srid != 4326 %}
({{ wgs84_name }}; {% trans "converted from" %} srid={{ station.srid }}, x={{ station.original_abscissa }}, y={{ station.original_ordinate }})
{% endif %}
{% trans 'Altitude' %} {{ station.altitude|floatformat:2 }} {% if station.asrid %}[srid={{ station.asrid }}]{% endif %}
{% trans 'Owner' %} {{ station.owner }}
{% trans 'Type' %} {% for stype in station.stype.all %}{{ stype.descr }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% trans 'Is Automatic' %} {{ station.is_automatic }}
{% trans 'Start Date' %} {{ station.start_date|date:"Y/m/d" }}
{% trans 'End Date' %} {{ station.end_date|date:"Y/m/d" }}
{% trans 'Creator' %}{{ station.creator }}{% trans "Unknown" %}
{% trans 'Overseers' %} {% if station.overseers.count %}
{% for overseer in station.overseer_set.all %} {% endfor %}
{{ overseer.person.first_name }} {{ overseer.person.last_name }} {% if request.user|can_edit:station %}  |  delete {% endif %}
{% endif %}
{% if display_copyright %} {% endif %}

{% trans 'Station (Gentity) Alternative Codes' %}

{% if station.gentityaltcode_set.count %} {% if request.user|can_edit:station %} {% endif %} {% for code in station.gentityaltcode_set.all %} {% if request.user|can_edit:station %} {% endif %} {% endfor %}
{% trans 'ID' %} {% trans 'Type' %} {% trans 'Value' %}{% trans "Management" %}
{{ code.id }} {{ code.type }} {{ code.value }}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% trans 'Station (Gentity) Files' %}

{% if station.gentityfile_set.count %} {% if request.user|can_edit:station %} {% endif %} {% for file in station.gentityfile_set.all %} {% if request.user|can_edit:station %} {% endif %} {% endfor %}
{% trans 'ID' %} {% trans 'Date' %} {% trans 'File Type' %} {% trans 'Content' %} {% trans 'Description' %} {% trans 'Remarks' %} {% trans 'Request File' %}{% trans "Management" %}
{{ file.id }} {{ file.date|date:"Y/m/d" }} {{ file.file_type.descr }} {{ file.content }} {{ file.descr }} {{ file.remarks }} {% if user.is_authenticated or anonymous_can_download_data %} {% else %} N/A {% endif %}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% trans 'Station (Gentity) Generic data' %}

{% if station.gentitygenericdata_set.count %} {% if request.user|can_edit:station %} {% endif %} {% for genericdata in station.gentitygenericdata_set.all %} {% if request.user|can_edit:station %} {% endif %} {% endfor %}
{% trans 'ID' %} {% trans 'Data Type' %} {% trans 'Description' %} {% trans 'Remarks' %} {% trans 'Request File' %}{% trans "Management" %}
{{ genericdata.id }} {{ genericdata.data_type }} {{ genericdata.descr }} {{ genericdata.remarks }} {% if request.user.is_authenticated or anonymous_can_download_data %} {% else %} N/A {% endif %}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% trans 'Station (Gentity) Events' %}

{% if station.gentityevent_set.count %} {% if request.user|can_edit:station %} {% endif %} {% for event in station.gentityevent_set.all %} {% if request.user|can_edit:station %} {% endif %} {% endfor %}
{% trans 'ID' %} {% trans 'Date' %} {% trans 'Type' %} {% trans 'User' %} {% trans 'Report' %}{% trans "Management" %}
{{ event.id }} {{ event.date|date:"Y/m/d" }} {{ event.type }} {{ event.user }} {{ event.report }}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% trans 'Instruments' %}

{% if station.instrument_set.count %} {% if request.user|can_edit:station %} {% endif %} {% for instrument in station.instrument_set.all %} {% with instrument.id as instrument_id %} {% url "instrument_detail" instrument_id as instrument_url %} {% if request.user|can_edit:station %} {% endif %} {% endwith %} {% endfor %}
{% trans "ID" %} {% trans "Name" %} {% trans "Type" %} {% trans "Manufacturer" %} {% trans "Model" %} {% trans "Start Date" %} {% trans "End Date" %}{% trans "Management" %}
{{ instrument_id }} {{ instrument.name }} {{ instrument.type }} {{ instrument.manufacturer }} {{ instrument.model }} {{ instrument.start_date|date:"Y/m/d" }} {{ instrument.end_date|date:"Y/m/d" }}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% trans 'Timeseries' %}

{% if station.timeseries.count %} {% if request.user|can_edit:station %} {% endif %} {% for t in station.timeseries.all %} {% if not t.hidden %} {% with t.id as t_id %} {% url "timeseries_detail" t_id as timeseries_url %} {% if request.user|can_edit:station %} {% endif %} {% endwith %} {% endif %} {% endfor %}
{% trans "ID" %} {% trans "Name" %} {% trans "Variable" %} {% trans "Time step" %} {% trans "Unit" %} {% trans "Remarks" %} {% trans "Instrument" %} {% trans "Start Date" %} {% trans "End Date" %}{% trans "Management" %}
{{ t_id }} {{ t.name }} {{ t.variable }} {% if not t.time_step %} {% trans 'Variable step' %} {% else %} {{ t.time_step }} {% endif %} {{ t.unit_of_measurement }} {{ t.remarks }} {{ t.instrument }} {{ t.start_date|date:"Y/m/d H:i" }} {{ t.end_date|date:"Y/m/d H:i" }}  
{% else %}

{% trans "No data available" %}

{% endif %}

{% endif %} {% endblock %}