mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Replace all instances of data-toggle with data-bs-toggle
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
{% extends "two_column.html" %}
 | 
			
		||||
{% extends "page_base.html" %}
 | 
			
		||||
 | 
			
		||||
{% load static %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
@@ -9,130 +9,71 @@
 | 
			
		||||
{% inventree_title %} | {% trans "Build Order" %} - {{ build }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block pre_content %}
 | 
			
		||||
<div class='navigation'>
 | 
			
		||||
    <nav aria-label="breadcrumb">
 | 
			
		||||
      <ol class="breadcrumb">
 | 
			
		||||
        <li class='breadcrumb-item'><a href='{% url "build-index" %}'>{% trans "Build Orders" %}</a></li>
 | 
			
		||||
        <li class="breadcrumb-item active" aria-current="page"><a href='{% url "build-detail" build.id %}'>{{ build }}</a></li>
 | 
			
		||||
      </ol>
 | 
			
		||||
    </nav>
 | 
			
		||||
    </div>
 | 
			
		||||
{% block breadcrumbs %}
 | 
			
		||||
<li class='breadcrumb-item'><a href='{% url "build-index" %}'>{% trans "Build Orders" %}</a></li>
 | 
			
		||||
<li class="breadcrumb-item active" aria-current="page"><a href='{% url "build-detail" build.id %}'>{{ build }}</a></li>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block below_thumbnail %}
 | 
			
		||||
 | 
			
		||||
<div class='info-messages'>
 | 
			
		||||
    {% if build.sales_order %}
 | 
			
		||||
    <div class='alert alert-block alert-info'>
 | 
			
		||||
        {% object_link 'so-detail' build.sales_order.id build.sales_order as link %}
 | 
			
		||||
        {% blocktrans %}This Build Order is allocated to Sales Order {{link}}{% endblocktrans %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    {% if build.parent %}
 | 
			
		||||
    <div class='alert alert-block alert-info'>
 | 
			
		||||
        {% object_link 'build-detail' build.parent.id build.parent as link %}
 | 
			
		||||
        {% blocktrans %}This Build Order is a child of Build Order {{link}}{% endblocktrans %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    {% if build.active %}
 | 
			
		||||
    {% if build.can_complete %}
 | 
			
		||||
    <div class='alert alert-block alert-success'>
 | 
			
		||||
        {% trans "Build Order is ready to mark as completed" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if build.incomplete_count > 0 %}
 | 
			
		||||
    <div class='alert alert-block alert-danger'>
 | 
			
		||||
        {% trans "Build Order cannot be completed as outstanding outputs remain" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if build.completed < build.quantity %}
 | 
			
		||||
    <div class='alert alert-block alert-warning'>
 | 
			
		||||
        {% trans "Required build quantity has not yet been completed" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if not build.areUntrackedPartsFullyAllocated %}
 | 
			
		||||
    <div class='alert alert-block alert-warning'>
 | 
			
		||||
        {% trans "Stock has not been fully allocated to this Build Order" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block header_pre_content %}
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block header_post_content %}
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block thumbnail %}
 | 
			
		||||
<img class="part-thumb"
 | 
			
		||||
{% if build.part.image %}
 | 
			
		||||
src="{{ build.part.image.url }}"
 | 
			
		||||
{% else %}
 | 
			
		||||
src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
{% endif %}/>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block page_data %}
 | 
			
		||||
<h3>
 | 
			
		||||
    {% trans "Build Order" %} {{ build }}
 | 
			
		||||
{% block heading %}
 | 
			
		||||
<h4>
 | 
			
		||||
    {% trans "Build Order" %}
 | 
			
		||||
    {% if user.is_staff and roles.build.change %}
 | 
			
		||||
    <a  href="{% url 'admin:build_build_change' build.pk %}"><span title="{% trans 'Admin view' %}" class='fas fa-user-shield'></span></a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</h3>
 | 
			
		||||
<h3>
 | 
			
		||||
    {% build_status_label build.status large=True %}
 | 
			
		||||
    {% if build.is_overdue %}
 | 
			
		||||
    <span class='label label-large label-large-red'>{% trans "Overdue" %}</span>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</h3>
 | 
			
		||||
<hr>
 | 
			
		||||
<p>{{ build.title }}</p>
 | 
			
		||||
 | 
			
		||||
