{% extends 'generic/object.html' %} {% load helpers %} {% block content %}
{% if cer_error %}
{{ cer_error }}
{% endif %} {% if show_lookup %}
Find an address for {{ object }}
{% if not object.physical_address %}

This site has no physical address. Search by street address or building name, then pick a result to save it on the site.

{% endif %}
{% if object.physical_address %}Cancel{% endif %}
{% for err in addr_errors %}
{{ err }}
{% endfor %} {% if addr_results %} {% for r in addr_results %} {% endfor %}
ResultSaved asSource
{{ r.label }} {{ r.physical_address }} {% if not r.complete %}
No house number / ZIP - fill in after saving
{% endif %}
{{ r.source }} {% if perms.dcim.change_site %}
{% csrf_token %}
{% endif %}
{% elif addr_searched and not addr_errors %}

No results for "{{ addr_query }}". Try a street address or a different building name.

{% endif %}
{% endif %}
ERLs for {{ object }}
{% if perms.netbox_cisco_cer.add_erl %} {% endif %}

Site address: {{ object.physical_address|placeholder }} {% if object.physical_address and not show_lookup and perms.dcim.change_site %} Look up a different address {% endif %} {% if site_address %}
Parsed as: {{ site_address }}{% endif %}

{% if rows %} {% for row in rows %} {% with erl=row.record cer=row.cer %} {% endwith %} {% endfor %}
ERLStatusELINAddress (NetBox)LocationCER
{{ erl.name }} {% badge erl.get_status_display bg_color=erl.get_status_color %} {% if erl.elin %}{{ erl.elin }} {% elif cer.cer_elin %}{{ cer.cer_elin }} from CER {% else %}No ELIN - add before migrating{% endif %} {{ erl.formatted_address|placeholder }} {{ erl.location|placeholder }} {% if cer_error %} unknown {% elif cer.present and cer.address_match %} In CER, address matches {% elif cer.present %} In CER, address differs
CER: {{ cer.cer_address }}
{% else %} Not in Conventional list {% if erl.status == 'migrated' %}
expected after migration
{% elif erl.status == 'off_premises' %}
Off-Premises ERLs are not in the Conventional API
{% endif %} {% endif %}
{% if perms.netbox_cisco_cer.change_erl and erl.status != 'migrated' and erl.status != 'off_premises' %}
{% csrf_token %}
{% endif %} {% if perms.netbox_cisco_cer.change_erl %} {% endif %}
{% else %}

No ERLs are linked to this site yet.

{% endif %}
{% if not cer_error %}
Link an existing CER Conventional ERL
{% if query %}Clear{% endif %}
{% if candidates %} {% if perms.netbox_cisco_cer.add_erl and match_count > 1 %}
{% csrf_token %} {% for c in candidates %}{% if c.match %}{% endif %}{% endfor %}
{% endif %} {% for c in candidates %} {% endfor %}
CER ERLAddressLocationELIN
{{ c.name }} {{ c.address|placeholder }} {{ c.location|placeholder }} {{ c.elin|placeholder }} {% if c.match %} Address matches site{% endif %} {% if perms.netbox_cisco_cer.add_erl %}
{% csrf_token %}
{% endif %}
{% elif query %}

No unlinked Conventional ERLs match "{{ query }}".

{% else %}

No unlinked Conventional ERLs match this site's address. Search to find one by name.

{% endif %}
{% endif %}
{% endblock %}