Location is.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user