From 16edcc4bd96079677982c4275c2b7c322cae8344 Mon Sep 17 00:00:00 2001
From: Oliver Walters <oliver.henry.walters@gmail.com>
Date: Sun, 5 May 2019 08:42:01 +1000
Subject: [PATCH] Add 'star' button to Part

---
 InvenTree/part/templates/part/part_base.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index fd7dbe7695..4ee5665be7 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -28,6 +28,7 @@
         <p>
             <div class='btn-group'>
                 <button type='button' class='btn btn-default btn-glyph' id='show-qr-code' title='Show QR code'><span class='glyphicon glyphicon-qrcode'></span></button>
+                <button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'><span id='part-star-icon' class='glyphicon glyphicon-star-empty'/></button>
             </div>
         </p>
         <table class='table table-condensed'>
@@ -102,6 +103,9 @@
         );
     });
 
+    $('#toggle-starred').click(function() {
+    });
+
     $("#part-thumb").click(function() {
         launchModalForm(
                         "{% url 'part-image' part.id %}",