{% extends "site/base.html" %} {% load util %} {% load i18n %} {% block header %} {% with page_title=instance|make_page_title %}{{ block.super }}{% endwith %} {% endblock %} {% block content %}
{% if permissions.can_edit %}
{{ instance.org_id }}
{% if ref_tag == "net" %}
{{ instance.asn }}
{% endif %}
{% endif %}
{{ data.title }} {% if instance.sponsorship %} {% endif %}
{% if instance.status == "pending" %}
{% if ref_tag == "campus" %} {% trans "Add at least 2 facilities for your campus to be visible." %} {% else %} {% trans "Pending Review" %} {% endif %}
{% endif %} {% if permissions.can_edit %} {% else %}
{% if instance.org and not instance.org.owned and request.user.is_authenticated %} {% if request.user.is_verified_user or request.user.email_confirmed %} Request Ownership {% endif %} {% endif %}
{% endif %}
{% include "site/stats.html" %}
{% if permissions.can_edit %} {% endif %}
{% for row in data.fields %} {% if row.last_soc_field %}
{% else %} {% if row.type == "group" %}
{{ row.label }}
{% for payload_row in row.payload %}
{{ payload_row.value }}
{% endfor %}
{% elif row.type == "group_end" %}
{% endif %} {% if not row.value|dont_render and row.type != "group" and row.type != "group_end" %} {% if not row.admin or permissions.can_write %}
{% if row.type == "sub"%}
{{ row.label }}
{% else %}
{% if row.notify_incomplete %}{% endif %} {{ row.label }} {% if row.help_text %}{% endif %}
{% if row.editable_label %}
{{ row|editable_list_value }}
{% if data.name != "social_media" %} {% endif %} {% elif row.edit_label %}
{% if row.notify_incomplete %}{% endif %} {{ row.edit_label }} {% if row.help_text or row.edit_help_text %}{% endif %}
{% endif %} {% if row.type == "soc" %}
{{ row.value|social_media_link:row.label_value }}
{% elif row.type == "url" %}
{% if row.value %}{{ row.value }}{% endif %}
{% elif row.type == "email" %}
{% if row.value %}{{ row.value }}{% endif %}
{% elif row.type == "list" %}
{{ row|editable_list_value }}
{% else %} data-edit-value="{{ row.value }}">{{ row|editable_list_value }}
{% endif %} {% elif row.type == "flags" %}
{% for flag in row.value %} {{ flag.label }} {% if flag.help_text %} {% endif %} {% endfor %}
{% elif row.type == "action" %}
{% for action in row.actions %} {% if action.action %} {% elif action.href %} {{ action.label }} {% else %} {{ action.label }} {% endif %} {% endfor %}
{% elif row.type == "fmt-text" %}
{{ row.value }} {% if row.name == "notes" and row.value and request.user.is_authenticated %} {% endif %}
{% elif row.type == "safe" %}
{{ row.value|safe }}
{% elif row.type == "bool" %}
{% elif row.type == "location" %}
{{ row.value.city }}{% if row.value.state or row.value.zipcode %},{% endif %} {{ row.value.state }}{% if row.value.zipcode %},{% endif %} {{ row.value.zipcode }}
{% elif row.type == "geocode" %}
{% if row.value.latitude and row.value.longitude %} {{ row.value.latitude }}, {{ row.value.longitude }} {% else %}
{% trans "Geocode data for this entity could not obtained at this point. This is done automatically upon address field changes."%}
{% endif %}
{% elif row.type == "entity_link" %} {% elif row.type == "image" %}
{{ row.label }}
{% else %}
{{ row.value }}
{% endif %} {% endif %}
{% endif %} {% endif %} {% endif %} {% endfor %}
{% include bottom_template_name with data=data instance=instance permissions=permissions %}
{% include side_template_name with data=data instance=instance permissions=permissions %}
{% if permissions.can_write %} {% endif %} {% if permissions.can_use_tools %} {% include tools_template_name with data=data instance=instance permissions=permissions %} {% endif %} {% include asset_template_name with data=data instance=instance permissions=permissions %} {% endblock %}