mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-05 23:08:48 +00:00
Refactor display for "part category"
This commit is contained in:
parent
3aad2eb13d
commit
440436c70d
@ -61,29 +61,36 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block details_left %}
|
{% block details_left %}
|
||||||
|
<table class='table table-striped table-condensed'>
|
||||||
|
<col width='25'>
|
||||||
{% if category %}
|
{% if category %}
|
||||||
<p>{{ category.description }}</p>
|
{% if category.description %}
|
||||||
{% else %}
|
<tr>
|
||||||
<p>{% trans "Top level part category" %}</p>
|
<td><span class='fas fa-info-circle'></span></td>
|
||||||
|
<td>{% trans "Description" %}</td>
|
||||||
|
<td>{{ category.description }}</td>
|
||||||
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<tr>
|
||||||
{% endblock %}
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
|
<td>{% trans "Category Path" %}</td>
|
||||||
|
<td>{{ category.pathstring }}</td>
|
||||||
|
</tr>
|
||||||
|
{% else %}
|
||||||
|
<tr>
|
||||||
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
|
<td>{% trans "Category Path" %}</td>
|
||||||
|
<td><em>{% trans "Top level part category" %}</em></td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
{% endblock details_left %}
|
||||||
|
|
||||||
{% block details_right %}
|
{% block details_right %}
|
||||||
|
|
||||||
{% if category %}
|
{% if category %}
|
||||||
<table class='table table-condensed table-striped'>
|
<table class='table table-condensed table-striped'>
|
||||||
<col width='25'>
|
<col width='25'>
|
||||||
<tr>
|
|
||||||
<td><span class='fas fa-sitemap'></span></td>
|
|
||||||
<td>{% trans "Category Path" %}</td>
|
|
||||||
<td>{{ category.pathstring }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class='fas fa-info-circle'></span></td>
|
|
||||||
<td>{% trans "Category Description" %}</td>
|
|
||||||
<td>{{ category.description }}</td>
|
|
||||||
</tr>
|
|
||||||
{% if category.default_location %}
|
{% if category.default_location %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class='fas fa-map-marker-alt'></span></td>
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
@ -124,7 +131,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock details_right %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{% if location %}
|
{% if location %}
|
||||||
{% trans "Stock Location" %}: {{ location.name }}
|
{% trans "Stock Location" %}: {{ location.name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Stock Location" %}
|
{% trans "Stock" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user