QR button code is now a template

This commit is contained in:
Oliver Walters 2019-05-05 10:56:59 +10:00
parent bbd164407f
commit d2d248c72e
4 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<p><i>{{ part.description }}</i></p>
<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>
{% include "qr_button.html" %}
<button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'>
<span id='part-star-icon' class='glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/>
</button>

View File

@ -8,7 +8,7 @@
<p><i>{{ item.quantity }} &times {{ item.part.name }}</i></p>
<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>
{% include "qr_button.html" %}
</div>
</p>
</div>

View File

@ -9,7 +9,7 @@
<p>{{ location.description }}</p>
<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>
{% include "qr_button.html" %}
</div>
</p>
{% else %}

View File

@ -0,0 +1 @@
<button type='button' class='btn btn-default btn-glyph' id='show-qr-code' title='Show QR code'><span class='glyphicon glyphicon-qrcode'></span></button>