{% extends "base.html" %}
{% block title %}Preview β {{ session.rfi_number }} | RFI Workbench{% endblock %}
{% block content %}
{% set ns = namespace(current_part='') %}
{% set part_labels = {
'part1': 'Part 1 β Administrative',
'part2': 'Part 2 β Technical Approach',
'part3': 'Part 3 β Project Feasibility & Schedule',
'part4': 'Part 4 β Business & IP',
'part5': 'Part 5 β Industry Insights',
'appendix': 'Appendix',
} %}
{% for sec in sections %}
{% if sec.part != ns.current_part %}
{% set ns.current_part = sec.part %}
{{ part_labels.get(sec.part, sec.part) }}
{% endif %}
{% set status = sec.status or 'pending' %}
{% set wg = sec.writeguard_score %}
{% set reqs = sec.requirements or [] %}
{% set n_reqs = reqs | length %}
{% set covered = reqs | selectattr('covered', 'equalto', true) | list | length %}
{% set cov_pct = ((covered / n_reqs) * 100) | round(0) | int if n_reqs > 0 else None %}
{{ sec.item_number }}
{{ sec.title }}
{{ status.replace('_',' ') }}
{% if wg is not none %}
WG {{ wg }}
{% endif %}
{% if n_reqs > 0 %}
{{ covered }}/{{ n_reqs }} reqs
{% endif %}
{% set content = sec.content or sec.ai_draft %}
{% if content %}
{{ content }}
{% else %}
Content pending β not yet generated.
{% endif %}
{% set sources = sec.source_labels %}
{% include "includes/_sources_panel.html" %}
{% endfor %}
UNCLASSIFIED // FOR OFFICIAL USE ONLY
Compliance & Quality Annex
{{ annex.overall_coverage_pct }}%Req Coverage
{% if annex.overall_wg_score is not none %}
{{ annex.overall_wg_score }}Avg WG Score
{% endif %}
Requirements Coverage
| Section | Total | Covered | Partial | Uncovered | % |
{% for r in annex.coverage %}
| {{ r.title }} |
{{ r.total }} |
{{ r.covered }} |
{{ r.partial }} |
{{ r.uncovered }} |
{% if r.pct is not none %}{{ r.pct }}%{% else %}β{% endif %} |
{% endfor %}
WriteGuard Quality
| Section | WG Score | Style Score | Pass? |
{% for r in annex.quality %}
| {{ r.title }} |
= 80 %}#4ade80{% elif r.wg_score >= 60 %}#fbbf24{% else %}#f87171{% endif %};"{% endif %}>
{% if r.wg_score is not none %}{{ r.wg_score }}{% else %}β{% endif %}
|
{% if r.style_score is not none %}{{ r.style_score }}{% else %}β{% endif %} |
{% if r.wg_score is not none %}{% if r.passed %}β{% else %}β{% endif %}{% else %}β{% endif %} |
{% endfor %}
Cross-Section Consistency
{% endblock %}