@@ -77,7 +81,10 @@
{% endfor %}
- |
+ |
+
+
+ |
|
diff --git a/static/scripts/fulfillment.js b/static/scripts/fulfillment.js
new file mode 100644
index 0000000..ae8450f
--- /dev/null
+++ b/static/scripts/fulfillment.js
@@ -0,0 +1,10 @@
+const quickFill = event => {
+ document.querySelectorAll("input[name*=quantity_fulfilled").forEach(input => {
+ input.value = input.max
+ })
+}
+
+document.querySelector("#quick-fill").addEventListener("click", event => {
+ event.preventDefault()
+ quickFill()
+})