-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (69 loc) · 3.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Interaktive Landwirtschaftskarte</title>
<!--CSS-->
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="src/styles.css" />
<!--JS-->
<script src="https://unpkg.com/leaflet/dist/leaflet.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js" defer></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" defer></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" defer></script>
<script src="./script/script.js" defer></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-3 sidebar d-flex flex-column">
<h5>Feld-Optionen</h5>
<button class="btn btn-secondary btn-block mb-3" onclick="toggleTaskList()">Aufgaben anzeigen</button>
<!--Feldnummern -->
<div class="mb-3">
<input type="text" id="search-input" class="form-control" placeholder="Feldnummer suchen">
<button class="btn btn-primary btn-block mt-2" onclick="searchField()">Suchen</button>
</div>
<!-- Export und Importbuttons -->
<button class="btn btn-success btn-block mb-3" onclick="exportData()">Daten exportieren</button>
<label class="btn btn-info btn-block mb-3">
Daten importieren
<input type="file" id="import-btn" class="d-none" accept=".json">
</label>
<!-- Aufgabenliste -->
<div id="task-list" class="mt-3 flex-grow-1" style="display: none;"></div>
<!-- Saat Rechner -->
<button class="btn btn-primary mt-auto" onclick="openSaatCalcModal()">Saat Rechner (WIP)</button>
</div>
<div class="col-9">
<div id="map"></div>
</div>
</div>
</div>
<!-- Modales Saat Rechner -->
<div class="modal fade" id="saatCalcModal" tabindex="-1" role="dialog" aria-labelledby="saatCalcModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="saatCalcModalLabel">Saatgutbedarf Rechner</h5>
</button>
</div>
<div class="modal-body">
<iframe src="saat_calc.html" style="width: 100%; height: 100%; border: none;"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
<script>
function openSaatCalcModal() {
$('#saatCalcModal').modal('show');
}
</script>
</body>
</html>