{% extends "slm/station/base.html" %} {% load i18n slm %} {% block head %} {{ block.super }} {% endblock head %} {% block action_content %}
{% block file_list %} {% include 'slm/widgets/filelist.html' %} {% endblock %}

{% if file %} {{ file.name }}{% else %}{% trans "Upload" %}{% endif %}

{% if file %}
{% if file.user %}

{% trans "Uploaded by:" %} {{ file.user.name }}

{% endif %}

{% trans "Date Uploaded:" %} {{ file.timestamp.date }}

{% if file.file_type == SLMFileType.SITE_IMAGE %} {% endif %} {% if can_publish %} {% endif %}
{% if file.file_type == SLMFileType.SITE_LOG %}
{% if finding_errors is not None or finding_warnings is not None %}

{% if finding_errors %} {% trans 'This log was rejected because' %} {{ finding_errors }} {% trans 'errors were found.' %} {% trans 'Scroll down to see the errors. Please correct them and resubmit.' %} {% elif finding_warnings %} {% trans 'This log was accepted with' %} {{ finding_warnings }} {% trans 'warnings. Please correct the warnings if possible. To publish this log please' %} {% trans 'submit it for review.' %} {% elif finding_errors == 0 %} {% trans 'This log was accepted. To publish these changes please' %} {% trans 'submit it for review.' %} {% endif %}


{% endif %} {% if file.log_format == SiteLogFormat.LEGACY %} {% include 'slm/station/uploads/legacy.html' %} {% elif file.log_format == SiteLogFormat.ASCII_9CHAR %} {% include 'slm/station/uploads/legacy.html' %} {% elif file.log_format == SiteLogFormat.GEODESY_ML %} {% include 'slm/station/uploads/geodesyml.html' %} {% elif file.log_format == SiteLogFormat.JSON %} {% include 'slm/station/uploads/json.html' %} {% endif %} {% else %} {% if file.file_type == SLMFileType.SITE_IMAGE %} {% include 'slm/station/uploads/image.html' %} {% elif file.file_type == SLMFileType.ATTACHMENT %} {% include 'slm/station/uploads/attachment.html' %} {% endif %} {% if form %} {% endif %} {% endif %} {% else %}

{% translate "Click to upload or drag and drop files to upload an updated site log, site images or miscellaneous files." %}

{% endif %}
{% endblock %}