<div class='btn-group action-buttons' role='group'>
 | 
			
		||||
    <!-- Printing options -->
 | 
			
		||||
    <div class='btn-group'>
 | 
			
		||||
        <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
        </button>
 | 
			
		||||
        <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
            <li><a href='#' id='print-build-report'><span class='fas fa-file-pdf'></span> {% trans "Print build order report" %}</a></li>
 | 
			
		||||
        </ul>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- Build actions -->
 | 
			
		||||
    {% if roles.build.change %}
 | 
			
		||||
    <div class='btn-group'>
 | 
			
		||||
        <button id='build-options' title='{% trans "Build actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <span class='fas fa-tools'></span> <span class='caret'></span>
 | 
			
		||||
        </button>
 | 
			
		||||
        <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
            <li><a href='#' id='build-edit'><span class='fas fa-edit icon-green'></span> {% trans "Edit Build" %}</a></li>
 | 
			
		||||
            {% if build.is_active %}
 | 
			
		||||
            <li><a href='#' id='build-cancel'><span class='fas fa-times-circle icon-red'></span> {% trans "Cancel Build" %}</a></li>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            {% if build.status == BuildStatus.CANCELLED and roles.build.delete %}
 | 
			
		||||
            <li><a href='#' id='build-delete'><span class='fas fa-trash-alt'></span> {% trans "Delete Build" %}</a>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </ul>
 | 
			
		||||
    </div>
 | 
			
		||||
    {% if build.active %}
 | 
			
		||||
    <button id='build-complete' title='{% trans "Complete Build" %}' class='btn btn-success'>
 | 
			
		||||
        <span class='fas fa-check-circle'></span>
 | 
			
		||||
    </button>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
</h4>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block page_details %}
 | 
			
		||||
{% block details_left %}
 | 
			
		||||
 | 
			
		||||
<h4>{% trans "Build Details" %}</h4>
 | 
			
		||||
<div class='media-left'>
 | 
			
		||||
    <img class="part-thumb"
 | 
			
		||||
    {% if build.part.image %}
 | 
			
		||||
    src="{{ build.part.image.url }}"
 | 
			
		||||
    {% else %}
 | 
			
		||||
    src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
    {% endif %}/>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class='media-body'>
 | 
			
		||||
    <div class='btn-group' role='group'>
 | 
			
		||||
        <!-- Printing options -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
                <li><a class='dropdown-item' href='#' id='print-build-report'><span class='fas fa-file-pdf'></span> {% trans "Print build order report" %}</a></li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
        <!-- Build actions -->
 | 
			
		||||
        {% if roles.build.change %}
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='build-options' title='{% trans "Build actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-tools'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
                <li><a class='dropdown-item' href='#' id='build-edit'><span class='fas fa-edit icon-green'></span> {% trans "Edit Build" %}</a></li>
 | 
			
		||||
                {% if build.is_active %}
 | 
			
		||||
                <li><a class='dropdown-item' href='#' id='build-cancel'><span class='fas fa-times-circle icon-red'></span> {% trans "Cancel Build" %}</a></li>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                {% if build.status == BuildStatus.CANCELLED and roles.build.delete %}
 | 
			
		||||
                <li><a class='dropdown-item' href='#' id='build-delete'><span class='fas fa-trash-alt'></span> {% trans "Delete Build" %}</a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
        {% if build.active %}
 | 
			
		||||
        <button id='build-complete' title='{% trans "Complete Build" %}' class='btn btn-success'>
 | 
			
		||||
            <span class='fas fa-check-circle'></span>
 | 
			
		||||
        </button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block details_right %}
 | 
			
		||||
<table class='table table-striped table-condensed'>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><span class='fas fa-shapes'></span></td>
 | 
			
		||||
@@ -197,6 +138,57 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
    </tr>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</table>
 | 
			
		||||
