{% extends "wagtailadmin/base.html" %} {% load i18n %} {% load l10n %} {% load wagtailadmin_tags wagtailimages_tags static %} {% block titletag %} {% blocktranslate trimmed with title=page.get_admin_display_title %} Import CAP Alert {{ title }} {% endblocktranslate %} {% endblock %} {% block extra_css %} {{ block.super }} {% endblock %} {% block content %} {% translate "Import CAP Alert - Preview" as header_str %} {% include "wagtailadmin/shared/header.html" with title=header_str icon="map" %}
{% if alert_data %}
{% translate "Import Type:" %} {{ alert_data.alert_source.type }}
{% if alert_data.alert_source.type == "URL" %} {% translate "Source URL:" %} {{ alert_data.alert_source.name }} {% else %} {% if alert_data.alert_source.name %} {% translate "Source File Name:" %} {{ alert_data.alert_source.name }} {% endif %} {% endif %}
{% translate "Sender:" %} {{ alert_data.sender }}
{% translate "Sent:" %} {{ alert_data.sent }} UTC
{% translate "Status:" %} {{ alert_data.status }}
{% translate "Message Type:" %} {{ alert_data.scope }}
{% csrf_token %} {% for field in form %} {% if field.is_hidden %} {{ field }} {% endif %} {% endfor %}
{% for info in alert_data.info %} {{ info.event }} {% endfor %}
{% for info in alert_data.info %}
{% translate "Language:" %} {{ info.language }}
{% translate "Category:" %} {% for category in info.category %} {{ category }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% translate "Event:" %} {{ info.event }}
{% translate "Urgency:" %} {{ info.urgency }}
{% translate "Severity:" %} {{ info.severity }}
{% translate "Certainty:" %} {{ info.certainty }}
{% if info.effective or info.onset or info.expires %}
{% if info.effective %}
{% translate "Effective:" %} {{ info.effective }} UTC
{% endif %} {% if info.onset %}
{% translate "Onset:" %} {{ info.onset }} UTC
{% endif %} {% if info.expires %}
{% translate "Expires:" %} {{ info.expires }} UTC
{% endif %}
{% endif %}
{% translate "Headline:" %} {{ info.headline }}
{% translate "Description:" %} {{ info.description }}
{% if info.instruction %}
{% translate "Instruction:" %} {{ info.instruction }}
{% endif %}
{% translate "Area:" %} {% for area in info.area %} {{ area.areaDesc }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {{ block.super }} {% endblock %}