Add icons to part base

This commit is contained in:
Oliver Walters 2020-04-12 00:40:48 +10:00
parent f248b20ba4
commit f1f27f08cb
4 changed files with 44 additions and 24 deletions

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-11 14:32+0000\n" "POT-Creation-Date: 2020-04-11 14:40+0000\n"
"PO-Revision-Date: 2020-02-02 08:07+0100\n" "PO-Revision-Date: 2020-02-02 08:07+0100\n"
"Last-Translator: Christian Schlüter <chschlue@gmail.com>\n" "Last-Translator: Christian Schlüter <chschlue@gmail.com>\n"
"Language-Team: C <kde-i18n-doc@kde.org>\n" "Language-Team: C <kde-i18n-doc@kde.org>\n"
@ -113,7 +113,7 @@ msgstr "Zerstört"
#: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28
#: build/templates/build/allocate_view.html:21 #: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:109 part/templates/part/tabs.html:21 #: part/templates/part/part_base.html:113 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "Zugeordnet" msgstr "Zugeordnet"
@ -272,7 +272,7 @@ msgid "Description"
msgstr "Beschreibung" msgstr "Beschreibung"
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:115 #: part/templates/part/part_base.html:120
msgid "On Order" msgid "On Order"
msgstr "bestellt" msgstr "bestellt"
@ -312,6 +312,10 @@ msgstr "Status"
msgid "BOM Price" msgid "BOM Price"
msgstr "" msgstr ""
#: build/templates/build/build_base.html:81
msgid "BOM pricing is incomplete"
msgstr ""
#: build/templates/build/build_base.html:84 #: build/templates/build/build_base.html:84
#, fuzzy #, fuzzy
#| msgid "Show pricing information" #| msgid "Show pricing information"
@ -1744,23 +1748,23 @@ msgstr "Teil favorisieren"
msgid "Show pricing information" msgid "Show pricing information"
msgstr "Kosteninformationen ansehen" msgstr "Kosteninformationen ansehen"
#: part/templates/part/part_base.html:98 #: part/templates/part/part_base.html:100
msgid "Available Stock" msgid "Available Stock"
msgstr "Verfügbarer Lagerbestand" msgstr "Verfügbarer Lagerbestand"
#: part/templates/part/part_base.html:103 #: part/templates/part/part_base.html:106
msgid "In Stock" msgid "In Stock"
msgstr "Auf Lager" msgstr "Auf Lager"
#: part/templates/part/part_base.html:124 #: part/templates/part/part_base.html:130
msgid "Build Status" msgid "Build Status"
msgstr "Bau-Status" msgstr "Bau-Status"
#: part/templates/part/part_base.html:128 #: part/templates/part/part_base.html:135
msgid "Can Build" msgid "Can Build"
msgstr "Herstellbar?" msgstr "Herstellbar?"
#: part/templates/part/part_base.html:133 #: part/templates/part/part_base.html:141
msgid "Underway" msgid "Underway"
msgstr "unterwegs" msgstr "unterwegs"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-11 14:32+0000\n" "POT-Creation-Date: 2020-04-11 14:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -112,7 +112,7 @@ msgstr ""
#: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28
#: build/templates/build/allocate_view.html:21 #: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:109 part/templates/part/tabs.html:21 #: part/templates/part/part_base.html:113 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "" msgstr ""
@ -268,7 +268,7 @@ msgid "Description"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:115 #: part/templates/part/part_base.html:120
msgid "On Order" msgid "On Order"
msgstr "" msgstr ""
@ -306,6 +306,10 @@ msgstr ""
msgid "BOM Price" msgid "BOM Price"
msgstr "" msgstr ""
#: build/templates/build/build_base.html:81
msgid "BOM pricing is incomplete"
msgstr ""
#: build/templates/build/build_base.html:84 #: build/templates/build/build_base.html:84
msgid "No pricing information" msgid "No pricing information"
msgstr "" msgstr ""
@ -1581,23 +1585,23 @@ msgstr ""
msgid "Show pricing information" msgid "Show pricing information"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:98 #: part/templates/part/part_base.html:100
msgid "Available Stock" msgid "Available Stock"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:103 #: part/templates/part/part_base.html:106
msgid "In Stock" msgid "In Stock"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:124 #: part/templates/part/part_base.html:130
msgid "Build Status" msgid "Build Status"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:128 #: part/templates/part/part_base.html:135
msgid "Can Build" msgid "Can Build"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:133 #: part/templates/part/part_base.html:141
msgid "Underway" msgid "Underway"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-11 14:32+0000\n" "POT-Creation-Date: 2020-04-11 14:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -112,7 +112,7 @@ msgstr ""
#: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:163 build/templates/build/allocate_edit.html:28
#: build/templates/build/allocate_view.html:21 #: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:109 part/templates/part/tabs.html:21 #: part/templates/part/part_base.html:113 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "" msgstr ""
@ -268,7 +268,7 @@ msgid "Description"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:115 #: part/templates/part/part_base.html:120
msgid "On Order" msgid "On Order"
msgstr "" msgstr ""
@ -306,6 +306,10 @@ msgstr ""
msgid "BOM Price" msgid "BOM Price"
msgstr "" msgstr ""
#: build/templates/build/build_base.html:81
msgid "BOM pricing is incomplete"
msgstr ""
#: build/templates/build/build_base.html:84 #: build/templates/build/build_base.html:84
msgid "No pricing information" msgid "No pricing information"
msgstr "" msgstr ""
@ -1581,23 +1585,23 @@ msgstr ""
msgid "Show pricing information" msgid "Show pricing information"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:98 #: part/templates/part/part_base.html:100
msgid "Available Stock" msgid "Available Stock"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:103 #: part/templates/part/part_base.html:106
msgid "In Stock" msgid "In Stock"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:124 #: part/templates/part/part_base.html:130
msgid "Build Status" msgid "Build Status"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:128 #: part/templates/part/part_base.html:135
msgid "Can Build" msgid "Can Build"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:133 #: part/templates/part/part_base.html:141
msgid "Underway" msgid "Underway"
msgstr "" msgstr ""

