diff --git a/src/registrar/assets/sass/_theme/_admin.scss b/src/registrar/assets/sass/_theme/_admin.scss index 9f5ea7a97..c716ad49c 100644 --- a/src/registrar/assets/sass/_theme/_admin.scss +++ b/src/registrar/assets/sass/_theme/_admin.scss @@ -717,6 +717,10 @@ div.dja__model-description{ } +.import_export_text { + color: var(--secondary); +} + .text-underline { text-decoration: underline !important; } diff --git a/src/registrar/templates/admin/import_export/import.html b/src/registrar/templates/admin/import_export/import.html new file mode 100644 index 000000000..ef1160a2d --- /dev/null +++ b/src/registrar/templates/admin/import_export/import.html @@ -0,0 +1,191 @@ +{% extends "admin/import_export/base.html" %} +{% load i18n %} +{% load admin_urls %} +{% load import_export_tags %} +{% load static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block extrahead %}{{ block.super }} + + {% if confirm_form %} + {{ confirm_form.media }} + {% else %} + {{ form.media }} + {% endif %} +{% endblock %} + +{% block breadcrumbs_last %} +{% trans "Import" %} +{% endblock %} + +{% block content %} + + {% if confirm_form %} + {% block confirm_import_form %} +
+ {% endblock %} + {% else %} + {% block import_form %} + + {% endblock %} + {% endif %} + + {% if result %} + + {% if result.has_errors %} + {% block errors %} +{{ error.row.values|join:", " }}
{% trans "Please correct these errors in your data where possible, then reupload it using the form above." %}
+ +{% trans "Row" %} | +{% trans "Errors" %} | + {% for field in result.diff_headers %} +{{ field }} | + {% endfor %} +
---|---|---|
{{ row.number }} | +
+ {{ row.error_count }}
+
+
+
|
+ {% for field in row.values %}
+ {{ field }} | + {% endfor %} +
+ {% for field in result.diff_headers %} + | {{ field }} | + {% endfor %} +
---|---|
+ {% if row.import_type == 'new' %} + {% trans "New" %} + {% elif row.import_type == 'skip' %} + {% trans "Skipped" %} + {% elif row.import_type == 'delete' %} + {% trans "Delete" %} + {% elif row.import_type == 'update' %} + {% trans "Update" %} + {% endif %} + | + {% for field in row.diff %} +{{ field }} | + {% endfor %} +
+ {% if import_or_export == "export" %}
+ {% trans "This exporter will export the following fields: " %}
+ {% elif import_or_export == "import" %}
+ {% trans "This importer will import the following fields: " %}
+ {% endif %}
+
+ {% if fields_list|length <= 1 %}
+ {{ fields_list.0.1|join:", " }}
+ {% else %}
+
{{ fields|join:", " }}