Merge branch 'release/3.1.0'
This commit is contained in:
commit
77944b3dd0
@ -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
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
### Build status
|
||||
|
||||
[](https://builds.sr.ht/~nathanchapman?)
|
||||
|
||||
### Setup
|
||||
|
||||
```
|
||||
sudo docker run -it --rm -p 80:80 --name certbot \
|
||||
-v "/etc/letsencrypt:/etc/letsencrypt" \
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
|
||||
{% block head_title %}Fulfill Order No. {{ order.pk }} | {% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<script defer src="{% static 'scripts/fulfillment.js' %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article>
|
||||
<p>
|
||||
@ -77,7 +81,10 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<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">
|
||||
<input class="btn" type="submit" value="Fulfill order">
|
||||
</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