View File

@ -93,25 +93,30 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<table class="table table-striped"> <table class="table table-striped">
<col width='25'>
<tr> <tr>
<td><span class='fas fa-boxes'></span></td>
<td> <td>
<h4>{% trans "Available Stock" %}</h4> <h4>{% trans "Available Stock" %}</h4>
</td> </td>
<td><h4>{% decimal part.available_stock %} {{ part.units }}</h4></td> <td><h4>{% decimal part.available_stock %} {{ part.units }}</h4></td>
</tr> </tr>
<tr> <tr>
<td><span class='fas fa-map-marker-alt'></span></td>
<td>{% trans "In Stock" %}</td> <td>{% trans "In Stock" %}</td>
<td>{% include "part/stock_count.html" %}</td> <td>{% include "part/stock_count.html" %}</td>
</tr> </tr>
{% if not part.is_template %} {% if not part.is_template %}
{% if part.allocation_count > 0 %} {% if part.allocation_count > 0 %}
<tr> <tr>
<td><span class='fas fa-dolly'></span></td>
<td>{% trans "Allocated" %}</td> <td>{% trans "Allocated" %}</td>
<td>{% decimal part.allocation_count %}</td> <td>{% decimal part.allocation_count %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if part.on_order > 0 %} {% if part.on_order > 0 %}
<tr> <tr>
<td><span class='fas fa-shopping-cart'></span></td>
<td>{% trans "On Order" %}</td> <td>{% trans "On Order" %}</td>
<td>{% decimal part.on_order %}</td> <td>{% decimal part.on_order %}</td>
</tr> </tr>
@ -120,16 +125,19 @@
{% if not part.is_template %} {% if not part.is_template %}
{% if part.assembly %} {% if part.assembly %}
<tr> <tr>
<td><span class='fas fa-tools'></span></td>
<td colspan='2'> <td colspan='2'>
<b>{% trans "Build Status" %}</b> <b>{% trans "Build Status" %}</b>
</td> </td>
</tr> </tr>
<tr> <tr>
<td></td>
<td>{% trans "Can Build" %}</td> <td>{% trans "Can Build" %}</td>
<td>{% decimal part.can_build %}</td> <td>{% decimal part.can_build %}</td>
</tr> </tr>
{% if part.quantity_being_built > 0 %} {% if part.quantity_being_built > 0 %}
<tr> <tr>
<td></td>
<td>{% trans "Underway" %}</td> <td>{% trans "Underway" %}</td>
<td>{% decimal part.quantity_being_built %}</td> <td>{% decimal part.quantity_being_built %}</td>
</tr> </tr>