mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-28 06:15:54 +00:00
.github
InvenTree
InvenTree
barcodes
build
common
company
label
locale
order
part
plugins
report
script
stock
templates
InvenTree
account
js
registration
socialaccount
403.html
404.html
about.html
attachment_delete.html
attachment_table.html
base.html
clip.html
collapse.html
collapse_index.html
hover_image.html
image_download.html
mail.html
modal_csrf.html
modal_delete_form.html
modal_form.html
modals.html
navbar.html
notification.html
panel.html
price.html
qr_button.html
qr_code.html
required_part_table.html
search_form.html
slide.html
stats.html
status_codes.html
stock_table.html
tel.html
two_column.html
url.html
version.html
yesnolabel.html
users
config_template.yaml
gunicorn.conf.py
manage.py
ci
deploy
docker
images
.eslintrc.yml
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE
README.md
RELEASE.md
crowdin.yml
requirements.txt
setup.cfg
tasks.py
79 lines
4.8 KiB
HTML
79 lines
4.8 KiB
HTML
{% load i18n %}
|
|
{% load inventree_extras %}
|
|
|
|
{% settings_value 'BARCODE_ENABLE' as barcodes %}
|
|
|
|
{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %}
|
|
{% if owner_control.value == "True" %}
|
|
{% authorized_owners location.owner as owners %}
|
|
{% endif %}
|
|
|
|
<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" %}'>
|
|
<span class='fas fa-download'></span>
|
|
</button>
|
|
|
|
{% if owner_control.value == "True" and user in owners or user.is_superuser or owner_control.value == "False" %}
|
|
{% if not read_only and not prevent_new_stock and roles.stock.add %}
|
|
<button class="btn btn-success" id='item-create' title='{% trans "New Stock Item" %}'>
|
|
<span class='fas fa-plus-circle'></span>
|
|
</button>
|
|
{% 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" %}'>
|
|
<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>
|
|
</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" %}'>
|
|
<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>
|
|
{% 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>
|
|
{% 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" %}'>
|
|
<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>
|
|
{% 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>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
<div class='filter-list' id='filter-list-stock'>
|
|
<!-- An empty div in which the filter list will be constructed -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class='table table-striped table-condensed' data-toolbar='#{{ prefix }}button-toolbar' id='{{ prefix }}stock-table'>
|
|
</table>
|