{% extends "base.html" %} {% load i18n static ui %} {% comment %} Add stations (#233; boards AddStations.dc.html and, for the empty page that starts a workspace, Start.dc.html's drop zone). One form holds the drop zone, the review table and, through form="add-form", the settings in the panel beside them, so whatever is sent keeps what was typed. Without JavaScript the files are sent with "Add the files"; with it a chosen or dropped file is sent at once, the table is checked as it is typed and a column pasted from a spreadsheet fills the cells under the one pasted into (js/add-stations.js). Context from stations/views_add.page_context. {% endcomment %} {% block title %}{% if run or space %}{% translate "Add stations" %}{% else %}{% translate "Start a workspace" %}{% endif %}{% endblock %} {% block head %}{% endblock %} {% block content %} {% url 'stations:sample_file' as template_url %}{% url 'batch:sample_metadata' as metadata_url %}{% url 'help:guide' 'batch' as batch_guide %}{% url 'help:guide' 'station-file' as file_guide %} {% if run or space %}
{% if space %}{% endif %}

{% translate "Add stations" %}

{% csrf_token %} {# Enter in a cell or a settings field checks the table, with the settings applied (the first submit button is the form's default; never adds, #318). #}

{% translate "Drop station files, a metadata file or a zip" %}

{% translate "year month day PR TX TN · missing as −99.9 · spaces or tabs" %}

{% if upload_error %}{% endif %}
{% if review.upload_problems or review.metadata.problems or review.metadata.warnings %}
{% icon "warning" %}

{% if review.metadata.problems %}{% blocktranslate with name=review.metadata.name %}The metadata file {{ name }} could not be used{% endblocktranslate %}{% else %}{% translate "About the files" %}{% endif %}

    {% for problem in review.metadata.problems %}
  • {{ problem.message }}{% if problem.text %} {{ problem.text }}{% endif %}
  • {% endfor %} {% for warning in review.metadata.warnings %}
  • {{ warning }}
  • {% endfor %} {% for problem in review.upload_problems %}
  • {{ problem }}
  • {% endfor %}
{% endif %} {% if rows %} {% include "stations/_add_table.html" %} {% if review.noted_rows %}
{% icon "warning" %}{% translate "Every problem and warning, with its line in the file" %}{% icon "chevron-down" %}
    {% for row in review.noted_rows %}
  • {{ row.file }}
      {% for problem in row.problems %}
    • {{ problem.message }}{% if problem.text %} {{ problem.text }}{% endif %}
    • {% endfor %} {% if row.hidden_problems %}
    • {% blocktranslate count counter=row.hidden_problems trimmed %}And {{ counter }} more problem like these.{% plural %}And {{ counter }} more problems like these.{% endblocktranslate %}
    • {% endif %} {% for warning in row.warnings %}
    • {{ warning }}
    • {% endfor %}
  • {% endfor %}
{% endif %}

{% if add_error %}{{ add_error }} {% endif %}{{ summary }}

{% elif space %}

{% blocktranslate with name=space.display_name %}The stations you add join {{ name }} and use its settings.{% endblocktranslate %}

{% endif %} {% turnstile %}
{% include "stations/_retention.html" with quiet=True analysis=None %}
{% else %}

{% translate "Start a workspace" %}

{% translate "A workspace holds your stations and their settings. Start with one station or a whole network; you can add more later." %}

{% csrf_token %} {% icon "upload" "" "add-start__icon" %}

{% translate "Drop station files here" %}

{% translate "One file per station. Add a metadata file for coordinates and per-station settings, or drop a zip of everything." %}

{% if upload_error %}{% endif %}
{% translate "Or open a saved workspace file" %} {% turnstile %}

{% translate "File format" %}

{{ file_sample }}

{% translate "year month day PR TX TN, separated by spaces or tabs; −99.9 for missing." %}

{% translate "Settings" %}

{% blocktranslate with start=settings_rows.0.value trimmed %}Base period {{ start }} and the ET-SCI default settings. You can change them after the files are read, before anything is calculated.{% endblocktranslate %}

{% if recent %}{# A returning visitor (#242, the Start board): the workspaces changed last. #}

{% translate "Or continue a workspace" %}

{% translate "All workspaces" %}
{% if workspace_expiry %}{% endif %} {% for e in recent %} {% if workspace_expiry %}{% endif %} {% endfor %}
{% translate "Name" %}{% translate "Stations" %}{% translate "Updated" %}{% translate "Deleted on" %}
{{ e.name }} {{ e.stations }} {% if e.deleted_soon %}{% else %}{% endif %}
{% endif %} {% include "stations/_retention.html" with quiet=True analysis=None %}
{% endif %} {% endblock %}