2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add auto-fill option to select2 inputs on API forms

- WIll fill input if a single result is returned
This commit is contained in:
Oliver
2021-10-05 00:39:22 +11:00
parent 8a90b9df6d
commit 416ba51e22
4 changed files with 44 additions and 6 deletions

View File

@ -170,7 +170,7 @@
{% if build.active %}
<div class='btn-group' role='group'>
<button class='btn btn-success' type='button' id='btn-auto-allocate' title='{% trans "Allocate stock to build" %}'>
<span class='fas fa-magic'></span> {% trans "Auto Allocate" %}
<span class='fas fa-sign-in-alt'></span> {% trans "Allocate Stock" %}
</button>
<button class='btn btn-danger' type='button' id='btn-unallocate' title='{% trans "Unallocate stock" %}'>
<span class='fas fa-minus-circle'></span> {% trans "Unallocate Stock" %}