diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index 789a40b166..a99839d34a 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -23,7 +23,6 @@
{% else %}
Activate
{% endif %}
- Show QR Code
@@ -126,15 +125,6 @@
{% block js_ready %}
{{ block.super }}
-
- $("#show-qr-code").click(function() {
- launchModalForm(
- "{% url 'part-qr' part.id %}",
- {
- no_post: true,
- }
- );
- });
$("#duplicate-part").click(function() {
launchModalForm(
diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index de1ab2c6e0..fd7dbe7695 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -21,20 +21,31 @@
{% endif %}/>
-
{{ part.name }}{% if part.active == False %} - INACTIVE{% endif %}
+
+ {{ part.name }}
+
{{ part.description }}
- {% if part.IPN %}
-
- IPN |
- {{ part.IPN }} |
-
- {% endif %}
- {% if part.URL %}
-
- URL |
- {{ part.URL }} |
-
- {% endif %}
+
+
+
+
+
+
+ {% if part.IPN %}
+
+ IPN |
+ {{ part.IPN }} |
+
+ {% endif %}
+ {% if part.URL %}
+
+ URL |
+ {{ part.URL }} |
+
+ {% endif %}
+
+
+
@@ -82,6 +93,15 @@
{% block js_ready %}
{{ block.super }}
+ $("#show-qr-code").click(function() {
+ launchModalForm(
+ "{% url 'part-qr' part.id %}",
+ {
+ no_post: true,
+ }
+ );
+ });
+
$("#part-thumb").click(function() {
launchModalForm(
"{% url 'part-image' part.id %}",
diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css
index 98a4e04de4..e2978f19b4 100644
--- a/InvenTree/static/css/inventree.css
+++ b/InvenTree/static/css/inventree.css
@@ -2,6 +2,17 @@
float: left;
}
+.glyphicon {
+ font-size: 20px;
+}
+
+.btn-glyph {
+ padding-left: 6px;
+ padding-right: 6px;
+ padding-top: 3px;
+ padding-bottom: 2px;
+}
+
.badge {
float: right;
background-color: #777;
diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html
index ca38ea29ef..87fff9fbb4 100644
--- a/InvenTree/stock/templates/stock/item.html
+++ b/InvenTree/stock/templates/stock/item.html
@@ -6,6 +6,11 @@
Stock Item Details
{{ item.quantity }} × {{ item.part.name }}
+
+
+
+
+
@@ -145,7 +147,7 @@
});
});
- $("#item-qr-code").click(function() {
+ $("#show-qr-code").click(function() {
launchModalForm("{% url 'stock-item-qr' item.id %}",
{
no_post: true,
diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html
index 20769669a2..8a8f0356fe 100644
--- a/InvenTree/stock/templates/stock/location.html
+++ b/InvenTree/stock/templates/stock/location.html
@@ -7,6 +7,11 @@
{% if location %}
{{ location.name }}
{{ location.description }}
+
+
+
+
+
{% else %}
Stock
All stock items
@@ -23,8 +28,6 @@
{% endif %}
@@ -101,7 +104,7 @@
return false;
});
- $('#location-qr-code').click(function() {
+ $('#show-qr-code').click(function() {
launchModalForm("{% url 'stock-location-qr' location.id %}",
{
no_post: true,