Location is.

This commit is contained in:
2025-03-20 13:20:00 +01:00
parent ae7ba2342e
commit b48b8dbb6c
3 changed files with 133 additions and 2 deletions
@@ -7,7 +7,9 @@
<div class="card shadow p-4">
<div class="d-flex justify-content-end">
<button class="btn btn-primary float-right">Új elem hozzáadása</button>
<button id="newLocationBtn" class="btn btn-primary float-right new-btn" data-bs-toggle="tooltip" data-bs-placement="top" title="Új lokáció">
<i class="bi bi-plus-square"></i>
</button>
</div>
<table id="tbLocationsPage" class="table table-bordered table-hover table-sm" style="width:100%">
<thead class="table-primary">
@@ -58,6 +60,11 @@
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
});
$('#newLocationBtn').on('click', function ()
{
window.location.href = `@Url.Page("/BaseStock/Locations/LocationEditPage")?id=0`;
});
$('#tbLocationsPage').on('click', '.edit-btn', function ()
{
const row = table.row($(this).closest('tr')).data();