2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

SourceItem only for SupplierPart, added logic to templates

This commit is contained in:
eeintech
2021-03-29 15:39:25 -04:00
parent e6dfb7da52
commit 50adb2ac61
14 changed files with 187 additions and 115 deletions

View File

@ -1,6 +1,7 @@
{% extends "part/part_base.html" %}
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block menubar %}
{% include 'part/navbar.html' with tab='manufacturers' %}
@ -11,6 +12,9 @@
{% endblock %}
{% block details %}
{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %}
{% if manufacturer_parts.value == "True" %}
<div id='button-toolbar'>
<div class='btn-group'>
<button class="btn btn-success" id='manufacturer-create'>
@ -27,6 +31,11 @@
<table class="table table-striped table-condensed" id='manufacturer-table' data-toolbar='#button-toolbar'>
</table>
{% else %}
<div class='alert alert-block alert-warning'>
{% trans "Manufactured parts are disabled. Admin users can enable them in the global settings." %}
</div>
{% endif %}
{% endblock %}