<div class='info-messages'>
 | 
			
		||||
    {% if build.sales_order %}
 | 
			
		||||
    <div class='alert alert-block alert-info'>
 | 
			
		||||
        {% object_link 'so-detail' build.sales_order.id build.sales_order as link %}
 | 
			
		||||
        {% blocktrans %}This Build Order is allocated to Sales Order {{link}}{% endblocktrans %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    {% if build.parent %}
 | 
			
		||||
    <div class='alert alert-block alert-info'>
 | 
			
		||||
        {% object_link 'build-detail' build.parent.id build.parent as link %}
 | 
			
		||||
        {% blocktrans %}This Build Order is a child of Build Order {{link}}{% endblocktrans %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    {% if build.active %}
 | 
			
		||||
    {% if build.can_complete %}
 | 
			
		||||
    <div class='alert alert-block alert-success'>
 | 
			
		||||
        {% trans "Build Order is ready to mark as completed" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if build.incomplete_count > 0 %}
 | 
			
		||||
    <div class='alert alert-block alert-danger'>
 | 
			
		||||
        {% trans "Build Order cannot be completed as outstanding outputs remain" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if build.completed < build.quantity %}
 | 
			
		||||
    <div class='alert alert-block alert-warning'>
 | 
			
		||||
        {% trans "Required build quantity has not yet been completed" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if not build.areUntrackedPartsFullyAllocated %}
 | 
			
		||||
    <div class='alert alert-block alert-warning'>
 | 
			
		||||
        {% trans "Stock has not been fully allocated to this Build Order" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block page_data %}
 | 
			
		||||
<h3>
 | 
			
		||||
    {% build_status_label build.status large=True %}
 | 
			
		||||
    {% if build.is_overdue %}
 | 
			
		||||
    <span class='label label-large label-large-red'>{% trans "Overdue" %}</span>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</h3>
 | 
			
		||||
<hr>
 | 
			
		||||
<p>{{ build.title }}</p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block js_ready %}
 | 
			
		||||
 
 | 
			
		||||
@@ -233,7 +233,7 @@
 | 
			
		||||
                    </button>
 | 
			
		||||
                    <!-- Build output actions -->
 | 
			
		||||
                    <div class='btn-group'>
 | 
			
		||||
                        <button id='output-options' class='btn btn-primary dropdown-toiggle' type='button' data-toggle='dropdown' title='{% trans "Output Actions" %}'>
 | 
			
		||||
                        <button id='output-options' class='btn btn-primary dropdown-toiggle' type='button' data-bs-toggle='dropdown' title='{% trans "Output Actions" %}'>
 | 
			
		||||
                            <span class='fas fa-tools'></span> <span class='caret'></span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        <ul class='dropdown-menu'>
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                <div class='btn-group'>
 | 
			
		||||
                    <!-- Print actions -->
 | 
			
		||||
                    <button id='build-print-options' class='btn btn-primary dropdown-toggle' data-toggle='dropdown'>
 | 
			
		||||
                    <button id='build-print-options' class='btn btn-primary dropdown-toggle' data-bs-toggle='dropdown'>
 | 
			
		||||
                        <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
                    </button>
 | 
			
		||||
                    <ul class='dropdown-menu'>
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
                        </button>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <div class='btn-group'>
 | 
			
		||||
                        <button class="btn btn-primary dropdown-toggle" id='supplier-table-options' type="button" data-toggle="dropdown">{% trans "Options" %}
 | 
			
		||||
                        <button class="btn btn-primary dropdown-toggle" id='supplier-table-options' type="button" data-bs-toggle="dropdown">{% trans "Options" %}
 | 
			
		||||
                            <span class="caret"></span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        <ul class="dropdown-menu">
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
                        </button>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <div class='btn-group' role='group'>
 | 
			
		||||
                        <button class="btn btn-primary dropdown-toggle" id='manufacturer-table-options' type="button" data-toggle="dropdown">{% trans "Options" %}
 | 
			
		||||
                        <button class="btn btn-primary dropdown-toggle" id='manufacturer-table-options' type="button" data-bs-toggle="dropdown">{% trans "Options" %}
 | 
			
		||||
                            <span class="caret"></span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        <ul class="dropdown-menu">
 | 
			
		||||
 
 | 
			
		||||
@@ -109,7 +109,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
                    <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %}
 | 
			
		||||
                </button>
 | 
			
		||||
                <div id='opt-dropdown' class="btn-group">
 | 
			
		||||
                    <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <li><a href='#' id='supplier-part-delete' title='{% trans "Delete supplier parts" %}'>{% trans "Delete" %}</a></li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
@@ -133,7 +133,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
                    <span class='fas fa-plus-circle'></span> {% trans "New Parameter" %}
 | 
			
		||||
                </button>
 | 
			
		||||
                <div id='opt-dropdown' class="btn-group">
 | 
			
		||||
                    <button id='parameter-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <button id='parameter-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <li><a href='#' id='multi-parameter-delete' title='{% trans "Delete parameters" %}'>{% trans "Delete" %}</a></li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,15 +9,9 @@
 | 
			
		||||
{% inventree_title %} | {% trans "Purchase Order" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block pre_content %}
 | 
			
		||||
<div class='navigation'>
 | 
			
		||||
    <nav aria-label="breadcrumb">
 | 
			
		||||
      <ol class="breadcrumb">
 | 
			
		||||
        <li class='breadcrumb-item'><a href='{% url "po-index" %}'>{% trans "Purchase Orders" %}</a></li>
 | 
			
		||||
        <li class="breadcrumb-item active" aria-current="page"><a href='{% url "po-detail" order.id %}'>{{ order }}</a></li>
 | 
			
		||||
      </ol>
 | 
			
		||||
    </nav>
 | 
			
		||||
    </div>
 | 
			
		||||
{% block breadcrumbs %}
 | 
			
		||||
<li class='breadcrumb-item'><a href='{% url "po-index" %}'>{% trans "Purchase Orders" %}</a></li>
 | 
			
		||||
<li class="breadcrumb-item active" aria-current="page"><a href='{% url "po-detail" order.id %}'>{{ order }}</a></li>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block thumbnail %}
 | 
			
		||||
