{% extends "order/return_order_base.html" %} {% load inventree_extras %} {% load status_codes %} {% load i18n %} {% load static %} {% block sidebar %} {% include "order/return_order_sidebar.html" %} {% endblock %} {% block page_content %}

{% trans "Order Details" %}

{% include "spacer.html" %}

{% trans "Attachments" %}

{% include "spacer.html" %}
{% include "attachment_button.html" %}
{% include "attachment_table.html" %}

{% trans "Order Notes" %}

{% include "spacer.html" %}
{% include "notes_buttons.html" %}
{% endblock page_content %} {% block js_ready %} {{ block.super }} // Callback function when the 'details' panel is loaded onPanelLoad('order-details', function() { // TODO }); // Callback function when the 'notes' panel is loaded onPanelLoad('order-notes', function() { setupNotesField( 'order-notes', '{% url "api-return-order-detail" order.pk %}', { {% if roles.purchase_order.change %} editable: true, {% else %} editable: false, {% endif %} } ); }); // Callback function when the 'attachments' panel is loaded onPanelLoad('order-attachments', function() { enableDragAndDrop( '#attachment-dropzone', '{% url "api-return-order-attachment-list" %}', { data: { order: {{ order.id }}, }, label: 'attachment', success: function(data, status, xhr) { reloadAttachmentTable(); } } ); loadAttachmentTable('{% url "api-return-order-attachment-list" %}', { filters: { order: {{ order.pk }}, }, fields: { order: { value: {{ order.pk }}, hidden: true, }, } }); }); enableSidebar('returnorder'); {% endblock js_ready %}