set const table to var

This allow modify variable
This commit is contained in:
RubenPX 2022-05-12 18:44:26 +02:00
parent cea1c2b717
commit 6a408a08c7
1 changed files with 9 additions and 1 deletions

View File

@ -357,6 +357,14 @@
<a href="{{ url_for('inventory.device_details', id=dev.devicehub_id)}}">
{{ dev.verbose_name }}
</a>
{% if dev.lots | length > 0 %}
<br />
<h6>
{% for lot in dev.lots %}
<span class="badge badge-pill bg-dark">{{ lot.name }}</span>
{% endfor %}
</h6>
{% endif %}
</td>
<td>
<a href="{{ url_for('inventory.device_details', id=dev.devicehub_id)}}">
@ -430,7 +438,7 @@
<!-- Custom Code -->
<script>
const table = new simpleDatatables.DataTable("table", {
let table = new simpleDatatables.DataTable("table", {
perPage: 20
})
</script>