2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-30 16:41:35 +00:00

Display templated parts as italic in the part list

This commit is contained in:
Oliver Walters
2019-05-26 00:29:17 +10:00
parent 6603d6e9ed
commit 21dd893c01
4 changed files with 18 additions and 0 deletions
InvenTree
part
static
script
inventree

@@ -93,6 +93,7 @@ class EditPartForm(HelperForm):
'name',
'IPN',
'variant',
'is_template',
'description',
'keywords',
'URL',

@@ -85,6 +85,8 @@ class PartSerializer(serializers.ModelSerializer):
'full_name',
'name',
'IPN',
'is_template',
'variant_of',
'variant',
'description',
'keywords',

@@ -47,10 +47,12 @@
<button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'>
<span id='part-star-icon' class='starred-part glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/>
</button>
{% if part.is_template == False %}
{% include "qr_button.html" %}
<button type='button' class='btn btn-default btn-glyph' id='price-button' title='Show pricing information'>
<span id='part-price-icon' class='part-price glyphicon glyphicon-usd'/>
</button>
{% endif %}
</div>
</p>
<table class='table table-condensed'>