diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 544952e830..e3191405d9 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -936,4 +936,15 @@ input[type="submit"] { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: unset; -} \ No newline at end of file +} + +.clip-btn { + font-size: 10px; + padding: 0px 6px; + color: var(--label-grey); + background: none; +} + +.clip-btn:hover { + background: var(--label-grey); +} diff --git a/InvenTree/InvenTree/static/script/clipboard.min.js b/InvenTree/InvenTree/static/script/clipboard.min.js new file mode 100644 index 0000000000..95f55d7b0c --- /dev/null +++ b/InvenTree/InvenTree/static/script/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.8 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={134:function(t,e,n){"use strict";n.d(e,{default:function(){return r}});var e=n(279),i=n.n(e),e=n(370),a=n.n(e),e=n(817),o=n.n(e);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n {% trans "Part name" %} - {{ part.name }} + {{ part.name }}{% include "clip.html"%} {% if part.IPN %} {% trans "IPN" %} - {{ part.IPN }} + {{ part.IPN }}{% include "clip.html"%} {% endif %} {% if part.revision %} {% trans "Revision" %} - {{ part.revision }} + {{ part.revision }}{% include "clip.html"%} {% endif %} {% if part.trackable %} @@ -42,7 +42,7 @@ {% trans "Latest Serial Number" %} {% if part.getLatestSerialNumber %} - {{ part.getLatestSerialNumber }} + {{ part.getLatestSerialNumber }}{% include "clip.html"%} {% else %} {% trans "No serial numbers recorded" %} {% endif %} @@ -52,7 +52,7 @@ {% trans "Description" %} - {{ part.description }} + {{ part.description }}{% include "clip.html"%} {% if part.variant_of %} @@ -96,7 +96,7 @@ {% trans "Default Supplier" %} - {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }} + {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}{% include "clip.html"%} {% endif %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 04fe2a7899..5133d57839 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -133,11 +133,14 @@ + + + diff --git a/InvenTree/templates/clip.html b/InvenTree/templates/clip.html new file mode 100644 index 0000000000..a56ece838c --- /dev/null +++ b/InvenTree/templates/clip.html @@ -0,0 +1,5 @@ +{% load i18n %} + + + + \ No newline at end of file