{% extends "base.html" %} {% load i18n static ui charts %} {% block title %}{% translate "Check the data and describe the station" %}{% endblock %} {% block head %}{% chart_scripts %}{% endblock %} {% block steps %}{% include "components/steps.html" %}{% endblock %} {% block content %}

{% translate "Load data: check it and describe the station" %}

{% if analysis.source == "sample" %}{% blocktranslate with name=analysis.file_name %}Sample data: {{ name }}. The station details are filled in; continue when you are ready.{% endblocktranslate %}{% else %}{% blocktranslate with name=analysis.file_name %}Loaded from {{ name }}. Check that this is the data you expect, then give the station's details.{% endblocktranslate %}{% endif %}

{% if form.is_bound and not form.errors and not form.warnings %}{# details already valid, e.g. the sample or a re-visit (#114) #}
{% translate "Details look right: continue to quality checks" as top_label %} {% include "components/button.html" with label=top_label type="submit" form_id="station-details" icon_end="arrow-right" size="lg" %} {% translate "Check the station details" %}
{% endif %} {% if inspection and not inspection.ok %}{% include "stations/_problems.html" with file_name=replace_form.files.station_file.name %}{% endif %} {% if analysis.warnings %}
{% icon "warning" %}

{% blocktranslate count counter=analysis.warnings|length trimmed %}Something to check in the file{% plural %}{{ counter }} things to check in the file{% endblocktranslate %}

    {% for warning in analysis.warnings %}
  • {{ warning }}
  • {% endfor %}

{% translate "These do not stop you going on; the quality checks in the next step look at the data in detail." %}

{% endif %} {% include "stations/_summary.html" %}

{% translate "Station details" %}

{% csrf_token %} {% include "components/form_errors.html" %} {% include "stations/_unit.html" with group="station_name" %}
{% include "stations/_unit.html" with group="latitude" %} {% include "stations/_unit.html" with group="longitude" %}
{% include "stations/_unit.html" with group="base_period" %} {% turnstile %}
{% translate "Continue to quality checks" as continue_label %} {% include "components/button.html" with label=continue_label type="submit" icon_end="arrow-right" size="lg" %}
{% include "stations/_retention.html" %}
{% csrf_token %} {% translate "Delete this data now" as delete_label %} {% include "components/button.html" with label=delete_label type="submit" variant="ghost" size="sm" icon="close" %} {% translate "Start again with another station" %}
{% endblock %}