Moved api lines to fork with others features branches
Future freature (Search feature)
This commit is contained in:
parent
06456b352f
commit
e7dbb34315
|
@ -220,4 +220,14 @@
|
||||||
</div>
|
</div>
|
||||||
</footer><!-- End Footer -->
|
</footer><!-- End Footer -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const API_URLS = {
|
||||||
|
Auth_Token: `Basic ${btoa("{{ current_user.token }}:")}`, //
|
||||||
|
currentUserID: "{{ current_user.id }}",
|
||||||
|
lots: "{{ url_for('Lot.main') }}",
|
||||||
|
devices: "{{ url_for('Device.main') }}",
|
||||||
|
devices_modify: "{{ url_for('Lot.lot-device', id='UUID') }}",
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
|
@ -398,13 +398,6 @@
|
||||||
<!-- Custom Code -->
|
<!-- Custom Code -->
|
||||||
<script>
|
<script>
|
||||||
const table = new simpleDatatables.DataTable("table")
|
const table = new simpleDatatables.DataTable("table")
|
||||||
const API_URLS = {
|
|
||||||
Auth_Token: `Basic ${btoa("{{ current_user.token }}:")}`, //
|
|
||||||
currentUserID: "{{ current_user.id }}",
|
|
||||||
lots: "{{ url_for('Lot.main') }}",
|
|
||||||
devices: "{{ url_for('Device.main') }}",
|
|
||||||
devices_modify: "{{ url_for('Lot.lot-device', id='UUID') }}",
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script>
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
Reference in New Issue