{% extends "order/sales_order_base.html" %} {% load inventree_extras %} {% load i18n %} {% load static %} {% block details %} {% include 'order/so_tabs.html' with tab='attachments' %}

{% trans "Sales Order Attachments" %}
{% for attachment in order.attachments.all %} {% endfor %}
{% trans "File" %} {% trans "Comment" %}
{{ attachment.basename }} {{ attachment.comment }}
{% endblock %} {% block js_ready %} {{ block.super }} $("#new-attachment").click(function() { launchModalForm("{% url 'po-attachment-create' %}?order={{ order.id }}", { reload: true, } ); }); $("#attachment-table").on('click', '.attachment-edit-button', function() { var button = $(this); launchModalForm(button.attr('url'), { reload: true, }); }); $("#attachment-table").on('click', '.attachment-delete-button', function() { var button = $(this); launchModalForm(button.attr('url'), { reload: true, }); }); $("#attachment-table").inventreeTable({ }); {% endblock %}