{% extends "part/part_base.html" %} {% load static %} {% block details %} {% include 'part/tabs.html' with tab='attachments' %}

Part Attachments


{% for attachment in part.attachments.all %} {% endfor %}
File Comment
{{ attachment.basename }} {{ attachment.comment }}
{% endblock %} {% block js_ready %} {{ block.super }} $("#new-attachment").click(function() { launchModalForm("{% url 'part-attachment-create' %}?part={{ part.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'), { success: function() { location.reload(); } }); }); {% endblock %}