mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-14 07:31:10 +00:00
Improved list and detail views for supplier
Huzzah for bootstrap
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<a class="navbar-brand" href="/"><img src="{% static 'img/inventree.png' %}" width="40" height="40"/></a>
|
||||
</div>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="/part/">Parts</a></li>
|
||||
<li><a href="/part/">Parts</a></li>
|
||||
<li><a href="/stock/">Stock</a></li>
|
||||
<li><a href="/supplier/">Suppliers</a></li>
|
||||
<li><a href="/track/">Tracking</a></li>
|
||||
|
@@ -6,6 +6,11 @@
|
||||
|
||||
{% include "part/cat_link.html" with category=category %}
|
||||
|
||||
<p>
|
||||
<b>{{ category.name }}</b><br>
|
||||
<i>{{ category.description }}</i>
|
||||
</p>
|
||||
|
||||
{% include "part/category_subcategories.html" with children=category.children.all %}
|
||||
|
||||
{% include "part/category_parts.html" with parts=category.parts.all %}
|
||||
|
@@ -1,10 +1,15 @@
|
||||
{% if parts|length > 0 %}
|
||||
Parts:
|
||||
<ul class="list-group">
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th>Part</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
{% for part in parts %}
|
||||
<li class="list-group-item">
|
||||
<a href="{% url 'part-detail' part.id %}">{{ part.name }}</a> - {{ part.description }}
|
||||
</li>
|
||||
<tr>
|
||||
<td><a href="{% url 'part-detail' part.id %}">{{ part.name }}</a></td>
|
||||
<td>{{ part.description }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</table>
|
||||
{% endif %}
|
@@ -3,7 +3,10 @@ Subcategories:
|
||||
<ul class="list-group">
|
||||
{% for child in children %}
|
||||
<li class="list-group-item">
|
||||
<a href="{% url 'category-detail' child.id %}">{{ child.name }}</a> - {{ child.description }}
|
||||
<b><a href="{% url 'category-detail' child.id %}">{{ child.name }}</a></b>
|
||||
{% if child.description %}
|
||||
<i> - {{ child.description }}</i>
|
||||
{% endif %}
|
||||
<span class='badge'>{{ child.partcount }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
{% endif %}/>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5>{{ part.name }}</h5>
|
||||
<h4>{{ part.name }}</h4>
|
||||
{% if part.description %}
|
||||
<p><i>{{ part.description }}</i></p>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user