From 3cf76888442e0757ac1911484b6451737c95d272 Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Sat, 1 Apr 2023 09:13:52 -0600 Subject: [PATCH 1/3] Add order status to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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" \ From 0ea8d12c9fdf4572558008b29cd3c496faced1f3 Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Mon, 3 Apr 2023 18:55:30 -0600 Subject: [PATCH 2/3] Add quick-fill button to Fulfillment form --- dashboard/templates/dashboard/order/fulfill.html | 9 ++++++++- static/scripts/fulfillment.js | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 static/scripts/fulfillment.js 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() +}) From a92154676ede384639e6c38d8f266add844da4f4 Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Mon, 3 Apr 2023 18:55:47 -0600 Subject: [PATCH 3/3] Updated editor config --- .editorconfig | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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