adding csrf_token to addinglot.html

This commit is contained in:
Cayo Puigdefabregas 2021-12-30 13:54:14 +01:00
parent ae4dd59f07
commit 8411a005df

View file

@ -7,8 +7,8 @@
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="/inventory/lot/devices/add" method="post">
{# form.csrf_token #}
<form action="{{ url_for('inventory.devices.lot_devices_add') }}" method="post">
{{ form_lot_device.csrf_token }}
<div class="modal-body">
Please write a name of a lot
<select class="form-control selectpicker" id="selectLot" name="lot" data-live-search="true">
@ -31,9 +31,3 @@
</div>
</div>
</div>
<script>
//$(function() {
// $('#selectLot').selectpicker();
//});
</script>