More rendering improvements

This commit is contained in:
Oliver Walters 2019-11-19 10:10:23 +11:00
parent 003a2d9f3c
commit e4bfe43c04
7 changed files with 370 additions and 139 deletions

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: 2019-11-18 22:58+0000\n" "POT-Creation-Date: 2019-11-18 23:10+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"
@ -104,6 +104,7 @@ msgstr ""
#: InvenTree/status_codes.py:83 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:83 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:116 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "" msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:18 #: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32 #: part/templates/part/detail.html:33
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order" msgid "On Order"
msgstr "" msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template" msgid "Part cannot be a variant of another part if it is already a template"
msgstr "" msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16 #: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name" msgid "Part name"
msgstr "" msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description" msgid "Category Description"
msgstr "" msgstr ""
#: part/templates/part/category.html:46 part/templates/part/detail.html:63 #: part/templates/part/category.html:46 part/templates/part/detail.html:64
msgid "Default Location" msgid "Default Location"
msgstr "" msgstr ""
#: part/templates/part/category.html:52 part/templates/part/detail.html:43 #: part/templates/part/category.html:52 part/templates/part/detail.html:44
msgid "Keywords" msgid "Keywords"
msgstr "" msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)" msgid "Parts (Including subcategories)"
msgstr "" msgstr ""
#: part/templates/part/category.html:66 part/templates/part/detail.html:8 #: part/templates/part/category.html:66 part/templates/part/detail.html:9
msgid "Part Details" msgid "Part Details"
msgstr "" msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts" msgid "Parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:21 #: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN" msgid "IPN"
msgstr "" msgstr ""
#: part/templates/part/detail.html:27 #: part/templates/part/detail.html:28
msgid "Revision" msgid "Revision"
msgstr "" msgstr ""
#: part/templates/part/detail.html:37 #: part/templates/part/detail.html:38
msgid "Variant Of" msgid "Variant Of"
msgstr "" msgstr ""
#: part/templates/part/detail.html:49 stock/templates/stock/item.html:119 #: part/templates/part/detail.html:50 part/templates/part/part_base.html:91
#: stock/templates/stock/item.html:119
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: part/templates/part/detail.html:54 #: part/templates/part/detail.html:55
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: part/templates/part/detail.html:69 #: part/templates/part/detail.html:70
msgid "Default Supplier" msgid "Default Supplier"
msgstr "" msgstr ""
#: part/templates/part/detail.html:76 #: part/templates/part/detail.html:77
msgid "Units" msgid "Units"
msgstr "" msgstr ""
#: part/templates/part/detail.html:81 #: part/templates/part/detail.html:82
msgid "Minimum Stock" msgid "Minimum Stock"
msgstr "" msgstr ""
#: part/templates/part/detail.html:90 #: part/templates/part/detail.html:91
msgid "Virtual" msgid "Virtual"
msgstr "" msgstr ""
#: part/templates/part/detail.html:93 #: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)" msgid "Part is virtual (not a physical part)"
msgstr "" msgstr ""
#: part/templates/part/detail.html:95 #: part/templates/part/detail.html:96
msgid "Part is not a virtual part" msgid "Part is not a virtual part"
msgstr "" msgstr ""
#: part/templates/part/detail.html:99 #: part/templates/part/detail.html:100
msgid "Assembly" msgid "Assembly"
msgstr "" msgstr ""
#: part/templates/part/detail.html:102 #: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts" msgid "Part can be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:104 #: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts" msgid "Part cannot be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:108 #: part/templates/part/detail.html:109
msgid "Component" msgid "Component"
msgstr "" msgstr ""
#: part/templates/part/detail.html:111 #: part/templates/part/detail.html:112
msgid "Part can be used in assemblies" msgid "Part can be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:113 #: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies" msgid "Part cannot be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:117 #: part/templates/part/detail.html:118
msgid "Trackable" msgid "Trackable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:120 #: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number" msgid "Part stock is tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:122 #: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number" msgid "Part stock is not tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:126 #: part/templates/part/detail.html:127
msgid "Purchaseable" msgid "Purchaseable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:129 part/templates/part/detail.html:131 #: part/templates/part/detail.html:130 part/templates/part/detail.html:132
msgid "Part can be purchased from external suppliers" msgid "Part can be purchased from external suppliers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:136 #: part/templates/part/detail.html:137
msgid "Sellable" msgid "Sellable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:139 #: part/templates/part/detail.html:140
msgid "Part can be sold to customers" msgid "Part can be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:141 #: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:151 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:11
msgid "This part is not active"
msgstr ""
#: part/templates/part/part_base.html:47
msgid "Star this part"
msgstr ""
#: part/templates/part/part_base.html:53
msgid "Show pricing information"
msgstr ""
#: part/templates/part/part_base.html:105
msgid "Available Stock"
msgstr ""
#: part/templates/part/part_base.html:110
msgid "In Stock"
msgstr ""
#: part/templates/part/part_base.html:131
msgid "Build Status"
msgstr ""
#: part/templates/part/part_base.html:135
msgid "Can Build"
msgstr ""
#: part/templates/part/part_base.html:140
msgid "Underway"
msgstr ""
#: part/templates/part/tabs.html:6
msgid "Details"
msgstr ""
#: part/templates/part/tabs.html:9
msgid "Parameters"
msgstr ""
#: part/templates/part/tabs.html:13
msgid "Variants"
msgstr ""
#: part/templates/part/tabs.html:17
msgid "Stock"
msgstr ""
#: part/templates/part/tabs.html:26
msgid "BOM"
msgstr ""
#: part/templates/part/tabs.html:28 stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: part/templates/part/tabs.html:32
msgid "Used In"
msgstr ""
#: part/templates/part/tabs.html:37
msgid "Suppliers"
msgstr ""
#: part/templates/part/tabs.html:43
msgid "Purchase Orders"
msgstr ""
#: part/templates/part/tabs.html:48
msgid "Tracking"
msgstr ""
#: part/templates/part/tabs.html:55
msgid "Attachments"
msgstr ""
#: part/views.py:196 #: part/views.py:196
#, python-brace-format #, python-brace-format
msgid "Set category for {n} parts" msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch" msgid "Batch"
msgstr "" msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113 #: stock/templates/stock/item.html:113
msgid "Customer" msgid "Customer"
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: 2019-11-18 22:58+0000\n" "POT-Creation-Date: 2019-11-18 23:10+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"
@ -104,6 +104,7 @@ msgstr ""
#: InvenTree/status_codes.py:83 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:83 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:116 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "" msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:18 #: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32 #: part/templates/part/detail.html:33
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order" msgid "On Order"
msgstr "" msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template" msgid "Part cannot be a variant of another part if it is already a template"
msgstr "" msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16 #: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name" msgid "Part name"
msgstr "" msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description" msgid "Category Description"
msgstr "" msgstr ""
#: part/templates/part/category.html:46 part/templates/part/detail.html:63 #: part/templates/part/category.html:46 part/templates/part/detail.html:64
msgid "Default Location" msgid "Default Location"
msgstr "" msgstr ""
#: part/templates/part/category.html:52 part/templates/part/detail.html:43 #: part/templates/part/category.html:52 part/templates/part/detail.html:44
msgid "Keywords" msgid "Keywords"
msgstr "" msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)" msgid "Parts (Including subcategories)"
msgstr "" msgstr ""
#: part/templates/part/category.html:66 part/templates/part/detail.html:8 #: part/templates/part/category.html:66 part/templates/part/detail.html:9
msgid "Part Details" msgid "Part Details"
msgstr "" msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts" msgid "Parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:21 #: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN" msgid "IPN"
msgstr "" msgstr ""
#: part/templates/part/detail.html:27 #: part/templates/part/detail.html:28
msgid "Revision" msgid "Revision"
msgstr "" msgstr ""
#: part/templates/part/detail.html:37 #: part/templates/part/detail.html:38
msgid "Variant Of" msgid "Variant Of"
msgstr "" msgstr ""
#: part/templates/part/detail.html:49 stock/templates/stock/item.html:119 #: part/templates/part/detail.html:50 part/templates/part/part_base.html:91
#: stock/templates/stock/item.html:119
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: part/templates/part/detail.html:54 #: part/templates/part/detail.html:55
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: part/templates/part/detail.html:69 #: part/templates/part/detail.html:70
msgid "Default Supplier" msgid "Default Supplier"
msgstr "" msgstr ""
#: part/templates/part/detail.html:76 #: part/templates/part/detail.html:77
msgid "Units" msgid "Units"
msgstr "" msgstr ""
#: part/templates/part/detail.html:81 #: part/templates/part/detail.html:82
msgid "Minimum Stock" msgid "Minimum Stock"
msgstr "" msgstr ""
#: part/templates/part/detail.html:90 #: part/templates/part/detail.html:91
msgid "Virtual" msgid "Virtual"
msgstr "" msgstr ""
#: part/templates/part/detail.html:93 #: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)" msgid "Part is virtual (not a physical part)"
msgstr "" msgstr ""
#: part/templates/part/detail.html:95 #: part/templates/part/detail.html:96
msgid "Part is not a virtual part" msgid "Part is not a virtual part"
msgstr "" msgstr ""
#: part/templates/part/detail.html:99 #: part/templates/part/detail.html:100
msgid "Assembly" msgid "Assembly"
msgstr "" msgstr ""
#: part/templates/part/detail.html:102 #: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts" msgid "Part can be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:104 #: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts" msgid "Part cannot be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:108 #: part/templates/part/detail.html:109
msgid "Component" msgid "Component"
msgstr "" msgstr ""
#: part/templates/part/detail.html:111 #: part/templates/part/detail.html:112
msgid "Part can be used in assemblies" msgid "Part can be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:113 #: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies" msgid "Part cannot be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:117 #: part/templates/part/detail.html:118
msgid "Trackable" msgid "Trackable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:120 #: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number" msgid "Part stock is tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:122 #: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number" msgid "Part stock is not tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:126 #: part/templates/part/detail.html:127
msgid "Purchaseable" msgid "Purchaseable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:129 part/templates/part/detail.html:131 #: part/templates/part/detail.html:130 part/templates/part/detail.html:132
msgid "Part can be purchased from external suppliers" msgid "Part can be purchased from external suppliers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:136 #: part/templates/part/detail.html:137
msgid "Sellable" msgid "Sellable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:139 #: part/templates/part/detail.html:140
msgid "Part can be sold to customers" msgid "Part can be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:141 #: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:151 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:11
msgid "This part is not active"
msgstr ""
#: part/templates/part/part_base.html:47
msgid "Star this part"
msgstr ""
#: part/templates/part/part_base.html:53
msgid "Show pricing information"
msgstr ""
#: part/templates/part/part_base.html:105
msgid "Available Stock"
msgstr ""
#: part/templates/part/part_base.html:110
msgid "In Stock"
msgstr ""
#: part/templates/part/part_base.html:131
msgid "Build Status"
msgstr ""
#: part/templates/part/part_base.html:135
msgid "Can Build"
msgstr ""
#: part/templates/part/part_base.html:140
msgid "Underway"
msgstr ""
#: part/templates/part/tabs.html:6
msgid "Details"
msgstr ""
#: part/templates/part/tabs.html:9
msgid "Parameters"
msgstr ""
#: part/templates/part/tabs.html:13
msgid "Variants"
msgstr ""
#: part/templates/part/tabs.html:17
msgid "Stock"
msgstr ""
#: part/templates/part/tabs.html:26
msgid "BOM"
msgstr ""
#: part/templates/part/tabs.html:28 stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: part/templates/part/tabs.html:32
msgid "Used In"
msgstr ""
#: part/templates/part/tabs.html:37
msgid "Suppliers"
msgstr ""
#: part/templates/part/tabs.html:43
msgid "Purchase Orders"
msgstr ""
#: part/templates/part/tabs.html:48
msgid "Tracking"
msgstr ""
#: part/templates/part/tabs.html:55
msgid "Attachments"
msgstr ""
#: part/views.py:196 #: part/views.py:196
#, python-brace-format #, python-brace-format
msgid "Set category for {n} parts" msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch" msgid "Batch"
msgstr "" msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113 #: stock/templates/stock/item.html:113
msgid "Customer" msgid "Customer"
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: 2019-11-18 22:58+0000\n" "POT-Creation-Date: 2019-11-18 23:10+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"
@ -104,6 +104,7 @@ msgstr ""
#: InvenTree/status_codes.py:83 build/templates/build/allocate_edit.html:28 #: InvenTree/status_codes.py:83 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:116 part/templates/part/tabs.html:21
msgid "Allocated" msgid "Allocated"
msgstr "" msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:18 #: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32 #: part/templates/part/detail.html:33
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: build/templates/build/allocate_view.html:22 #: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order" msgid "On Order"
msgstr "" msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template" msgid "Part cannot be a variant of another part if it is already a template"
msgstr "" msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16 #: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name" msgid "Part name"
msgstr "" msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description" msgid "Category Description"
msgstr "" msgstr ""
#: part/templates/part/category.html:46 part/templates/part/detail.html:63 #: part/templates/part/category.html:46 part/templates/part/detail.html:64
msgid "Default Location" msgid "Default Location"
msgstr "" msgstr ""
#: part/templates/part/category.html:52 part/templates/part/detail.html:43 #: part/templates/part/category.html:52 part/templates/part/detail.html:44
msgid "Keywords" msgid "Keywords"
msgstr "" msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)" msgid "Parts (Including subcategories)"
msgstr "" msgstr ""
#: part/templates/part/category.html:66 part/templates/part/detail.html:8 #: part/templates/part/category.html:66 part/templates/part/detail.html:9
msgid "Part Details" msgid "Part Details"
msgstr "" msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts" msgid "Parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:21 #: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN" msgid "IPN"
msgstr "" msgstr ""
#: part/templates/part/detail.html:27 #: part/templates/part/detail.html:28
msgid "Revision" msgid "Revision"
msgstr "" msgstr ""
#: part/templates/part/detail.html:37 #: part/templates/part/detail.html:38
msgid "Variant Of" msgid "Variant Of"
msgstr "" msgstr ""
#: part/templates/part/detail.html:49 stock/templates/stock/item.html:119 #: part/templates/part/detail.html:50 part/templates/part/part_base.html:91
#: stock/templates/stock/item.html:119
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: part/templates/part/detail.html:54 #: part/templates/part/detail.html:55
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: part/templates/part/detail.html:69 #: part/templates/part/detail.html:70
msgid "Default Supplier" msgid "Default Supplier"
msgstr "" msgstr ""
#: part/templates/part/detail.html:76 #: part/templates/part/detail.html:77
msgid "Units" msgid "Units"
msgstr "" msgstr ""
#: part/templates/part/detail.html:81 #: part/templates/part/detail.html:82
msgid "Minimum Stock" msgid "Minimum Stock"
msgstr "" msgstr ""
#: part/templates/part/detail.html:90 #: part/templates/part/detail.html:91
msgid "Virtual" msgid "Virtual"
msgstr "" msgstr ""
#: part/templates/part/detail.html:93 #: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)" msgid "Part is virtual (not a physical part)"
msgstr "" msgstr ""
#: part/templates/part/detail.html:95 #: part/templates/part/detail.html:96
msgid "Part is not a virtual part" msgid "Part is not a virtual part"
msgstr "" msgstr ""
#: part/templates/part/detail.html:99 #: part/templates/part/detail.html:100
msgid "Assembly" msgid "Assembly"
msgstr "" msgstr ""
#: part/templates/part/detail.html:102 #: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts" msgid "Part can be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:104 #: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts" msgid "Part cannot be assembled from other parts"
msgstr "" msgstr ""
#: part/templates/part/detail.html:108 #: part/templates/part/detail.html:109
msgid "Component" msgid "Component"
msgstr "" msgstr ""
#: part/templates/part/detail.html:111 #: part/templates/part/detail.html:112
msgid "Part can be used in assemblies" msgid "Part can be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:113 #: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies" msgid "Part cannot be used in assemblies"
msgstr "" msgstr ""
#: part/templates/part/detail.html:117 #: part/templates/part/detail.html:118
msgid "Trackable" msgid "Trackable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:120 #: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number" msgid "Part stock is tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:122 #: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number" msgid "Part stock is not tracked by serial number"
msgstr "" msgstr ""
#: part/templates/part/detail.html:126 #: part/templates/part/detail.html:127
msgid "Purchaseable" msgid "Purchaseable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:129 part/templates/part/detail.html:131 #: part/templates/part/detail.html:130 part/templates/part/detail.html:132
msgid "Part can be purchased from external suppliers" msgid "Part can be purchased from external suppliers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:136 #: part/templates/part/detail.html:137
msgid "Sellable" msgid "Sellable"
msgstr "" msgstr ""
#: part/templates/part/detail.html:139 #: part/templates/part/detail.html:140
msgid "Part can be sold to customers" msgid "Part can be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:141 #: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/detail.html:151 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
#: part/templates/part/part_base.html:11
msgid "This part is not active"
msgstr ""
#: part/templates/part/part_base.html:47
msgid "Star this part"
msgstr ""
#: part/templates/part/part_base.html:53
msgid "Show pricing information"
msgstr ""
#: part/templates/part/part_base.html:105
msgid "Available Stock"
msgstr ""
#: part/templates/part/part_base.html:110
msgid "In Stock"
msgstr ""
#: part/templates/part/part_base.html:131
msgid "Build Status"
msgstr ""
#: part/templates/part/part_base.html:135
msgid "Can Build"
msgstr ""
#: part/templates/part/part_base.html:140
msgid "Underway"
msgstr ""
#: part/templates/part/tabs.html:6
msgid "Details"
msgstr ""
#: part/templates/part/tabs.html:9
msgid "Parameters"
msgstr ""
#: part/templates/part/tabs.html:13
msgid "Variants"
msgstr ""
#: part/templates/part/tabs.html:17
msgid "Stock"
msgstr ""
#: part/templates/part/tabs.html:26
msgid "BOM"
msgstr ""
#: part/templates/part/tabs.html:28 stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: part/templates/part/tabs.html:32
msgid "Used In"
msgstr ""
#: part/templates/part/tabs.html:37
msgid "Suppliers"
msgstr ""
#: part/templates/part/tabs.html:43
msgid "Purchase Orders"
msgstr ""
#: part/templates/part/tabs.html:48
msgid "Tracking"
msgstr ""
#: part/templates/part/tabs.html:55
msgid "Attachments"
msgstr ""
#: part/views.py:196 #: part/views.py:196
#, python-brace-format #, python-brace-format
msgid "Set category for {n} parts" msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch" msgid "Batch"
msgstr "" msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113 #: stock/templates/stock/item.html:113
msgid "Customer" msgid "Customer"
msgstr "" msgstr ""

