Visual tweaks

This commit is contained in:
Oliver Walters 2019-05-26 00:20:03 +10:00
parent 7881a67db4
commit 75b21bdd8f
3 changed files with 10 additions and 1 deletions

View File

@ -13,6 +13,12 @@
</div>
<hr>
{% if part.is_template %}
<div class='alert alert-info alert-block'>
Showing stock for all variants of <i>{{ part.full_name }}</i>
</div>
{% endif %}
{% include "stock_table.html" %}
{% endblock %}

View File

@ -39,7 +39,8 @@
<img class='hover-img-large' src="{{ variant.image.url }}">
{% endif %}
</div>
{{ variant.full_name }}</td>
<a href="{% url 'part-detail' variant.id %}">{{ variant.full_name }}</a>
</td>
<td>{{ variant.description }}</td>
<td>{{ variant.total_stock }}</td>
</tr>

View File

@ -1,6 +1,8 @@
<div id='button-toolbar'>
<div class='button-toolbar container-fluid' style='float: right;'>
{% if part.is_template == False %}
<button class="btn btn-success" id='item-create'>New Stock Item</button>
{% endif %}
<div class="dropdown" style='float: right;'>
<button id='stock-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options<span class="caret"></span></button>
<ul class="dropdown-menu">