{% 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 %} {% block page_content %} {% trans "Upload File for Purchase Order" as header_text %} {% order.status == PurchaseOrderStatus.PENDING and roles.purchase_order.change as upload_go_ahead %} {% trans "Order is already processed. Files cannot be uploaded." as error_text %} {% "panel-upload-file" as panel_id %} {% include "patterns/wizard/upload.html" with header_text=header_text upload_go_ahead=upload_go_ahead error_text=error_text panel_id=panel_id %} {% endblock %} {% block js_ready %} {{ block.super }} {% endblock %}