Select all checkbox
This commit is contained in:
parent
86504989b4
commit
6300c37a4e
|
@ -20,6 +20,10 @@ function reply(e) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selectAll(el) {
|
||||||
|
el.parentElement.querySelectorAll('[type="checkbox"]')
|
||||||
|
.forEach(t => t.checked=true);
|
||||||
|
}
|
||||||
|
|
||||||
function rate_stars(e) {
|
function rate_stars(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -50,6 +50,12 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="block pt-1" onclick="selectAll(this)">
|
||||||
|
<label class="label">
|
||||||
|
<input type="checkbox" class="checkbox">
|
||||||
|
Select all
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<button class="button" type="submit">Retry items</button>
|
<button class="button" type="submit">Retry items</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue