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 ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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
#: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:116 part/templates/part/tabs.html:21
msgid "Allocated"
msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr ""
#: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32
#: part/templates/part/detail.html:33
msgid "Description"
msgstr ""
#: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order"
msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template"
msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16
#: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name"
msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description"
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"
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"
msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)"
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"
msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts"
msgstr ""
#: part/templates/part/detail.html:21
#: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN"
msgstr ""
#: part/templates/part/detail.html:27
#: part/templates/part/detail.html:28
msgid "Revision"
msgstr ""
#: part/templates/part/detail.html:37
#: part/templates/part/detail.html:38
msgid "Variant Of"
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"
msgstr ""
#: part/templates/part/detail.html:54
#: part/templates/part/detail.html:55
msgid "Category"
msgstr ""
#: part/templates/part/detail.html:69
#: part/templates/part/detail.html:70
msgid "Default Supplier"
msgstr ""
#: part/templates/part/detail.html:76
#: part/templates/part/detail.html:77
msgid "Units"
msgstr ""
#: part/templates/part/detail.html:81
#: part/templates/part/detail.html:82
msgid "Minimum Stock"
msgstr ""
#: part/templates/part/detail.html:90
#: part/templates/part/detail.html:91
msgid "Virtual"
msgstr ""
#: part/templates/part/detail.html:93
#: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)"
msgstr ""
#: part/templates/part/detail.html:95
#: part/templates/part/detail.html:96
msgid "Part is not a virtual part"
msgstr ""
#: part/templates/part/detail.html:99
#: part/templates/part/detail.html:100
msgid "Assembly"
msgstr ""
#: part/templates/part/detail.html:102
#: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:104
#: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:108
#: part/templates/part/detail.html:109
msgid "Component"
msgstr ""
#: part/templates/part/detail.html:111
#: part/templates/part/detail.html:112
msgid "Part can be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:113
#: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:117
#: part/templates/part/detail.html:118
msgid "Trackable"
msgstr ""
#: part/templates/part/detail.html:120
#: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:122
#: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:126
#: part/templates/part/detail.html:127
msgid "Purchaseable"
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"
msgstr ""
#: part/templates/part/detail.html:136
#: part/templates/part/detail.html:137
msgid "Sellable"
msgstr ""
#: part/templates/part/detail.html:139
#: part/templates/part/detail.html:140
msgid "Part can be sold to customers"
msgstr ""
#: part/templates/part/detail.html:141
#: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers"
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"
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
#, python-brace-format
msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch"
msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113
msgid "Customer"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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
#: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:116 part/templates/part/tabs.html:21
msgid "Allocated"
msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr ""
#: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32
#: part/templates/part/detail.html:33
msgid "Description"
msgstr ""
#: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order"
msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template"
msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16
#: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name"
msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description"
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"
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"
msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)"
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"
msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts"
msgstr ""
#: part/templates/part/detail.html:21
#: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN"
msgstr ""
#: part/templates/part/detail.html:27
#: part/templates/part/detail.html:28
msgid "Revision"
msgstr ""
#: part/templates/part/detail.html:37
#: part/templates/part/detail.html:38
msgid "Variant Of"
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"
msgstr ""
#: part/templates/part/detail.html:54
#: part/templates/part/detail.html:55
msgid "Category"
msgstr ""
#: part/templates/part/detail.html:69
#: part/templates/part/detail.html:70
msgid "Default Supplier"
msgstr ""
#: part/templates/part/detail.html:76
#: part/templates/part/detail.html:77
msgid "Units"
msgstr ""
#: part/templates/part/detail.html:81
#: part/templates/part/detail.html:82
msgid "Minimum Stock"
msgstr ""
#: part/templates/part/detail.html:90
#: part/templates/part/detail.html:91
msgid "Virtual"
msgstr ""
#: part/templates/part/detail.html:93
#: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)"
msgstr ""
#: part/templates/part/detail.html:95
#: part/templates/part/detail.html:96
msgid "Part is not a virtual part"
msgstr ""
#: part/templates/part/detail.html:99
#: part/templates/part/detail.html:100
msgid "Assembly"
msgstr ""
#: part/templates/part/detail.html:102
#: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:104
#: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:108
#: part/templates/part/detail.html:109
msgid "Component"
msgstr ""
#: part/templates/part/detail.html:111
#: part/templates/part/detail.html:112
msgid "Part can be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:113
#: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:117
#: part/templates/part/detail.html:118
msgid "Trackable"
msgstr ""
#: part/templates/part/detail.html:120
#: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:122
#: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:126
#: part/templates/part/detail.html:127
msgid "Purchaseable"
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"
msgstr ""
#: part/templates/part/detail.html:136
#: part/templates/part/detail.html:137
msgid "Sellable"
msgstr ""
#: part/templates/part/detail.html:139
#: part/templates/part/detail.html:140
msgid "Part can be sold to customers"
msgstr ""
#: part/templates/part/detail.html:141
#: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers"
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"
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
#, python-brace-format
msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch"
msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113
msgid "Customer"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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
#: build/templates/build/allocate_view.html:21
#: part/templates/part/part_base.html:116 part/templates/part/tabs.html:21
msgid "Allocated"
msgstr ""
@ -190,11 +191,12 @@ msgid "Order Parts"
msgstr ""
#: build/templates/build/allocate_view.html:18
#: part/templates/part/detail.html:32
#: part/templates/part/detail.html:33
msgid "Description"
msgstr ""
#: build/templates/build/allocate_view.html:22
#: part/templates/part/part_base.html:122
msgid "On Order"
msgstr ""
@ -393,7 +395,7 @@ msgstr ""
msgid "Part cannot be a variant of another part if it is already a template"
msgstr ""
#: part/models.py:327 part/templates/part/detail.html:16
#: part/models.py:327 part/templates/part/detail.html:17
msgid "Part name"
msgstr ""
@ -566,11 +568,11 @@ msgstr ""
msgid "Category Description"
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"
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"
msgstr ""
@ -582,7 +584,7 @@ msgstr ""
msgid "Parts (Including subcategories)"
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"
msgstr ""
@ -590,110 +592,187 @@ msgstr ""
msgid "Parts"
msgstr ""
#: part/templates/part/detail.html:21
#: part/templates/part/detail.html:22 part/templates/part/part_base.html:85
msgid "IPN"
msgstr ""
#: part/templates/part/detail.html:27
#: part/templates/part/detail.html:28
msgid "Revision"
msgstr ""
#: part/templates/part/detail.html:37
#: part/templates/part/detail.html:38
msgid "Variant Of"
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"
msgstr ""
#: part/templates/part/detail.html:54
#: part/templates/part/detail.html:55
msgid "Category"
msgstr ""
#: part/templates/part/detail.html:69
#: part/templates/part/detail.html:70
msgid "Default Supplier"
msgstr ""
#: part/templates/part/detail.html:76
#: part/templates/part/detail.html:77
msgid "Units"
msgstr ""
#: part/templates/part/detail.html:81
#: part/templates/part/detail.html:82
msgid "Minimum Stock"
msgstr ""
#: part/templates/part/detail.html:90
#: part/templates/part/detail.html:91
msgid "Virtual"
msgstr ""
#: part/templates/part/detail.html:93
#: part/templates/part/detail.html:94
msgid "Part is virtual (not a physical part)"
msgstr ""
#: part/templates/part/detail.html:95
#: part/templates/part/detail.html:96
msgid "Part is not a virtual part"
msgstr ""
#: part/templates/part/detail.html:99
#: part/templates/part/detail.html:100
msgid "Assembly"
msgstr ""
#: part/templates/part/detail.html:102
#: part/templates/part/detail.html:103
msgid "Part can be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:104
#: part/templates/part/detail.html:105
msgid "Part cannot be assembled from other parts"
msgstr ""
#: part/templates/part/detail.html:108
#: part/templates/part/detail.html:109
msgid "Component"
msgstr ""
#: part/templates/part/detail.html:111
#: part/templates/part/detail.html:112
msgid "Part can be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:113
#: part/templates/part/detail.html:114
msgid "Part cannot be used in assemblies"
msgstr ""
#: part/templates/part/detail.html:117
#: part/templates/part/detail.html:118
msgid "Trackable"
msgstr ""
#: part/templates/part/detail.html:120
#: part/templates/part/detail.html:121
msgid "Part stock is tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:122
#: part/templates/part/detail.html:123
msgid "Part stock is not tracked by serial number"
msgstr ""
#: part/templates/part/detail.html:126
#: part/templates/part/detail.html:127
msgid "Purchaseable"
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"
msgstr ""
#: part/templates/part/detail.html:136
#: part/templates/part/detail.html:137
msgid "Sellable"
msgstr ""
#: part/templates/part/detail.html:139
#: part/templates/part/detail.html:140
msgid "Part can be sold to customers"
msgstr ""
#: part/templates/part/detail.html:141
#: part/templates/part/detail.html:142
msgid "Part cannot be sold to customers"
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"
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
#, python-brace-format
msgid "Set category for {n} parts"
@ -901,10 +980,6 @@ msgstr ""
msgid "Batch"
msgstr ""
#: stock/templates/stock/item.html:101
msgid "Build"
msgstr ""
#: stock/templates/stock/item.html:113
msgid "Customer"
msgstr ""

