Merge branch 'release/3.1.0'
This commit is contained in:
commit
77944b3dd0
@ -16,22 +16,16 @@ multi_line_output = 4
|
|||||||
quote_type = single
|
quote_type = single
|
||||||
|
|
||||||
[*.js]
|
[*.js]
|
||||||
indent_size = 4
|
indent_size = 2
|
||||||
|
|
||||||
[*.jsx]
|
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
[*.scss]
|
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
[*.ts]
|
[*.ts]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.tsx]
|
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
[*.yml]
|
[*.yml]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.html]
|
[*.html]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.css]
|
||||||
|
indent_size = 4
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
### Build status
|
||||||
|
|
||||||
|
[](https://builds.sr.ht/~nathanchapman?)
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo docker run -it --rm -p 80:80 --name certbot \
|
sudo docker run -it --rm -p 80:80 --name certbot \
|
||||||
-v "/etc/letsencrypt:/etc/letsencrypt" \
|
-v "/etc/letsencrypt:/etc/letsencrypt" \
|
||||||
|
|||||||
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
{% block head_title %}Fulfill Order No. {{ order.pk }} | {% endblock %}
|
{% block head_title %}Fulfill Order No. {{ order.pk }} | {% endblock %}
|
||||||
|
|
||||||
|
{% block head %}
|
||||||
|
<script defer src="{% static 'scripts/fulfillment.js' %}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<article>
|
<article>
|
||||||
<p>
|
<p>
|
||||||
@ -77,7 +81,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3"></td>
|
<td colspan="2"></td>
|
||||||
|
<td class="text-right">
|
||||||
|
<button id="quick-fill" class="btn">Quick fill</button>
|
||||||
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<input class="btn" type="submit" value="Fulfill order">
|
<input class="btn" type="submit" value="Fulfill order">
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
10
static/scripts/fulfillment.js
Normal file
10
static/scripts/fulfillment.js
Normal file
@ -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()
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user