@@ -49,7 +43,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
    <div class='btn-group action-buttons' role='group'>
 | 
			
		||||
        <!-- Printing options -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
@@ -60,7 +54,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
        {% if roles.purchase_order.change %}
 | 
			
		||||
        <!-- order actions -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='order-options' title='{% trans "Order actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='order-options' title='{% trans "Order actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-tools'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,15 +9,9 @@
 | 
			
		||||
{% inventree_title %} | {% trans "Sales Order" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block pre_content %}
 | 
			
		||||
<div class='navigation'>
 | 
			
		||||
    <nav aria-label="breadcrumb">
 | 
			
		||||
      <ol class="breadcrumb">
 | 
			
		||||
        <li class='breadcrumb-item'><a href='{% url "so-index" %}'>{% trans "Sales Orders" %}</a></li>
 | 
			
		||||
        <li class="breadcrumb-item active" aria-current="page"><a href='{% url "so-detail" order.id %}'>{{ order }}</a></li>
 | 
			
		||||
      </ol>
 | 
			
		||||
    </nav>
 | 
			
		||||
    </div>
 | 
			
		||||
{% block breadcrumbs %}
 | 
			
		||||
<li class='breadcrumb-item'><a href='{% url "so-index" %}'>{% trans "Sales Orders" %}</a></li>
 | 
			
		||||
<li class="breadcrumb-item active" aria-current="page"><a href='{% url "so-detail" order.id %}'>{{ order }}</a></li>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block below_thumbnail %}
 | 
			
		||||
@@ -60,7 +54,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
    <div class='btn-group action-buttons'>
 | 
			
		||||
        <!-- Printing actions -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='print-options' title='{% trans "Print actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
