mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Separate active / complete / cancelled builds
This commit is contained in:
@ -2,28 +2,40 @@
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
|
||||
<h3>Part Builds</h3>
|
||||
|
||||
<div id='button-toolbar'>
|
||||
<button class="btn btn-success" id='new-build'>Start New Build</button>
|
||||
<h4>Active Builds</h4>
|
||||
|
||||
<div id='active-build-toolbar'>
|
||||
<div class='btn-group'>
|
||||
<button class="btn btn-success" id='new-build'>Start New Build</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class='table table-striped table-condensed' id='build-table' data-toolbar='#button-toolbar'>
|
||||
<thead>
|
||||
<table class='table table-striped table-condensed build-table' id='build-table-{{collapse_id}}' data-toolbar='#active-build-toolbar'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Build</th>
|
||||
<th>Part</th>
|
||||
<th>Quantity</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for build in active %}
|
||||
<tr>
|
||||
<th>Build</th>
|
||||
<th>Part</th>
|
||||
<th>Quantity</th>
|
||||
<th>Status</th>
|
||||
<td><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></td>
|
||||
<td><a href="{% url 'part-build' build.part.id %}">{{ build.part.name }}</a></td>
|
||||
<td>{{ build.quantity }}</td>
|
||||
<td>{% include "build_status.html" with build=build %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{% include "build/build_list.html" with builds=builds %}
|
||||
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p></p>
|
||||
{% include "build/build_list.html" with builds=completed title="Completed Builds" collapse_id="complete" %}
|
||||
<p></p>
|
||||
{% include "build/build_list.html" with builds=cancelled title="Cancelled Builds" collapse_id="cancelled" %}
|
||||
|
||||
{% include 'modals.html' %}
|
||||
|
||||
@ -39,9 +51,10 @@
|
||||
});
|
||||
});
|
||||
|
||||
$("#build-table").bootstrapTable({
|
||||
$(".build-table").bootstrapTable({
|
||||
sortable: true,
|
||||
search: true,
|
||||
formatNoMatches: function() { return 'No builds found'; },
|
||||
columns: [
|
||||
{
|
||||
field: 'name',
|
||||
|
Reference in New Issue
Block a user