Add allocation tab

This commit is contained in:
Oliver Walters 2019-05-17 00:20:48 +10:00
parent bf987f23f3
commit 2da3a022bf
3 changed files with 9 additions and 7 deletions

View File

@ -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;'>

View File

@ -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 %}

View File

@ -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>