View File

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

View File

@ -1,12 +1,14 @@
{% extends "part/part_app_base.html" %}
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block content %}
{% if part.active == False %}
<div class='alert alert-danger alert-block'>
This part is not active:
{% trans "This part is not active" %}"
</div>
{% endif %}
{% if part.is_template %}
@ -42,13 +44,13 @@
<p>
<div class='btn-row'>
<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 %}'/>
</button>
{% if part.is_template == False %}
{% include "qr_button.html" %}
{% 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'/>
</button>
{% if not part.virtual %}
@ -80,13 +82,13 @@
<table class='table table-condensed'>
{% if part.IPN %}
<tr>
<td>IPN</td>
<td>{% trans "IPN" %}</td>
<td>{{ part.IPN }}</td>
</tr>
{% endif %}
{% if part.URL %}
<tr>
<td>URL</td>
<td>{% trans "URL" %}</td>
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
</tr>
{% endif %}
@ -100,25 +102,25 @@
<table class="table table-striped">
<tr>
<td>
<h4>Available Stock</h4>
<h4>{% trans "Available Stock" %}</h4>
</td>
<td><h4>{{ part.available_stock }} {{ part.units }}</h4></td>
<td><h4>{% decimal part.available_stock %} {{ part.units }}</h4></td>
</tr>
<tr>
<td>In Stock</td>
<td>{{ part.total_stock }}</td>
<td>{% trans "In Stock" %}</td>
<td>{% decimal part.total_stock %}</td>
</tr>
{% if not part.is_template %}
{% if part.allocation_count > 0 %}
<tr>
<td>Allocated</td>
<td>{{ part.allocation_count }}</td>
<td>{% trans "Allocated" %}</td>
<td>{% decimal part.allocation_count %}</td>
</tr>
{% endif %}
{% if part.on_order > 0 %}
<tr>
<td>On Order</td>
<td>{{ part.on_order }}</td>
<td>{% trans "On Order" %}</td>
<td>{% decimal part.on_order %}</td>
</tr>
{% endif %}
{% endif %}
@ -126,17 +128,17 @@
{% if part.assembly %}
<tr>
<td colspan='2'>
<b>Build Status</b>
<b>{% trans "Build Status" %}</b>
</td>
</tr>
<tr>
<td>Can Build</td>
<td>{{ part.can_build }}</td>
<td>{% trans "Can Build" %}</td>
<td>{% decimal part.can_build %}</td>
</tr>
{% if part.quantity_being_built > 0 %}
<tr>
<td>Underway</td>
<td>{{ part.quantity_being_built }}</td>
<td>{% trans "Underway" %}</td>
<td>{% decimal part.quantity_being_built %}</td>
</tr>
{% endif %}
{% endif %}

View File

@ -1,54 +1,57 @@
{% load i18n %}
{% load inventree_extras %}
<ul class="nav nav-tabs">
<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{% 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>
{% if part.is_template %}
<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>
{% endif %}
<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>
{% if part.component or part.used_in_count > 0 %}
<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>
{% endif %}
{% if part.assembly %}
<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 %}>
<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 %}
{% if part.component or part.used_in_count > 0 %}
<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 %}
{% if part.purchaseable %}
{% if part.is_template == False %}
<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>
</a>
</li>
{% endif %}
<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>
{% endif %}
{% if part.trackable and 0 %}
<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 %}
<span class="badge">{{ part.serials.all|length }}</span>
{% endif %}
</a></li>
{% endif %}
<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>
</ul>

View File

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