mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add allocation tab
This commit is contained in:
parent
bf987f23f3
commit
2da3a022bf
@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "build/build_base.html" %}
|
||||
{% load static %}
|
||||
{% load inventree_extras %}
|
||||
|
||||
@ -6,15 +6,14 @@
|
||||
InvenTree | Allocate Parts
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block details %}
|
||||
|
||||
<h3>Allocate Parts for Build</h3>
|
||||
{% include "build/tabs.html" with tab='allocate' %}
|
||||
|
||||
<h4>Allocate Parts for Build</h4>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
|
||||
<h4><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></h4>
|
||||
{{ build.quantity }} x {{ build.part.lonname }}
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<div class='btn-group' style='float: right;'>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<img class='hover-img-large' src="{% if item.sub_part.image %}{{ item.sub_part.image.url }}{% endif %}">
|
||||
</div>
|
||||
<div>
|
||||
{{ item.sub_part.full_name }}<br>
|
||||
{{ item.sub_part.full_name }}
|
||||
<small><i>{{ item.sub_part.description }}</i></small>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -5,6 +5,9 @@
|
||||
<li{% if tab == 'required' %} class='active'{% endif %}>
|
||||
<a href="{% url 'build-required' build.id %}">Required</a>
|
||||
</li>
|
||||
<li{% if tab == 'allocate' %} class='active'{% endif %}>
|
||||
<a href="{% url 'build-allocate' build.id %}">Allocate</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<br>
|
Loading…
Reference in New Issue
Block a user