2021-03-19 17:51:25 +01:00
|
|
|
<div>
|
|
|
|
<h4>Select below the URLs you want to capture.</h4>
|
2022-11-21 15:02:12 +01:00
|
|
|
<hr>
|
2024-09-04 16:30:33 +02:00
|
|
|
<button type="button" class="btn btn-secondary" id="toggleURLs" title="(un)select all URLs">
|
2022-03-30 13:48:10 +02:00
|
|
|
Toggle selection
|
|
|
|
</button>
|
2022-11-21 15:02:12 +01:00
|
|
|
<hr>
|
2021-03-19 17:51:25 +01:00
|
|
|
<form role="form" action="{{ url_for('bulk_captures', base_tree_uuid=base_tree_uuid) }}" method=post enctype=multipart/form-data>
|
|
|
|
{% for url in urls %}
|
2022-03-30 13:48:10 +02:00
|
|
|
<div class="form-check">
|
2021-03-19 17:51:25 +01:00
|
|
|
<input class="form-check-input" type="checkbox" name="url" id="url_{{loop.index}}" value="{{loop.index}}">
|
2022-03-31 13:35:33 +02:00
|
|
|
<label class="form-check-label text-wrap text-break" for="url_{{loop.index}}">{{url}}</label>
|
2021-03-19 17:51:25 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2022-03-18 10:48:09 +01:00
|
|
|
<button type="submit" class="btn btn-primary" id="btn-capture-urls">Capture selected URLs</button>
|
2021-03-19 17:51:25 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2024-09-04 16:30:33 +02:00
|
|
|
|
|
|
|
<script nonce="{{ csp_nonce() }}">
|
|
|
|
const toggleURLs = document.getElementById("toggleURLs");
|
|
|
|
if (toggleURLs) {
|
|
|
|
toggleURLs.addEventListener("click", function() {
|
|
|
|
checkAllBoxes("url");
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|