{% extends "base.html" %} {% load static %} {% load custom_tags_and_filters %} {% block extrahead %} {% endblock %} {% block title %}Bulk upload — {{ upload_type.title }}{% endblock %} {% block content %}

{{ upload_type.title }}

{{ upload_type.description }}

{% if success_message %}
{{ success_message }}
{% endif %} {% if form_error %}
{{ form_error }}
{% endif %}
Upload and check
{% csrf_token %}

Drop an .xlsx or .csv file here, or choose a file.

{% if filename %}

Last checked: {{ filename }}

{% endif %}
{% if check_result %} Download errors file {% endif %} {% if not has_add_perm %}

You do not have permission to create {{ upload_type.title|lower }} records.

{% endif %}
{% if check_result %}
Results — {{ check_result.rows|length }} row{{ check_result.rows|length|pluralize }}, {{ check_result.error_count }} error{{ check_result.error_count|pluralize }}, {{ check_result.warning_count }} warning{{ check_result.warning_count|pluralize }}
{% if check_result.ok %}
No errors. You can create these records.
{% else %}
Fix the errors below, then upload the file and try again.
{% endif %} {% if check_result.summary_warnings %}

Warnings

{% endif %} {% if check_result.summary_errors %}

Errors

{% endif %} {% if preview_rows %}
{% for h in preview_headers %} {% endfor %} {% if show_pta_column %} {% endif %} {% for prow in preview_rows %} {% for cell in prow.cells %} {% endfor %} {% if show_pta_column %} {% endif %} {% endfor %}
Row{{ h.name }}Resolved PTA
{{ prow.row_number }}{{ cell.value }}{{ prow.pta }}
{% endif %}
{% endif %}
How to fill the sheet

Use names, not ID numbers. Dates without a timezone use {{ timezone_name }}.

{% for col in upload_type.columns %} {% endfor %}
Column Required? What to type Example
{{ col.title }} {% if col.required %}Yes{% else %}Optional{% endif %} {{ col.help_text }} {{ col.example }}

Download Excel template CSV template

{% endblock %}