2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Disable buttons that require row selection, until a selection has been made

- Stock table
This commit is contained in:
Oliver Walters
2019-04-18 22:35:51 +10:00
parent ba72ced00c
commit a0b6900eb8
4 changed files with 37 additions and 4 deletions

View File

@ -9,7 +9,7 @@
<div id='button-toolbar'>
<button class='btn btn-success' id='add-stock-item'>New Stock Item</button>
<div id='opt-dropdown' class="dropdown" style='float: right;'>
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options
<button id='stock-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href='#' id='multi-item-take' title='Take items from stock'>Take items</a></li>
@ -49,6 +49,9 @@
params: {
part: {{ part.id }},
},
buttons: [
'#stock-options',
],
url: "{% url 'api-stock-list' %}",
});