datatable in administration

This commit is contained in:
Walter Hupfeld
2024-03-16 10:48:40 +01:00
parent a8a3bbee4f
commit 6eb3594bcd
3 changed files with 17 additions and 14 deletions

View File

@@ -137,12 +137,16 @@
<link rel="stylesheet" href="../css/jquery.fancybox.min.css" />
<link rel="stylesheet" href="../css/leaflet.css" />
<link rel="stylesheet" href="../css/leaflet.awesome-markers.css" />
<link rel="stylesheet" href="../vendor/DataTables/DataTables-2.0.2/css/dataTables.dataTables.min.css">
<link rel="stylesheet" href="../vendor/DataTables/DataTables-2.0.2/css/dataTables.bootstrap4.min.css">
<script src="../js/jquery.min.js"></script>
<script src="../js/leaflet.js"></script>
<script src="../js/leaflet.awesome-markers.js"></script>
<script src="../js/jquery.fancybox.min.js"></script>
<script src="../vendor/DataTables/DataTables-2.0.2/js/dataTables.min.js"></script>
<script src="../vendor/DataTables/DataTables-2.0.2/js/dataTables.bootstrap4.min.js"></script>
<title>Eintragsliste</title>
<style>
.tdmap { height:350px; width:300px;}
@@ -187,7 +191,7 @@
<!-- Ende Navbar -->
<div class="container-fluid" style="margin-top:5em;">
<table class="table table-bordered table-striped">
<table id="list" class="table table-bordered table-striped">
<thead>
<tr><th>id</th>
<?= ($boolSuperAdmin) ? "<th>Kreis</th>" : "" ?>
@@ -299,6 +303,11 @@
<script>
$( document ).ready(function() {
let dataTable = new DataTable(
"#list",
{ language: {url: '../vendor/DataTables/de_DE.json'},
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, 'All'] ]
});
var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw';
var attribution = 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
@@ -306,7 +315,6 @@ $( document ).ready(function() {
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>';
var infoMarker = L.AwesomeMarkers.icon({icon: 'info', prefix: 'fa', markerColor: 'orange'});
$(".edit_defect").on("click", function(e){
e.preventDefault();
$('#dialog_defect').hide();