{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Fulfill Copy Requests" %}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if has_requests %}
{# ── Sidebar: request queue ─────────────────────────────── #} {# ── Workbench ───────────────────────────────────────────── #}
{% for req in requests %}
{# Identity header strip #}
{{ req.type_name }}

{{ req.type_name }}

ME {{ req.material_efficiency }} TE {{ req.time_efficiency }} {{ req.status_label }} {% if req.chat and req.chat.has_unread %} {% trans "Unread" %} {% endif %}
{% trans "Buyer" %} {{ req.requester_character|default:req.requester }}
{% trans "Copies" %} {{ req.copies_requested }}× · {{ req.runs_requested }} {% trans "runs" %}
{% trans "Source" %} {{ req.requester_bp_source_label }}
{% trans "Opened" %} {{ req.created_at|naturaltime }}
{# Body: chat (left/center) + panel column (right) #}
{# Chat column #}
{% if req.chat %} {% with req_id=req.id|stringformat:"s" %} {% with chat_shell_id="bpChatInline-"|add:req_id chat_input_id="bpChatInput-"|add:req_id %}
{% trans "Conversation auto-refreshes every 10 seconds." %}
{% trans "Current proposal" %}
ISK
{% endwith %} {% endwith %} {% else %}

{% trans "No thread yet" %}

{% trans "No negotiation started" %}

{% trans "Use the Actions panel to send a proposal. The conversation will appear here." %}

{% endif %}
{# /fwp-chat-col #} {# Panel column: Actions + Estimates + Availability #}
{# Actions #}

{% trans "Actions" %}

{% if req.status_hint %}

{{ req.status_hint }}

{% endif %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% if req.chat.decision_url %}
{{ req.negotiation_notice }}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if req.can_mark_delivered %}
{% csrf_token %}
{% endif %}
{# /fwp-section--actions #} {# Estimates & Setup #} {% if req.copy_structure_options or req.copy_producer_options or req.copy_duration or req.copy_cost %}

{% trans "Planning" %}

{% trans "Estimate & Setup" %}

{% trans "Live" %}
{% if req.copy_structure_options %}
{% endif %} {% if req.copy_producer_options %}
{% endif %}
{% if req.copy_duration %}

{% trans "Time estimate" %}

{{ req.copy_duration.total_duration_display }}

{{ req.copy_duration.meta_label }}

{% endif %} {% if req.copy_cost %} {% with req_id_str=req.id|stringformat:"s" %} {% with bd_id="copy-cost-breakdown-"|add:req_id_str %} {{ req.copy_cost.breakdown_payload|json_script:bd_id }} {% for option in req.copy_structure_options %} {% with opt_id_str=option.id|stringformat:"s" %} {% with opt_bd_id="copy-cost-breakdown-"|add:req_id_str|add:"-"|add:opt_id_str %} {{ option.breakdown_payload|json_script:opt_bd_id }} {% endwith %} {% endwith %} {% endfor %} {% endwith %} {% endwith %} {% endif %}
{# /fwp-section--estimates #} {% endif %} {# Availability #}

{% trans "Availability" %}

{% trans "BP source" %} {% if req.personal_blueprints and req.corporate_blueprints %}{% trans "BP user + BP corp" %} {% elif req.corporate_blueprints %}{% trans "BP corp" %} {% else %}{% trans "BP user" %}{% endif %}
{% trans "Available" %} {{ req.available_blueprints }}/{{ req.owned_blueprints }} {% trans "originals" %}
{% trans "Blocking jobs" %} {{ req.active_copy_jobs }}
{% if req.busy_until %}
{% trans "Busy until" %} {{ req.busy_until|date:"Y-m-d H:i" }}
{% endif %}
{% if req.personal_blueprints %}{% trans "BP user" %}: {{ req.personal_blueprints }}{% endif %} {% if req.corporate_blueprints %}{% trans "BP corp" %}: {{ req.corporate_blueprints }}{% endif %}
{% if req.personal_source_names or req.corporation_names %}
{% for name in req.personal_source_names %}{{ name }}{% endfor %} {% for name in req.corporation_names %}{{ name }}{% endfor %}
{% endif %}
{# /fwp-section--availability #}
{# /fwp-panel-col #}
{# /fwp-body #} {% if req.has_dual_sources %} {% with req_id=req.id|stringformat:"s" %} {% with scope_script_id="bp-scope-options-"|add:req_id %} {{ req.scope_modal_payload|json_script:scope_script_id }} {% endwith %} {% endwith %} {% endif %}
{% empty %}

{% trans "No requests match this filter." %}

{% trans "Adjust the selected state or include your own requests to expand the board." %}

{% endfor %}
{# /fulfill-reference-workbench #}
{# /fulfill-reference-shell #} {% else %}

{% trans "No copy requests" %}

{% trans "Check back soon for new requests to fulfill." %}

{% endif %}
{% endblock %} {% block extra_javascript %} {{ block.super }} {% endblock %}