{% extends "stock/item_base.html" %} {% load static %} {% load i18n %} {% block menubar %} {% include "stock/navbar.html" with tab='installed' %} {% endblock %} {% block heading %} {% trans "Installed Stock Items" %} {% endblock %} {% block details %}
{% endblock %} {% block js_ready %} {{ block.super }} loadInstalledInTable( $('#installed-table'), { stock_item: {{ item.pk }}, part: {{ item.part.pk }}, quantity: {{ item.quantity }}, } ); $('#multi-item-uninstall').click(function() { var selections = $('#installed-table').bootstrapTable('getSelections'); var items = []; selections.forEach(function(item) { items.push(item.pk); }); launchModalForm( "{% url 'stock-item-uninstall' %}", { data: { 'items[]': items, }, reload: true, } ); }); {% endblock %}