View File

@ -1,6 +1,7 @@
{% extends "part/part_base.html" %} {% extends "part/part_base.html" %}
{% load static %} {% load static %}
{% load i18n %} {% load i18n %}
{% block details %} {% block details %}
{% include 'part/tabs.html' with tab='detail' %} {% include 'part/tabs.html' with tab='detail' %}

View File

@ -1,12 +1,14 @@
{% extends "part/part_app_base.html" %} {% extends "part/part_app_base.html" %}
{% load static %} {% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block content %} {% block content %}
{% if part.active == False %} {% if part.active == False %}
<div class='alert alert-danger alert-block'> <div class='alert alert-danger alert-block'>
This part is not active: {% trans "This part is not active" %}"
</div> </div>
{% endif %} {% endif %}
{% if part.is_template %} {% if part.is_template %}
@ -42,13 +44,13 @@
<p> <p>
<div class='btn-row'> <div class='btn-row'>
<div class='btn-group'> <div class='btn-group'>
<button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'> <button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='{% trans "Star this part" %}'>
<span id='part-star-icon' class='starred-part glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/> <span id='part-star-icon' class='starred-part glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/>
</button> </button>
{% if part.is_template == False %} {% if part.is_template == False %}
{% include "qr_button.html" %} {% include "qr_button.html" %}
{% if part.active %} {% if part.active %}
<button type='button' class='btn btn-default btn-glyph' id='price-button' title='Show pricing information'> <button type='button' class='btn btn-default btn-glyph' id='price-button' title='{% trans "Show pricing information" %}'>
<span id='part-price-icon' class='part-price glyphicon glyphicon-usd'/> <span id='part-price-icon' class='part-price glyphicon glyphicon-usd'/>
</button> </button>
{% if not part.virtual %} {% if not part.virtual %}
@ -80,13 +82,13 @@
<table class='table table-condensed'> <table class='table table-condensed'>
{% if part.IPN %} {% if part.IPN %}
<tr> <tr>
<td>IPN</td> <td>{% trans "IPN" %}</td>
<td>{{ part.IPN }}</td> <td>{{ part.IPN }}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if part.URL %} {% if part.URL %}
<tr> <tr>
<td>URL</td> <td>{% trans "URL" %}</td>
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td> <td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
</tr> </tr>
{% endif %} {% endif %}
@ -100,25 +102,25 @@
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td> <td>
<h4>Available Stock</h4> <h4>{% trans "Available Stock" %}</h4>
</td> </td>
<td><h4>{{ part.available_stock }} {{ part.units }}</h4></td> <td><h4>{% decimal part.available_stock %} {{ part.units }}</h4></td>
</tr> </tr>
<tr> <tr>
<td>In Stock</td> <td>{% trans "In Stock" %}</td>
<td>{{ part.total_stock }}</td> <td>{% decimal part.total_stock %}</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>Allocated</td> <td>{% trans "Allocated" %}</td>
<td>{{ 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>On Order</td> <td>{% trans "On Order" %}</td>
<td>{{ part.on_order }}</td> <td>{% decimal part.on_order %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -126,17 +128,17 @@
{% if part.assembly %} {% if part.assembly %}
<tr> <tr>
<td colspan='2'> <td colspan='2'>
<b>Build Status</b> <b>{% trans "Build Status" %}</b>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Can Build</td> <td>{% trans "Can Build" %}</td>
<td>{{ 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>Underway</td> <td>{% trans "Underway" %}</td>
<td>{{ part.quantity_being_built }}</td> <td>{% decimal part.quantity_being_built %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -1,54 +1,57 @@
{% load i18n %}
{% load inventree_extras %}
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li{% ifequal tab 'detail' %} class="active"{% endifequal %}> <li{% ifequal tab 'detail' %} class="active"{% endifequal %}>
<a href="{% url 'part-detail' part.id %}">Details</a> <a href="{% url 'part-detail' part.id %}">{% trans "Details" %}</a>
</li> </li>
<li{% ifequal tab 'params' %} class='active'{% endifequal %}> <li{% ifequal tab 'params' %} class='active'{% endifequal %}>
<a href="{% url 'part-params' part.id %}">Parameters <span class='badge'>{{ part.parameters.count }}</span></a> <a href="{% url 'part-params' part.id %}">{% trans "Parameters" %} <span class='badge'>{{ part.parameters.count }}</span></a>
</li> </li>
{% if part.is_template %} {% if part.is_template %}
<li{% ifequal tab 'variants' %} class='active'{% endifequal %}> <li{% ifequal tab 'variants' %} class='active'{% endifequal %}>
<a href="{% url 'part-variants' part.id %}">Variants <span class='badge'>{{ part.variants.count }}</span></span></a> <a href="{% url 'part-variants' part.id %}">{% trans "Variants" %} <span class='badge'>{{ part.variants.count }}</span></span></a>
</li> </li>
{% endif %} {% endif %}
<li{% ifequal tab 'stock' %} class="active"{% endifequal %}> <li{% ifequal tab 'stock' %} class="active"{% endifequal %}>
<a href="{% url 'part-stock' part.id %}">Stock <span class="badge">{{ part.total_stock }}</span></a> <a href="{% url 'part-stock' part.id %}">{% trans "Stock" %} <span class="badge">{% decimal part.total_stock %}</span></a>
</li> </li>
{% if part.component or part.used_in_count > 0 %} {% if part.component or part.used_in_count > 0 %}
<li{% ifequal tab 'allocation' %} class="active"{% endifequal %}> <li{% ifequal tab 'allocation' %} class="active"{% endifequal %}>
<a href="{% url 'part-allocation' part.id %}">Allocated <span class="badge">{{ part.allocation_count }}</span></a> <a href="{% url 'part-allocation' part.id %}">{% trans "Allocated" %} <span class="badge">{% decimal part.allocation_count %}</span></a>
</li> </li>
{% endif %} {% endif %}
{% if part.assembly %} {% if part.assembly %}
<li{% ifequal tab 'bom' %} class="active"{% endifequal %}> <li{% ifequal tab 'bom' %} class="active"{% endifequal %}>
<a href="{% url 'part-bom' part.id %}">BOM<span class="badge{% if part.is_bom_valid == False %} badge-alert{% endif %}">{{ part.bom_count }}</span></a></li> <a href="{% url 'part-bom' part.id %}">{% trans "BOM" %}<span class="badge{% if part.is_bom_valid == False %} badge-alert{% endif %}">{{ part.bom_count }}</span></a></li>
<li{% ifequal tab 'build' %} class="active"{% endifequal %}> <li{% ifequal tab 'build' %} class="active"{% endifequal %}>
<a href="{% url 'part-build' part.id %}">Build<span class='badge'>{{ part.active_builds|length }}</span></a></li> <a href="{% url 'part-build' part.id %}">{% trans "Build" %}<span class='badge'>{{ part.active_builds|length }}</span></a></li>
{% endif %} {% endif %}
{% if part.component or part.used_in_count > 0 %} {% if part.component or part.used_in_count > 0 %}
<li{% ifequal tab 'used' %} class="active"{% endifequal %}> <li{% ifequal tab 'used' %} class="active"{% endifequal %}>
<a href="{% url 'part-used-in' part.id %}">Used In{% if part.used_in_count > 0 %}<span class="badge">{{ part.used_in_count }}</span>{% endif %}</a></li> <a href="{% url 'part-used-in' part.id %}">{% trans "Used In" %} {% if part.used_in_count > 0 %}<span class="badge">{{ part.used_in_count }}</span>{% endif %}</a></li>
{% endif %} {% endif %}
{% if part.purchaseable %} {% if part.purchaseable %}
{% if part.is_template == False %} {% if part.is_template == False %}
<li{% ifequal tab 'suppliers' %} class="active"{% endifequal %}> <li{% ifequal tab 'suppliers' %} class="active"{% endifequal %}>
<a href="{% url 'part-suppliers' part.id %}">Suppliers <a href="{% url 'part-suppliers' part.id %}">{% trans "Suppliers" %}
<span class="badge">{{ part.supplier_count }}</span> <span class="badge">{{ part.supplier_count }}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li{% ifequal tab 'orders' %} class='active'{% endifequal %}> <li{% ifequal tab 'orders' %} class='active'{% endifequal %}>
<a href="{% url 'part-orders' part.id %}">Purchase Orders <span class='badge'>{{ part.purchase_orders|length }}</span></a> <a href="{% url 'part-orders' part.id %}">{% trans "Purchase Orders" %} <span class='badge'>{{ part.purchase_orders|length }}</span></a>
</li> </li>
{% endif %} {% endif %}
{% if part.trackable and 0 %} {% if part.trackable and 0 %}
<li{% ifequal tab 'track' %} class="active"{% endifequal %}> <li{% ifequal tab 'track' %} class="active"{% endifequal %}>
<a href="{% url 'part-track' part.id %}">Tracking <a href="{% url 'part-track' part.id %}">{% trans "Tracking" %}
{% if parts.serials.all|length > 0 %} {% if parts.serials.all|length > 0 %}
<span class="badge">{{ part.serials.all|length }}</span> <span class="badge">{{ part.serials.all|length }}</span>
{% endif %} {% endif %}
</a></li> </a></li>
{% endif %} {% endif %}
<li{% ifequal tab 'attachments' %} class="active"{% endifequal %}> <li{% ifequal tab 'attachments' %} class="active"{% endifequal %}>
<a href="{% url 'part-attachments' part.id %}">Attachments {% if part.attachment_count > 0 %}<span class="badge">{{ part.attachment_count }}</span>{% endif %}</a> <a href="{% url 'part-attachments' part.id %}">{% trans "Attachments" %} {% if part.attachment_count > 0 %}<span class="badge">{{ part.attachment_count }}</span>{% endif %}</a>
</li> </li>
</ul> </ul>

View File

@ -87,7 +87,7 @@
{% else %} {% else %}
<tr> <tr>
<td>{% trans "Quantity" %}</td> <td>{% trans "Quantity" %}</td>
<td>{% decimal item.quantity %}</td> <td>{% decimal item.quantity %} {% if item.part.units %}{{ item.part.units }}{% endif %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if item.batch %} {% if item.batch %}