@@ -74,7 +68,7 @@ src="{% static 'img/blank_image.png' %}"
 | 
			
		||||
        {% if roles.sales_order.change %}
 | 
			
		||||
        <!-- Order actions -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='order-options' title='{% trans "Order actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='order-options' title='{% trans "Order actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-tools'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,9 @@
 | 
			
		||||
{% inventree_title %} | {% trans "Sales Orders" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block breadcrumb_list %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
<h3>{% trans "Sales Orders" %}</h3>
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@
 | 
			
		||||
    <div class="btn-group" role="group" aria-label="...">
 | 
			
		||||
        <!-- Export menu -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='export-options' title='{% trans "Export actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='export-options' title='{% trans "Export actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-download'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
@@ -37,7 +37,7 @@
 | 
			
		||||
        {% if roles.part.change %}
 | 
			
		||||
        <!-- Action menu -->
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button id='bom-actions' title='{% trans "BOM actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
            <button id='bom-actions' title='{% trans "BOM actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                <span class='fas fa-wrench'></span> <span class='caret'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <ul class='dropdown-menu' role='menu'>
 | 
			
		||||
 
 | 
			
		||||
@@ -135,18 +135,18 @@
 | 
			
		||||
                </button>
 | 
			
		||||
                <ul class='dropdown-menu'>
 | 
			
		||||
                    {% if roles.part.change %}
 | 
			
		||||
                    <li><a href='#' id='multi-part-category' title='{% trans "Set category" %}'>{% trans "Set Category" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-part-category' title='{% trans "Set category" %}'>{% trans "Set Category" %}</a></li>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <li><a href='#' id='multi-part-order' title='{% trans "Order parts" %}'>{% trans "Order Parts" %}</a></li>
 | 
			
		||||
                    <li><a href='#' id='multi-part-print-label' title='{% trans "Print Labels" %}'>{% trans "Print Labels" %}</a></li>
 | 
			
		||||
                    <li><a href='#' id='multi-part-export' title='{% trans "Export" %}'>{% trans "Export Data" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-part-order' title='{% trans "Order parts" %}'>{% trans "Order Parts" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-part-print-label' title='{% trans "Print Labels" %}'>{% trans "Print Labels" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-part-export' title='{% trans "Export" %}'>{% trans "Export Data" %}</a></li>
 | 
			
		||||
                </ul>
 | 
			
		||||
            </div>
 | 
			
		||||
            <!-- Buttons to toggle between grid and table view -->
 | 
			
		||||
            <button id='view-list' class='btn btn-outline-secondary' type='button' title='{% trans "View list display" %}'>
 | 
			
		||||
                <span class='fas fa-th-list'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <button id='view-grid' class='btn btn-default' type='button' title='{% trans "View grid display" %}'>
 | 
			
		||||
            <button id='view-grid' class='btn btn-outline-secondary' type='button' title='{% trans "View grid display" %}'>
 | 
			
		||||
                <span class='fas fa-th'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <div class='filter-list' id='filter-list-parts'>
 | 
			
		||||
 
 | 
			
		||||
@@ -289,7 +289,7 @@
 | 
			
		||||
                    <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %}
 | 
			
		||||
                </button>
 | 
			
		||||
                <div id='opt-dropdown' class="btn-group">
 | 
			
		||||
                    <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <li><a href='#' id='supplier-part-delete' title='{% trans "Delete supplier parts" %}'>{% trans "Delete" %}</a></li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
@@ -312,7 +312,7 @@
 | 
			
		||||
                        <span class='fas fa-plus-circle'></span> {% trans "New Manufacturer Part" %}
 | 
			
		||||
                    </button>
 | 
			
		||||
                    <div id='opt-dropdown' class="btn-group">
 | 
			
		||||
                        <button id='manufacturer-part-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                        <button id='manufacturer-part-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button>
 | 
			
		||||
                        <ul class="dropdown-menu">
 | 
			
		||||
                            <li><a href='#' id='manufacturer-part-delete' title='{% trans "Delete manufacturer parts" %}'>{% trans "Delete" %}</a></li>
 | 
			
		||||
                        </ul>
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,7 @@
 | 
			
		||||
                    {% if barcodes %}
 | 
			
		||||
                    <!-- Barcode actions menu -->
 | 
			
		||||
                    <div class='btn-group'>
 | 
			
		||||
                        <button id='barcode-options' title='{% trans "Barcode actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'><span class='fas fa-qrcode'></span> <span class='caret'></span></button>
 | 
			
		||||
                        <button id='barcode-options' title='{% trans "Barcode actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'><span class='fas fa-qrcode'></span> <span class='caret'></span></button>
 | 
			
		||||
                        <ul class='dropdown-menu'>
 | 
			
		||||
                            <li><a href='#' id='show-qr-code'><span class='fas fa-qrcode'></span> {% trans "Show QR Code" %}</a></li>
 | 
			
		||||
                            <li><a href='#' id='print-label'><span class='fas fa-tag'></span> {% trans "Print Label" %}</a></li>
 | 
			
		||||
@@ -85,7 +85,7 @@
 | 
			
		||||
                    </button>
 | 
			
		||||
                    {% if roles.stock.change %}
 | 
			
		||||
                    <div class='btn-group'>
 | 
			
		||||
                        <button id='stock-actions' title='{% trans "Stock actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
 | 
			
		||||
                        <button id='stock-actions' title='{% trans "Stock actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
                            <span class='fas fa-boxes'></span> <span class='caret'></span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        <ul class='dropdown-menu'>
 | 
			
		||||
@@ -113,7 +113,7 @@
 | 
			
		||||
                    <!-- Part actions -->
 | 
			
		||||
                    {% if roles.part.add or roles.part.change or roles.part.delete %}
 | 
			
		||||
                    <div class='btn-group'>
 | 
			
		||||
                        <button id='part-actions' title='{% trans "Part actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'> <span class='fas fa-shapes'></span> <span class='caret'></span></button>
 | 
			
		||||
                        <button id='part-actions' title='{% trans "Part actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'> <span class='fas fa-shapes'></span> <span class='caret'></span></button>
 | 
			
		||||
                        <ul class='dropdown-menu'>
 | 
			
		||||
                            {% if roles.part.add %}
 | 
			
		||||
                            <li><a href='#' id='part-duplicate'><span class='fas fa-copy'></span> {% trans "Duplicate part" %}</a></li>
 | 
			
		||||
@@ -131,7 +131,7 @@
 | 
			
		||||
 | 
			
		||||
                <p>
 | 
			
		||||
                    <!-- Details show/hide button -->
 | 
			
		||||
                    <button id="toggle-part-details" class="btn btn-primary" data-toggle="collapse" data-target="#collapsible-part-details" value="show">
 | 
			
		||||
                    <button id="toggle-part-details" class="btn btn-primary" data-bs-toggle="collapse" data-target="#collapsible-part-details" value="show">
 | 
			
		||||
                    <span class="fas fa-chevron-down"></span> {% trans "Show Part Details" %}
 | 
			
		||||
                    </button>
 | 
			
		||||
                </p>
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
    <div class='modal-dialog'>
 | 
			
		||||
        <div class='modal-content'>
 | 
			
		||||
            <div class="modal-header">
 | 
			
		||||
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 | 
			
		||||
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
 | 
			
		||||
                <span aria-hidden="true">×</span>
 | 
			
		||||
              </button>
 | 
			
		||||
              <img src="{% static 'img/inventree.png' %}" height='60' style='float: left;' alt='Inventree Logo'>
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
                                <td>
 | 
			
		||||
                                    <span style="display: none;" id="about-copy-text">{% include "version.html" %}</span>
 | 
			
		||||
                                    <span class="float-right">
 | 
			
		||||
                                        <button class="btn clip-btn-version" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><em class="fas fa-copy"></em> {% trans "copy version information" %}</button>
 | 
			
		||||
                                        <button class="btn clip-btn-version" type="button" data-bs-toggle='tooltip' title='{% trans "copy to clipboard" %}'><em class="fas fa-copy"></em> {% trans "copy version information" %}</button>
 | 
			
		||||
                                    </span>
 | 
			
		||||
                                </td>
 | 
			
		||||
                            </tr>
 | 
			
		||||
@@ -104,7 +104,7 @@
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class='modal-footer'>
 | 
			
		||||
                <button type='button' class='btn btn-default' data-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
                <button type='button' class='btn btn-default' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
<span class="float-right">
 | 
			
		||||
    <button class="btn clip-btn" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><em class="fas fa-copy"></em></button>
 | 
			
		||||
    <button class="btn clip-btn" type="button" data-bs-toggle='tooltip' title='{% trans "copy to clipboard" %}'><em class="fas fa-copy"></em></button>
 | 
			
		||||
</span>
 | 
			
		||||
@@ -1728,7 +1728,7 @@ function constructField(name, parameters, options) {
 | 
			
		||||
                <div class='panel-heading form-panel-heading' id='form-panel-heading-${group}'>`;
 | 
			
		||||
            if (group_options.collapsible) {
 | 
			
		||||
                html += `
 | 
			
		||||
                <div data-toggle='collapse' data-target='#form-panel-content-${group}'>
 | 
			
		||||
                <div data-bs-toggle='collapse' data-target='#form-panel-content-${group}'>
 | 
			
		||||
                    <a href='#'><span id='group-icon-${group}' class='fas fa-angle-up'></span> 
 | 
			
		||||
                `;
 | 
			
		||||
            } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -535,7 +535,7 @@ function renderErrorMessage(xhr) {
 | 
			
		||||
        <div class='panel panel-default'>
 | 
			
		||||
            <div class='panel panel-heading'>
 | 
			
		||||
                <div class='panel-title'>
 | 
			
		||||
                    <a data-toggle='collapse' href="#collapse-error-info">{% trans "Show Error Information" %}</a>
 | 
			
		||||
                    <a data-bs-toggle='collapse' href="#collapse-error-info">{% trans "Show Error Information" %}</a>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class='panel-collapse collapse' id='collapse-error-info'>
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
    <div class='modal-dialog'>
 | 
			
		||||
        <div class='modal-content'>
 | 
			
		||||
            <div class="modal-header">
 | 
			
		||||
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 | 
			
		||||
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
 | 
			
		||||
                <span aria-hidden="true">×</span>
 | 
			
		||||
              </button>
 | 
			
		||||
              <h3 id='modal-title'><em>Form Title Here</em></h3>
 | 
			
		||||
@@ -26,7 +26,7 @@
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class='modal-footer'>
 | 
			
		||||
                <div id='modal-footer-buttons'></div>
 | 
			
		||||
                <button type='button' class='btn btn-default' id='modal-form-close' data-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
                <button type='button' class='btn btn-default' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
                <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
@@ -37,7 +37,7 @@
 | 
			
		||||
        <div class='modal-dialog'>
 | 
			
		||||
            <div class='modal-content'>
 | 
			
		||||
                <div class="modal-header">
 | 
			
		||||
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 | 
			
		||||
                  <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
 | 
			
		||||
                    <span aria-hidden="true">×</span>
 | 
			
		||||
                  </button>
 | 
			
		||||
                  <h3 id='modal-title'><em>Form Title Here</em></h3>
 | 
			
		||||
@@ -51,7 +51,7 @@
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class='modal-footer'>
 | 
			
		||||
                    <div id='modal-footer-buttons'></div>
 | 
			
		||||
                    <button type='button' class='btn btn-default' id='modal-form-close' data-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
                    <button type='button' class='btn btn-default' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
			
		||||
                    <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
      <a class="navbar-brand" id='logo' href="{% url 'index' %}" style="padding-top: 7px; padding-bottom: 5px;"><img src="{% static 'img/inventree.png' %}" width="32" height="32" style="display:block; margin: auto;"/></a>
 | 
			
		||||
      <!--
 | 
			
		||||
      <div class="navbar-header">
 | 
			
		||||
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
 | 
			
		||||
        <button type="button" class="navbar-toggle" data-bs-toggle="collapse" data-target=".navbar-collapse">
 | 
			
		||||
            <span class="sr-only">{% trans "Toggle navigation" %}</span>
 | 
			
		||||
            <span class="icon-bar"></span>
 | 
			
		||||
            <span class="icon-bar"></span>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,18 +1,18 @@
 | 
			
		||||
<div class='notification-area'>
 | 
			
		||||
<div class="alert alert-success alert-dismissable" id="alert-success">
 | 
			
		||||
     <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <a href="#" class="close" data-bs-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <div class='alert-msg'>Success alert</div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class='alert alert-info alert-dismissable' id='alert-info'>
 | 
			
		||||
     <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <a href="#" class="close" data-bs-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <div class='alert-msg'>Info alert</div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class='alert alert-warning alert-dismissable' id='alert-warning'>
 | 
			
		||||
     <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <a href="#" class="close" data-bs-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
     <div class='alert-msg'>Warning alert</div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class='alert alert-danger alert-dismissable' id='alert-danger'>
 | 
			
		||||
    <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
    <a href="#" class="close" data-bs-dismiss="alert" aria-label="close">×</a>
 | 
			
		||||
    <div class='alert-msg'>Danger alert</div>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
<div id='{{ prefix }}button-toolbar'>
 | 
			
		||||
    <div class='button-toolbar container-fluid' style='float: right;'>
 | 
			
		||||
        <div class='btn-group'>
 | 
			
		||||
            <button class='btn btn-default' id='stock-export' title='{% trans "Export Stock Information" %}'>
 | 
			
		||||
            <button class='btn btn-outline-secondary' id='stock-export' title='{% trans "Export Stock Information" %}'>
 | 
			
		||||
                <span class='fas fa-download'></span>
 | 
			
		||||
            </button>
 | 
			
		||||
 | 
			
		||||
@@ -23,44 +23,44 @@
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            {% if barcodes %}
 | 
			
		||||
            <!-- Barcode actions menu -->
 | 
			
		||||
            <div class='btn-group'>
 | 
			
		||||
                <button id='stock-barcode-options' class='btn btn-primary dropdown-toggle' type='button' data-toggle='dropdown' title='{% trans "Barcode Actions" %}'>
 | 
			
		||||
            <div class='btn-group' role='group'>
 | 
			
		||||
                <button id='stock-barcode-options' class='btn btn-primary dropdown-toggle' type='button' data-bs-toggle='dropdown' title='{% trans "Barcode Actions" %}'>
 | 
			
		||||
                    <span class='fas fa-qrcode'></span> <span class='caret'></span>
 | 
			
		||||
                </button>
 | 
			
		||||
                <ul class='dropdown-menu'>
 | 
			
		||||
                    <li><a href='#' id='multi-item-barcode-scan-into-location' title='{% trans "Scan to Location" %}'><span class='fas fa-sitemap'></span> {% trans "Scan to Location" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-barcode-scan-into-location' title='{% trans "Scan to Location" %}'><span class='fas fa-sitemap'></span> {% trans "Scan to Location" %}</a></li>
 | 
			
		||||
                </ul>
 | 
			
		||||
            </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            <!-- Printing actions menu -->
 | 
			
		||||
            <div class='btn-group'>
 | 
			
		||||
                <button id='stock-print-options' class='btn btn-primary dropdown-toggle' type='button' data-toggle="dropdown" title='{% trans "Printing Actions" %}'>
 | 
			
		||||
                <button id='stock-print-options' class='btn btn-primary dropdown-toggle' type='button' data-bs-toggle="dropdown" title='{% trans "Printing Actions" %}'>
 | 
			
		||||
                    <span class='fas fa-print'></span> <span class='caret'></span>
 | 
			
		||||
                </button>
 | 
			
		||||
                <ul class='dropdown-menu'>
 | 
			
		||||
                    <li><a href='#' id='multi-item-print-label' title='{% trans "Print labels" %}'><span class='fas fa-tags'></span> {% trans "Print labels" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-print-label' title='{% trans "Print labels" %}'><span class='fas fa-tags'></span> {% trans "Print labels" %}</a></li>
 | 
			
		||||
                    {% if test_report_enabled %}
 | 
			
		||||
                    <li><a href='#' id='multi-item-print-test-report' title='{% trans "Print test reports" %}'><span class='fas fa-file-pdf'></span> {% trans "Print test reports" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-print-test-report' title='{% trans "Print test reports" %}'><span class='fas fa-file-pdf'></span> {% trans "Print test reports" %}</a></li>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </ul>
 | 
			
		||||
            </div>
 | 
			
		||||
            {% if not read_only %}
 | 
			
		||||
            {% if roles.stock.change or roles.stock.delete %}
 | 
			
		||||
            <div class="btn-group">
 | 
			
		||||
                <button id='stock-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" title='{% trans "Stock Options" %}'>
 | 
			
		||||
                <button id='stock-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" title='{% trans "Stock Options" %}'>
 | 
			
		||||
                    <span class='fas fa-boxes'></span> <span class="caret"></span>
 | 
			
		||||
                </button>
 | 
			
		||||
                <ul class="dropdown-menu">
 | 
			
		||||
                    {% if roles.stock.change %}
 | 
			
		||||
                    <li><a href="#" id='multi-item-add' title='{% trans "Add to selected stock items" %}'><span class='fas fa-plus-circle'></span> {% trans "Add stock" %}</a></li>
 | 
			
		||||
                    <li><a href="#" id='multi-item-remove' title='{% trans "Remove from selected stock items" %}'><span class='fas fa-minus-circle'></span> {% trans "Remove stock" %}</a></li>
 | 
			
		||||
                    <li><a href="#" id='multi-item-stocktake' title='{% trans "Stocktake selected stock items" %}'><span class='fas fa-check-circle'></span> {% trans "Count stock" %}</a></li>
 | 
			
		||||
                    <li><a href='#' id='multi-item-move' title='{% trans "Move selected stock items" %}'><span class='fas fa-exchange-alt'></span> {% trans "Move stock" %}</a></li>
 | 
			
		||||
                    <li><a href='#' id='multi-item-order' title='{% trans "Order selected items" %}'><span class='fas fa-shopping-cart'></span> {% trans "Order stock" %}</a></li>
 | 
			
		||||
                    <li><a href='#' id='multi-item-set-status' title='{% trans "Change status" %}'><span class='fas fa-exclamation-circle'></span> {% trans "Change stock status" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href="#" id='multi-item-add' title='{% trans "Add to selected stock items" %}'><span class='fas fa-plus-circle icon-green'></span> {% trans "Add stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href="#" id='multi-item-remove' title='{% trans "Remove from selected stock items" %}'><span class='fas fa-minus-circle'></span> {% trans "Remove stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href="#" id='multi-item-stocktake' title='{% trans "Stocktake selected stock items" %}'><span class='fas fa-check-circle'></span> {% trans "Count stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-move' title='{% trans "Move selected stock items" %}'><span class='fas fa-exchange-alt'></span> {% trans "Move stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-order' title='{% trans "Order selected items" %}'><span class='fas fa-shopping-cart'></span> {% trans "Order stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-set-status' title='{% trans "Change status" %}'><span class='fas fa-exclamation-circle'></span> {% trans "Change stock status" %}</a></li>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    {% if roles.stock.delete %}
 | 
			
		||||
                    <li><a href='#' id='multi-item-delete' title='{% trans "Delete selected items" %}'><span class='fas fa-trash-alt'></span> {% trans "Delete Stock" %}</a></li>
 | 
			
		||||
                    <li><a class='dropdown-item' href='#' id='multi-item-delete' title='{% trans "Delete selected items" %}'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete Stock" %}</a></li>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    </ul>
 | 
			
		||||
                </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -12,28 +12,37 @@
 | 
			
		||||
{% block header_panel %}
 | 
			
		||||
<div class='panel panel-default panel-inventree'>
 | 
			
		||||
 | 
			
		||||
    {% block header_pre_content %}
 | 
			
		||||
    {% endblock %}
 | 
			
		||||
    <div class='panel-heading'>
 | 
			
		||||
        {% block detail_heading %}
 | 
			
		||||
        !!! heading goes here !!!
 | 
			
		||||
        {% endblock %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class='row'>
 | 
			
		||||
        <div class='col-sm-6'>
 | 
			
		||||
            <div class='media-left'>
 | 
			
		||||
                {% block thumbnail %}
 | 
			
		||||
                <!-- Image goes here -->
 | 
			
		||||
    <div class='panel-content'>
 | 
			
		||||
 | 
			
		||||
        {% block header_pre_content %}
 | 
			
		||||
        {% endblock %}
 | 
			
		||||
 | 
			
		||||
        <div class='row'>
 | 
			
		||||
            <div class='col-sm-6'>
 | 
			
		||||
                <div class='media-left'>
 | 
			
		||||
                    {% block thumbnail %}
 | 
			
		||||
                    <!-- Image goes here -->
 | 
			
		||||
                    {% endblock %}
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class='media-body'>
 | 
			
		||||
                    {% block page_data %}
 | 
			
		||||
                    <!-- Data next to image goes here -->
 | 
			
		||||
                    {% endblock %}
 | 
			
		||||
                </div>
 | 
			
		||||
                {% block below_thumbnail %}
 | 
			
		||||
                {% endblock %}
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class='media-body'>
 | 
			
		||||
                {% block page_data %}
 | 
			
		||||
                <!-- Data next to image goes here -->
 | 
			
		||||
            <div class='col-sm-6'>
 | 
			
		||||
                {% block page_details %}
 | 
			
		||||
                <!-- Right column data goes here -->
 | 
			
		||||
                {% endblock %}
 | 
			
		||||
            </div>
 | 
			
		||||
            {% block below_thumbnail %}
 | 
			
		||||
            {% endblock %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class='col-sm-6'>
 | 
			
		||||
            {% block page_details %}
 | 
			
		||||
            <!-- Right column data goes here -->
 | 
			
		||||
            {% endblock %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user