Add 'star' button to Part

This commit is contained in:
Oliver Walters 2019-05-05 08:42:01 +10:00
parent 8a6932e993
commit 16edcc4bd9

View File

@ -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 %}",