diff --git a/.editorconfig b/.editorconfig index a80e77e..b766376 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,22 +16,16 @@ multi_line_output = 4 quote_type = single [*.js] -indent_size = 4 - -[*.jsx] -indent_size = 4 - -[*.scss] -indent_size = 4 +indent_size = 2 [*.ts] indent_size = 4 -[*.tsx] -indent_size = 4 - [*.yml] indent_size = 4 [*.html] indent_size = 4 + +[*.css] +indent_size = 4 diff --git a/README.md b/README.md index ff6d3bd..39e50b1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +### Build status + +[![builds.sr.ht status](https://builds.sr.ht/~nathanchapman.svg)](https://builds.sr.ht/~nathanchapman?) + +### Setup + ``` sudo docker run -it --rm -p 80:80 --name certbot \ -v "/etc/letsencrypt:/etc/letsencrypt" \ diff --git a/dashboard/templates/dashboard/order/fulfill.html b/dashboard/templates/dashboard/order/fulfill.html index b118cf9..345d977 100644 --- a/dashboard/templates/dashboard/order/fulfill.html +++ b/dashboard/templates/dashboard/order/fulfill.html @@ -3,6 +3,10 @@ {% block head_title %}Fulfill Order No. {{ order.pk }} | {% endblock %} +{% block head %} + +{% endblock %} + {% block content %}

@@ -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() +})