mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-06 23:38:48 +00:00
68 lines
1.4 KiB
HTML
68 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
{% block content %}
|
|
|
|
<h3>Part Builds</h3>
|
|
|
|
<div id='button-toolbar'>
|
|
<button class="btn btn-success" id='new-build'>Start New Build</button>
|
|
</div>
|
|
|
|
<table class='table table-striped table-condensed' id='build-table' data-toolbar='#button-toolbar'>
|
|
<thead>
|
|
<tr>
|
|
<th>Build</th>
|
|
<th>Part</th>
|
|
<th>Quantity</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% include "build/build_list.html" with builds=builds %}
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
{% include 'modals.html' %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block js_ready %}
|
|
{{ block.super }}
|
|
$("#new-build").click(function() {
|
|
launchModalForm(
|
|
"{% url 'build-create' %}",
|
|
{
|
|
follow: true
|
|
});
|
|
});
|
|
|
|
$("#build-table").bootstrapTable({
|
|
sortable: true,
|
|
search: true,
|
|
columns: [
|
|
{
|
|
field: 'name',
|
|
title: 'Build',
|
|
sortable: true,
|
|
},
|
|
{
|
|
field: 'part',
|
|
title: 'Part',
|
|
sortable: true,
|
|
},
|
|
{
|
|
title: 'Quantity',
|
|
sortable: true,
|
|
searchable: false
|
|
},
|
|
{
|
|
title: 'Status',
|
|
sortable: true,
|
|
}
|
|
]
|
|
});
|
|
|
|
{% endblock %} |