{% extends "stock/item_base.html" %} {% load static %} {% load i18n %} {% block details %} {% include "stock/tabs.html" with tab='installed' %}

{% trans "Installed Stock Items" %}


{% 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 %}