{% extends "base.html" %} {% load inventree_extras %} {% load static %} {% load i18n %} {% block page_title %} InvenTree | {% trans "Build Orders" %} {% endblock %} {% block content %}

{% trans "Build Orders" %}


{% if roles.build.add %} {% endif %}
{% endblock %} {% block js_load %} {{ block.super }} {% endblock %} {% block js_ready %} {{ block.super }} $('#build-order-calendar').hide(); $('#view-list').hide(); $('#view-calendar').click(function() { // Hide the list view, show the calendar view $("#build-table").hide(); $("#view-calendar").hide(); $(".fixed-table-pagination").hide(); $(".columns-right").hide(); $(".search").hide(); $("#build-order-calendar").show(); $("#view-list").show(); }); $("#view-list").click(function() { // Hide the calendar view, show the list view $("#build-order-calendar").hide(); $("#view-list").hide(); $(".fixed-table-pagination").show(); $(".columns-right").show(); $(".search").show(); $("#build-table").show(); $("#view-calendar").show(); }); $("#collapse-item-active").collapse().show(); $("#new-build").click(function() { newBuildOrder(); }); loadBuildTable($("#build-table"), { url: "{% url 'api-build-list' %}", params: { part_detail: "true", }, }); $('#multi-build-print').click(function() { var rows = $("#build-table").bootstrapTable('getSelections'); var build_ids = []; rows.forEach(function(row) { build_ids.push(row.pk); }); printBuildReports(build_ids); }); {% endblock %}