2018-04-13 14:08:30 +00:00
{% load static %}
2020-04-11 03:24:23 +00:00
{% load i18n %}
2020-09-07 20:15:51 +00:00
{% load inventree_extras %}
2018-04-13 14:08:30 +00:00
2021-01-28 22:48:16 +00:00
{% settings_value 'BARCODE_ENABLE' as barcodes %}
2021-02-04 10:15:19 +00:00
{% settings_value 'REPORT_ENABLE_TEST_REPORT' as test_report_enabled %}
2021-11-10 22:54:54 +00:00
{% settings_value "REPORT_ENABLE" as report_enabled %}
2021-11-11 11:22:39 +00:00
{% settings_value "SERVER_RESTART_REQUIRED" as server_restart_required %}
2021-01-28 22:48:16 +00:00
2018-04-13 14:08:30 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
<!-- Required meta tags -->
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
2019-05-07 10:24:27 +00:00
<!-- Favicon -->
< link rel = "apple-touch-icon" sizes = "57x57" href = "{% static 'img/favicon/apple-icon-57x57.png' %}" >
< link rel = "apple-touch-icon" sizes = "60x60" href = "{% static 'img/favicon/apple-icon-60x60.png' %}" >
< link rel = "apple-touch-icon" sizes = "72x72" href = "{% static 'img/favicon/apple-icon-72x72.png' %}" >
< link rel = "apple-touch-icon" sizes = "76x76" href = "{% static 'img/favicon/apple-icon-76x76.png' %}" >
< link rel = "apple-touch-icon" sizes = "114x114" href = "{% static 'img/favicon/apple-icon-114x114.png' %}" >
< link rel = "apple-touch-icon" sizes = "120x120" href = "{% static 'img/favicon/apple-icon-120x120.png' %}" >
< link rel = "apple-touch-icon" sizes = "144x144" href = "{% static 'img/favicon/apple-icon-144x144.png' %}" >
< link rel = "apple-touch-icon" sizes = "152x152" href = "{% static 'img/favicon/apple-icon-152x152.png' %}" >
< link rel = "apple-touch-icon" sizes = "180x180" href = "{% static 'img/favicon/apple-icon-180x180.png' %}" >
< link rel = "icon" type = "image/png" sizes = "192x192" href = "{% static 'img/favicon/android-icon-192x192.png' %}" >
< link rel = "icon" type = "image/png" sizes = "32x32" href = "{% static 'img/favicon/favicon-32x32.png' %}" >
2020-04-06 10:24:45 +00:00
< link rel = "icon" type = "image/png" sizes = "96x96" href = "{% static 'img/favicon/favicon-96x96.png' %}" >
2019-05-07 10:24:27 +00:00
< link rel = "icon" type = "image/png" sizes = "16x16" href = "{% static 'img/favicon/favicon-16x16.png' %}" >
< link rel = "manifest" href = "{% static 'img/favicon/manifest.json' %}" >
< meta name = "msapplication-TileColor" content = "#ffffff" >
< meta name = "msapplication-TileImage" content = "{% static 'img/favicon/ms-icon-144x144.png' %}" >
< meta name = "theme-color" content = "#ffffff" >
2018-04-24 12:50:56 +00:00
<!-- CSS -->
2021-10-26 21:04:34 +00:00
< link rel = "stylesheet" href = "{% static 'bootstrap/css/bootstrap.min.css' %}" >
2021-05-31 02:47:07 +00:00
< link rel = "stylesheet" href = "{% static 'bootstrap-table/bootstrap-table.css' %}" >
< link rel = "stylesheet" href = "{% static 'bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css' %}" >
< link rel = "stylesheet" href = "{% static 'bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css' %}" >
2021-10-26 21:04:34 +00:00
< link rel = 'stylesheet' href = '{% static "treegrid/css/jquery.treegrid.css" %}' >
< link rel = "stylesheet" href = "{% static 'fontawesome/css/brands.css' %}" >
< link rel = "stylesheet" href = "{% static 'fontawesome/css/solid.css' %}" >
2021-06-25 03:47:09 +00:00
< link rel = "stylesheet" href = "{% static 'select2/css/select2.css' %}" >
2021-10-30 11:16:40 +00:00
< link rel = "stylesheet" href = "{% static 'select2/css/select2-bootstrap-5-theme.css' %}" >
2021-01-07 03:21:32 +00:00
< link rel = "stylesheet" href = "{% static 'fullcalendar/main.css' %}" >
2021-02-23 10:09:55 +00:00
< link rel = "stylesheet" href = "{% static 'script/jquery-ui/jquery-ui.min.css' %}" >
2020-09-08 21:24:22 +00:00
< link rel = "stylesheet" href = "{% static 'css/inventree.css' %}" >
2021-02-23 10:09:55 +00:00
2020-09-08 21:24:22 +00:00
< link rel = "stylesheet" href = "{% get_color_theme_css user.get_username %}" >
2018-04-13 14:08:30 +00:00
2021-02-25 12:27:27 +00:00
< style >
{% block css %}
<!-- Custom CSS style goes here -->
{% endblock %}
< / style >
2018-04-23 10:37:36 +00:00
{% block head %}
{% endblock %}
2018-04-13 14:08:30 +00:00
< title >
2019-05-09 08:11:13 +00:00
{% block page_title %}
2021-04-15 12:52:08 +00:00
{% inventree_title %}
2018-04-13 14:08:30 +00:00
{% endblock %}
< / title >
< / head >
< body >
2018-04-14 08:22:31 +00:00
2018-04-14 05:13:16 +00:00
{% include "navbar.html" %}
2021-10-28 13:20:39 +00:00
< div class = 'main body wrapper container-fluid inventree-body' >
< div class = 'row flex-nowrap inventree-body' >
2021-10-28 13:29:09 +00:00
< div class = 'col-auto px-1 sidebar-wrapper' >
2021-10-28 13:20:39 +00:00
< div id = 'sidebar' class = 'collapse collapse-horizontal show border-end' style = 'display: none;' >
< div id = 'sidebar-nav' class = 'list-group text-sm-start' >
2021-10-29 02:28:21 +00:00
< ul id = 'sidebar-list-group' class = 'list-group sidebar-list-group' >
2021-10-28 13:20:39 +00:00
{% block sidebar %}
<!-- Sidebar goes here -->
{% endblock %}
{% include "sidebar_toggle.html" %}
< / ul >
< / div >
< / div >
< / div >
2021-11-06 14:44:46 +00:00
< main class = 'col ps-md-2 pt-2 pe-2' >
2021-11-18 09:17:27 +00:00
{% block alerts %}
< div class = 'notification-area' id = 'alerts' >
<!-- Div for displayed alerts -->
{% if server_restart_required %}
2021-11-11 11:22:39 +00:00
< div id = 'alert-restart-server' class = 'alert alert-danger' role = 'alert' >
< span class = 'fas fa-server' > < / span >
< b > {% trans "Server Restart Required" %}< / b >
< small >
< br >
2021-11-18 09:17:27 +00:00
{% trans "A configuration option has been changed which requires a server restart" %}. {% trans "Contact your system administrator for further information" %}
2021-11-11 11:22:39 +00:00
< / small >
< / div >
2021-11-18 09:17:27 +00:00
{% endif %}
2021-11-03 06:55:30 +00:00
< / div >
{% endblock %}
2021-10-28 13:20:39 +00:00
{% block breadcrumb_list %}
2021-10-29 12:28:19 +00:00
< div class = 'container-fluid navigation' >
2021-10-28 13:20:39 +00:00
< nav aria-label = 'breadcrumb' >
< ol class = 'breadcrumb' >
{% block breadcrumbs %}
{% endblock %}
< / ol >
< / nav >
< / div >
{% endblock %}
{% block content %}
<!-- Each view fills in here.. -->
{% endblock %}
< / main >
2021-10-27 09:17:37 +00:00
< / div >
2021-10-28 13:20:39 +00:00
{% include 'modals.html' %}
{% include 'about.html' %}
2019-05-09 12:23:43 +00:00
< / div >
2018-04-24 14:09:25 +00:00
<!-- Scripts -->
< script type = "text/javascript" src = "{% static 'script/jquery_3.3.1_jquery.min.js' %}" > < / script >
2019-04-17 09:03:03 +00:00
< script type = 'text/javascript' src = "{% static 'script/jquery.form.min.js' %}" > < / script >
2021-02-23 10:09:55 +00:00
< script type = 'text/javascript' src = "{% static 'script/jquery-ui/jquery-ui.min.js' %}" > < / script >
2018-05-02 11:49:24 +00:00
2021-10-26 21:04:34 +00:00
< script type = "text/javascript" src = "{% static 'bootstrap/js/bootstrap.bundle.min.js' %}" > < / script >
2019-04-17 09:03:03 +00:00
< script type = 'text/javascript' src = "{% static 'script/bootstrap/bootstrap-treeview.js' %}" > < / script >
2021-05-31 02:47:07 +00:00
< script type = 'text/javascript' src = "{% static 'bootstrap-table/bootstrap-table.js' %}" > < / script >
2018-05-02 12:18:58 +00:00
2021-02-18 06:14:57 +00:00
<!-- jquery - treegrid -->
< script type = 'text/javascript' src = '{% static "treegrid/js/jquery.treegrid.js" %}' > < / script >
< script type = 'text/javascript' src = '{% static "treegrid/js/jquery.treegrid.bootstrap3.js" %}' > < / script >
2021-05-29 13:59:27 +00:00
<!-- boostrap - table extensions -->
2021-05-31 02:47:07 +00:00
< script type = 'text/javascript' src = '{% static "bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js" %}' > < / script >
< script type = 'text/javascript' src = '{% static "bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js" %}' > < / script >
2021-02-18 06:14:57 +00:00
< script type = 'text/javascript' src = '{% static "bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js" %}' > < / script >
2021-05-29 13:59:27 +00:00
< script type = 'text/javascript' src = '{% static "bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js" %}' > < / script >
2021-02-18 06:14:57 +00:00
2021-05-09 12:28:46 +00:00
<!-- 3rd party general js -->
2021-01-07 03:21:32 +00:00
< script type = "text/javascript" src = "{% static 'fullcalendar/main.js' %}" > < / script >
2021-04-04 20:48:36 +00:00
< script type = "text/javascript" src = "{% static 'fullcalendar/locales-all.js' %}" > < / script >
2021-06-25 03:47:09 +00:00
< script type = "text/javascript" src = "{% static 'select2/js/select2.full.js' %}" > < / script >
2018-05-10 11:13:36 +00:00
< script type = 'text/javascript' src = "{% static 'script/moment.js' %}" > < / script >
2021-04-06 16:17:09 +00:00
< script type = 'text/javascript' src = "{% static 'script/chart.min.js' %}" > < / script >
2021-05-09 12:28:46 +00:00
< script type = 'text/javascript' src = "{% static 'script/clipboard.min.js' %}" > < / script >
2021-05-24 17:14:38 +00:00
< script type = 'text/javascript' src = "{% static 'script/randomColor.min.js' %}" > < / script >
2019-04-17 09:03:03 +00:00
2021-05-09 12:28:46 +00:00
<!-- general InvenTree -->
2019-05-14 13:44:33 +00:00
< script type = 'text/javascript' src = "{% static 'script/inventree/notification.js' %}" > < / script >
2021-11-03 22:26:32 +00:00
< script type = 'text/javascript' src = "{% static 'script/inventree/inventree.js' %}" > < / script >
2020-04-05 09:42:34 +00:00
2021-07-29 01:28:04 +00:00
<!-- dynamic javascript templates -->
2021-07-29 01:58:32 +00:00
< script type = 'text/javascript' src = "{% url 'calendar.js' %}" > < / script >
< script type = 'text/javascript' src = "{% url 'nav.js' %}" > < / script >
2021-07-29 01:28:04 +00:00
< script type = 'text/javascript' src = "{% url 'settings.js' %}" > < / script >
<!-- translated javascript templates -->
2021-06-23 10:07:56 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'api.js' %}" > < / script >
2021-06-30 07:40:44 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'attachment.js' %}" > < / script >
2021-04-20 11:37:19 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'barcode.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'bom.js' %}" > < / script >
2021-07-13 10:58:05 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'build.js' %}" > < / script >
2021-04-20 11:37:19 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'company.js' %}" > < / script >
2021-07-13 10:58:05 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'filters.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'forms.js' %}" > < / script >
2021-08-30 03:06:02 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'helpers.js' %}" > < / script >
2021-04-20 11:37:19 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'label.js' %}" > < / script >
2021-07-13 10:58:05 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'modals.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'model_renderers.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'order.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'part.js' %}" > < / script >
2021-04-20 11:37:19 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'report.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'stock.js' %}" > < / script >
2021-11-18 15:16:25 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'plugin.js' %}" > < / script >
2021-04-20 11:37:19 +00:00
< script type = 'text/javascript' src = "{% i18n_static 'tables.js' %}" > < / script >
< script type = 'text/javascript' src = "{% i18n_static 'table_filters.js' %}" > < / script >
2020-05-02 11:19:34 +00:00
2021-12-01 21:28:43 +00:00
< script type = 'text/javascript' src = "{% static 'fontawesome/js/solid.min.js' %}" > < / script >
< script type = 'text/javascript' src = "{% static 'fontawesome/js/brands.min.js' %}" > < / script >
< script type = 'text/javascript' src = "{% static 'fontawesome/js/fontawesome.min.js' %}" > < / script >
2020-04-05 09:42:34 +00:00
2018-04-28 02:45:12 +00:00
{% block js_load %}
{% endblock %}
< script type = 'text/javascript' >
2020-04-11 03:24:23 +00:00
2018-04-28 02:45:12 +00:00
$(document).ready(function () {
{% block js_ready %}
{% endblock %}
2019-05-06 09:21:14 +00:00
inventreeDocReady();
2021-05-06 12:33:03 +00:00
2021-01-28 22:48:16 +00:00
{% if barcodes %}
2020-06-11 08:09:43 +00:00
$('#barcode-scan').click(function() {
barcodeScanDialog();
});
2021-01-28 22:48:16 +00:00
{% endif %}
2020-06-11 08:09:43 +00:00
2021-11-03 22:59:56 +00:00
moment.locale('{{ request.LANGUAGE_CODE }}');
2021-11-07 22:34:57 +00:00
// Account notifications
{% if messages %}
{% for message in messages %}
showMessage(
'{{ message }}',
{
style: 'info',
}
);
{% endfor %}
{% endif %}
2018-04-28 02:45:12 +00:00
});
2020-04-11 03:24:23 +00:00
2018-04-28 02:45:12 +00:00
< / script >
2018-04-24 14:09:25 +00:00
2018-04-28 02:45:12 +00:00
{% block js %}
2018-04-24 14:09:25 +00:00
{% endblock %}
2018-04-13 14:08:30 +00:00
< / body >
< / html >