mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-12 12:29:20 +02:00
Fixed #45
This commit is contained in:
parent
9f3fbd5630
commit
e80afaa0e9
8 changed files with 61 additions and 21 deletions
1
cp/public/assets/css/sweetalert2.min.css
vendored
Normal file
1
cp/public/assets/css/sweetalert2.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
5
cp/public/assets/js/sweetalert2.min.js
vendored
Normal file
5
cp/public/assets/js/sweetalert2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -7,6 +7,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<link href="/assets/css/tabulator.min.css" rel="stylesheet">
|
<link href="/assets/css/tabulator.min.css" rel="stylesheet">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<link href="/assets/css/sweetalert2.min.css" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
.small-dropdown .dropdown-item {
|
.small-dropdown .dropdown-item {
|
||||||
padding: 0.25rem 1.5rem;
|
padding: 0.25rem 1.5rem;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script src="/assets/js/tabulator.min.js" defer></script>
|
<script src="/assets/js/tabulator.min.js" defer></script>
|
||||||
|
<script src="/assets/js/sweetalert2.min.js" defer></script>
|
||||||
<script src="/assets/js/tabler.min.js" defer></script>
|
<script src="/assets/js/tabler.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||||
|
@ -122,10 +123,16 @@
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to delete this application?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to delete this application?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
window.location.href = deleteUrl;
|
window.location.href = deleteUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script src="/assets/js/tabulator.min.js" defer></script>
|
<script src="/assets/js/tabulator.min.js" defer></script>
|
||||||
|
<script src="/assets/js/sweetalert2.min.js" defer></script>
|
||||||
<script src="/assets/js/tabler.min.js" defer></script>
|
<script src="/assets/js/tabler.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||||
|
@ -100,10 +101,16 @@
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to delete this contact?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to delete this contact?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
window.location.href = deleteUrl;
|
window.location.href = deleteUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script src="/assets/js/tabulator.min.js" defer></script>
|
<script src="/assets/js/tabulator.min.js" defer></script>
|
||||||
|
<script src="/assets/js/sweetalert2.min.js" defer></script>
|
||||||
<script src="/assets/js/tabler.min.js" defer></script>
|
<script src="/assets/js/tabler.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||||
|
@ -119,22 +120,40 @@
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to delete this domain?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to delete this domain?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
window.location.href = deleteUrl;
|
window.location.href = deleteUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
} else if (e.target.closest('.restore-btn')) {
|
} else if (e.target.closest('.restore-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to restore this domain?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to restore this domain?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let restoreUrl = e.target.closest('.restore-btn').getAttribute('data-restore-url');
|
let restoreUrl = e.target.closest('.restore-btn').getAttribute('data-restore-url');
|
||||||
window.location.href = restoreUrl;
|
window.location.href = restoreUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
} else if (e.target.closest('.report-btn')) {
|
} else if (e.target.closest('.report-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to submit restore report for this domain?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to submit restore report for this domain?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let reportUrl = e.target.closest('.report-btn').getAttribute('data-report-url');
|
let reportUrl = e.target.closest('.report-btn').getAttribute('data-report-url');
|
||||||
window.location.href = reportUrl;
|
window.location.href = reportUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script src="/assets/js/tabulator.min.js" defer></script>
|
<script src="/assets/js/tabulator.min.js" defer></script>
|
||||||
|
<script src="/assets/js/sweetalert2.min.js" defer></script>
|
||||||
<script src="/assets/js/tabler.min.js" defer></script>
|
<script src="/assets/js/tabler.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||||
|
@ -98,10 +99,16 @@
|
||||||
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){
|
||||||
if (e.target.closest('.delete-btn')) {
|
if (e.target.closest('.delete-btn')) {
|
||||||
e.preventDefault(); // Prevent the default link behavior
|
e.preventDefault(); // Prevent the default link behavior
|
||||||
if (confirm("Are you sure you want to delete this host?")) {
|
Swal.fire({
|
||||||
|
title: "Are you sure you want to delete this host?",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonText: "Confirm"
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url');
|
||||||
window.location.href = deleteUrl;
|
window.location.href = deleteUrl;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script src="/assets/js/tabulator.min.js" defer></script>
|
<script src="/assets/js/tabulator.min.js" defer></script>
|
||||||
|
<script src="/assets/js/sweetalert2.min.js" defer></script>
|
||||||
<script src="/assets/js/tabler.min.js" defer></script>
|
<script src="/assets/js/tabler.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||||
|
@ -106,15 +107,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function updateRecord(id) {
|
|
||||||
console.log("Updating record with ID: " + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
function deleteRecord(id) {
|
|
||||||
console.log("Deleting record with ID: " + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
function downloadCSV() {
|
function downloadCSV() {
|
||||||
table.download("csv", "data.csv");
|
table.download("csv", "data.csv");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue