{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Copy Request History" %}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{# Metric tiles #}

{% trans "Total" %}

{{ metrics.total|default:0 }}

{% trans "All requests ever submitted." %}

{% trans "Open" %}

{{ metrics.open|default:0 }}

{% trans "Requests still in progress." %}

{% trans "Fulfilled" %}

{{ metrics.fulfilled|default:0 }}

{% trans "Copies produced and confirmed." %}

{% trans "Delivered" %}

{{ metrics.delivered|default:0 }}

{% trans "Blueprints handed off to the buyer." %}
{# Filters #}
{% trans "Filter Console" %} {% trans "Refine the archive view" %}
{% if status == 'all' %} {% trans "All statuses" %} {% elif status == 'open' %} {% trans "Open only" %} {% elif status == 'fulfilled' %} {% trans "Fulfilled only" %} {% elif status == 'delivered' %} {% trans "Delivered only" %} {% else %} {{ status|default:_('All statuses') }} {% endif %} {{ per_page }} {% trans "per page" %} {% if search %} {{ search }} {% endif %}
{% if status != 'all' or search %} {% trans "Reset" %} {% endif %}
{# Results table #}
{% if page_obj %} {% with total_results=page_obj.paginator.count %}

{% trans "Request Timeline" %}

{% blocktrans count counter=total_results %} {{ counter }} request matches the current filters. {% plural %} {{ counter }} requests match the current filters. {% endblocktrans %}

{{ total_results }} {% if search %} {% trans "Filtered search" %} {% endif %}
{% endwith %} {% else %}

{% trans "Request Timeline" %}

{% blocktrans count counter=rows|length %} {{ counter }} request matches the current filters. {% plural %} {{ counter }} requests match the current filters. {% endblocktrans %}

{{ rows|length }} {% if search %} {% trans "Filtered search" %} {% endif %}
{% endif %}
{% for row in rows %} {% empty %} {% endfor %}
{% trans "Request" %} {% trans "Blueprint" %} {% trans "Requester" %} {% trans "Acceptor" %} {% trans "Fulfilled" %} {% trans "Delivered" %} {% trans "Scope" %}
#{{ row.id }} {{ row.created_at|naturaltime }} {{ row.created_at|date:'Y-m-d H:i' }}
{{ row.type_name }}
ME{{ row.material_efficiency }} TE{{ row.time_efficiency }} {{ row.runs_requested }} {% trans "run(s)" %} {{ row.copies_requested }} {% trans "copy(ies)" %}
{{ row.requested_by.username }} {% if row.acceptor %} {{ row.acceptor.username }} {% else %} {% trans "Unassigned" %} {% endif %} {% if row.fulfilled %} {% trans "Yes" %} {% if row.fulfilled_at %}
{{ row.fulfilled_at|date:'Y-m-d H:i' }}
{% endif %} {% else %} {% trans "No" %} {% endif %}
{% if row.delivered %} {% trans "Yes" %} {% if row.delivered_at %}
{{ row.delivered_at|date:'Y-m-d H:i' }}
{% endif %} {% else %} {% trans "No" %} {% endif %}
{% if row.source_scope == 'personal' %} {% trans "Personal" %} {% elif row.source_scope == 'corporation' %} {% trans "Corporation" %} {% else %} {% trans "Unknown" %} {% endif %}
{% trans "No requests found." %} {% trans "Try widening the filters or clearing the search term." %}
{# Pagination #} {% if page_obj.has_other_pages %} {% endif %}
{% endblock %}