mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Added views and pages for Build model
- Edit / create - View details - View build index at /build/
This commit is contained in:
@ -6,9 +6,10 @@
|
||||
<a class="navbar-brand" href="/"><img src="{% static 'img/inventree.png' %}" width="40" height="40"/></a>
|
||||
</div>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/part/">Parts</a></li>
|
||||
<li><a href="/stock/">Stock</a></li>
|
||||
<li><a href="/supplier/">Suppliers</a></li>
|
||||
<li><a href="{% url 'part-index' %}">Parts</a></li>
|
||||
<li><a href="{% url 'stock-index' %}">Stock</a></li>
|
||||
<li><a href="{% url 'build-index' %}">Build</a></li>
|
||||
<li><a href="{% url 'supplier-index' %}">Suppliers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
@ -20,7 +20,7 @@
|
||||
<td><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></td>
|
||||
<td><a href="{% url 'part-detail' build.part.id %}">{{ build.part.name }}</a></td>
|
||||
<td>Quantity</td>
|
||||
<td>{% include "part/build_status.html" with build=build %}</td>
|
||||
<td>{% include "build_status.html" with build=build %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -31,4 +31,7 @@
|
||||
|
||||
</table>
|
||||
|
||||
<div class='container-fluid'>
|
||||
<a href="{% url 'build-create' %}?part={{ part.id }}"><button class="btn btn-success">Start New Build</button></a>
|
||||
|
||||
{% endblock %}
|
@ -3,7 +3,7 @@
|
||||
<td><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></td>
|
||||
<td>{{ build.quantity }}</td>
|
||||
<td>
|
||||
{% include "part/build_status.html" with build=build %}
|
||||
{% include "build_status.html" with build=build %}
|
||||
</td>
|
||||
<td>{% if build.completion_date %}{{ build.completion_date }}{% endif %}</td>
|
||||
</tr>
|
||||
|
@ -77,7 +77,7 @@
|
||||
{% if part.allocation_count > part.total_stock %}
|
||||
<td><span class='label label-danger'>{{ part.allocation_count }}</span>
|
||||
{% else %}
|
||||
{{ part.allocation_count }} {{ part.total_stock }}
|
||||
{{ part.allocation_count }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user