{% extends "network/base.html" %} {% block title %}FCC Compliance — Network Design Canvas{% endblock %} {% block content %} {% macro score_badge(score) %} {% if score is defined and score is not none %} {% if score >= 80 %}{{ score|round(0)|int }}% {% elif score >= 50 %}{{ score|round(0)|int }}% {% else %}{{ score|round(0)|int }}%{% endif %} {% endif %} {% endmacro %} {% macro check_table(items, id_key='id', req_key='requirement', mand_key='mandatory', ref_key='reference') %} {% for item in items %} {% else %} {% endfor %}
IDRequirementMandatoryReferenceStatus
{{ item.get(id_key, '—') }} {{ item.get(req_key, item.get('description', '—')) }} {% if item.get(mand_key) %}Required{% else %}Optional{% endif %} {{ item.get(ref_key, '—') }} Self-assess
No items
{% endmacro %}
{% for key, label in [('calea','CALEA'),('part36','Part 36'),('nanp','NANP'),('e911','E-911')] %} {% set c = checks.get(key, {}) %}
{{ label }}
{{ score_badge(c.get('compliance_score_pct', c.get('overall_score_pct'))) }}

{{ c.get('framework', c.get('description', '')) | truncate(80) }}

{% endfor %}
{% set calea = checks.get('calea', {}) %} {% if calea and not calea.get('error') %}
CALEA — Lawful Intercept Checklist {{ score_badge(calea.get('compliance_score_pct')) }}
{{ check_table(calea.get('checklist', [])) }}
{% endif %} {% set part36 = checks.get('part36', {}) %} {% if part36 and not part36.get('error') %}
Part 36 — Separations & Cost Allocation {{ score_badge(part36.get('compliance_score_pct')) }}
{{ check_table(part36.get('checklist', []), req_key='description') }}
{% endif %} {% set nanp = checks.get('nanp', {}) %} {% if nanp and not nanp.get('error') %}
NANP — Number Inventory & Porting Compliance {{ score_badge(nanp.get('compliance_score_pct')) }}
{{ check_table(nanp.get('checklist', []), req_key='description') }}
{% endif %} {% set e911 = checks.get('e911', {}) %} {% if e911 and not e911.get('error') %}
E-911 — Location Accuracy & Callback Capability {{ score_badge(e911.get('compliance_score_pct')) }}
{{ check_table(e911.get('checklist', []), req_key='description') }}
{% endif %} {% endblock %}