{% extends "order/purchase_order_detail.html" %} {% load inventree_extras %} {% load i18n %} {% load static %} {% block sidebar %} {% url "po-detail" order.id as url %} {% trans "Return to Orders" as text %} {% include "sidebar_item.html" with url=url text=text icon="fa-undo" %} {% endblock sidebar %} {% block page_content %} {% trans "Upload File for Purchase Order" as header_text %} {% trans "Order is already processed. Files cannot be uploaded." as error_text %} {% with panel_id="panel-upload-file" %}

{{ header_text }} {{ wizard.form.media }}

{% if order.status == PurchaseOrderStatus.PENDING and roles.purchase_order.change %}

{% blocktrans with step=wizard.steps.step1 count=wizard.steps.count %}Step {{step}} of {{count}}{% endblocktrans %} {% if description %}- {{ description }}{% endif %}

{% block form_alert %} {% endblock form_alert %}
{% csrf_token %} {% load crispy_forms_tags %} {% block form_buttons_top %} {% endblock form_buttons_top %} {{ wizard.management_form }} {% block form_content %} {% crispy wizard.form %} {% endblock form_content %}
{% block form_buttons_bottom %} {% if wizard.steps.prev %} {% endif %}
{% endblock form_buttons_bottom %} {% else %} {% endif %}
{% endwith %} {% endblock page_content %} {% block js_ready %} {{ block.super }} {% endblock js_ready %}