2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

More work

- Consolidated "in_stock" filter to single code location
- Improve 'limit_choices_to' for BuildItem and SalesOrderAllocation
- Various template improvements etc
This commit is contained in:
Oliver Walters
2020-04-26 16:38:29 +10:00
parent 4147163418
commit e768ada83b
20 changed files with 362 additions and 79 deletions

View File

@@ -6,11 +6,6 @@
{% block content %}
{% if part.active == False %}
<div class='alert alert-danger alert-block'>
{% trans "This part is not active" %}
</div>
{% endif %}
{% if part.is_template %}
<div class='alert alert-info alert-block'>
{% trans "This part is a template part." %}
@@ -28,9 +23,14 @@
<div class="col-sm-6">
{% include "part/part_thumb.html" %}
<div class="media-body">
<h4>
<h3>
{{ part.full_name }}
</h4>
{% if not part.active %}
<div class='label label-large label-large-red'>
{% trans 'Inactive' %}
</div>
{% endif %}
</h3>
<p><i>{{ part.description }}</i></p>
<p>
<div class='btn-row'>