mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
BOM upload templates fixes
This commit is contained in:
parent
76572bf82f
commit
1eb8a9f310
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% block form_alert %}
|
{% block form_alert %}
|
||||||
{% if missing_columns and missing_columns|length > 0 %}
|
{% if missing_columns and missing_columns|length > 0 %}
|
||||||
<div class='alert alert-danger alert-block' role='alert'>
|
<div class='alert alert-danger alert-block' style='margin-top:12px;' role='alert'>
|
||||||
{% trans "Missing selections for the following required columns" %}:
|
{% trans "Missing selections for the following required columns" %}:
|
||||||
<br>
|
<br>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -3,23 +3,33 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load inventree_extras %}
|
{% load inventree_extras %}
|
||||||
|
|
||||||
{% block heading %}
|
{% block menubar %}
|
||||||
{% trans "Upload BOM File" %}
|
<ul class='list-group'>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<a href='#' id='part-menu-toggle'>
|
||||||
|
<span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item' title='{% trans "Return To BOM" %}'>
|
||||||
|
<a href='{% url "part-detail" part.id %}' id='select-upload-file' class='nav-toggle'>
|
||||||
|
<span class='fas fa-undo side-icon'></span>
|
||||||
|
{% trans "Return To BOM" %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
|
||||||
|
<div class='panel panel-default panel-inventree' id='panel-upload-file'>
|
||||||
|
<div class='panel-heading'>
|
||||||
|
{% block heading %}
|
||||||
<h4>{% trans "Upload Bill of Materials" %}</h4>
|
<h4>{% trans "Upload Bill of Materials" %}</h4>
|
||||||
|
{{ wizard.form.media }}
|
||||||
{% block form_alert %}
|
|
||||||
<div class='alert alert-info alert-block'>
|
|
||||||
<b>{% trans "Requirements for BOM upload" %}:</b>
|
|
||||||
<ul>
|
|
||||||
<li>{% trans "The BOM file must contain the required named columns as provided in the " %} <b><a href="/part/bom_template/">{% trans "BOM Upload Template" %}</a></b></li>
|
|
||||||
<li>{% trans "Each part must already exist in the database" %}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
<div class='panel-content'>
|
||||||
|
{% block details %}
|
||||||
|
|
||||||
<p>{% blocktrans with step=wizard.steps.step1 count=wizard.steps.count %}Step {{step}} of {{count}}{% endblocktrans %}
|
<p>{% blocktrans with step=wizard.steps.step1 count=wizard.steps.count %}Step {{step}} of {{count}}{% endblocktrans %}
|
||||||
{% if description %}- {{ description }}{% endif %}</p>
|
{% if description %}- {{ description }}{% endif %}</p>
|
||||||
@ -31,6 +41,16 @@
|
|||||||
{% block form_buttons_top %}
|
{% block form_buttons_top %}
|
||||||
{% endblock form_buttons_top %}
|
{% endblock form_buttons_top %}
|
||||||
|
|
||||||
|
{% block form_alert %}
|
||||||
|
<div class='alert alert-info alert-block'>
|
||||||
|
<b>{% trans "Requirements for BOM upload" %}:</b>
|
||||||
|
<ul>
|
||||||
|
<li>{% trans "The BOM file must contain the required named columns as provided in the " %} <b><a href="/part/bom_template/">{% trans "BOM Upload Template" %}</a></b></li>
|
||||||
|
<li>{% trans "Each part must already exist in the database" %}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<table class='table table-striped' style='margin-top: 12px; margin-bottom: 0px'>
|
<table class='table table-striped' style='margin-top: 12px; margin-bottom: 0px'>
|
||||||
{{ wizard.management_form }}
|
{{ wizard.management_form }}
|
||||||
{% block form_content %}
|
{% block form_content %}
|
||||||
@ -46,4 +66,11 @@
|
|||||||
</form>
|
</form>
|
||||||
{% endblock form_buttons_bottom %}
|
{% endblock form_buttons_bottom %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock details %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock page_content %}
|
||||||
|
|
||||||
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
|
{% endblock js_ready %}
|
||||||
|
Loading…
Reference in New Issue
Block a user