-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (118 loc) · 5.78 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Haustierverwaltung</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Haustierverwaltung</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#" id="haustier-liste-nav">Haustierliste</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="neues-haustier-nav">Neues Haustier</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="profil-nav">Profil</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="dokumente-nav">Dokumente</a>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<div id="haustier-liste-section">
<h2>Haustierliste</h2>
<ul id="liste" class="list-group"></ul>
</div>
<div id="neues-haustier-section" style="display: none;">
<h2>Neues Haustier hinzufügen</h2>
<form id="neues-haustier-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" class="form-control" required>
</div>
<div class="form-group">
<label for="geburtsdatum">Geburtsdatum</label>
<input type="date" id="geburtsdatum" class="form-control" required>
</div>
<div class="form-group">
<label for="geschlecht">Geschlecht</label>
<select id="geschlecht" class="form-control" required>
<option value="männlich">Männlich</option>
<option value="weiblich">Weiblich</option>
</select>
</div>
<div class="form-group">
<label for="letzte-impfung">Letzte Impfung</label>
<input type="date" id="letzte-impfung" class="form-control">
<input type="text" id="letzte-impfung-info" class="form-control" placeholder="Impfungsart">
</div>
<div class="form-group">
<label for="naechste-impfung">Nächste Impfung</label>
<input type="date" id="naechste-impfung" class="form-control">
<input type="text" id="naechste-impfung-info" class="form-control" placeholder="Impfungsart">
</div>
<div class="form-group">
<label for="tierart">Tierart</label>
<select id="tierart" class="form-control" required>
<option value="Kaninchen">Kaninchen</option>
<option value="Huhn">Huhn</option>
<option value="Katze">Katze</option>
<option value="Hund">Hund</option>
</select>
</div>
<div class="form-group">
<label for="rasse">Rasse</label>
<input type="text" id="rasse" class="form-control">
</div>
<div class="form-group">
<label for="foto">Foto</label>
<input type="file" id="foto" class="form-control" accept="image/*">
<img id="foto-preview" class="foto-preview" src="https://via.placeholder.com/150" alt="Foto Vorschau">
</div>
<button type="submit" class="btn btn-primary">Hinzufügen</button>
</form>
</div>
<div id="profil-section" style="display: none;">
<h2>Profil</h2>
<form id="profil-form">
<div class="form-group">
<label for="profil-email">E-Mail</label>
<input type="email" id="profil-email" class="form-control" value="[email protected]" required>
</div>
<button type="submit" class="btn btn-primary">Speichern</button>
</form>
</div>
<div id="dokumente-section" style="display: none;">
<h2>Dokumente</h2>
<form id="dokumente-form">
<div class="form-group">
<label for="dokument-name">Dokumentname</label>
<input type="text" id="dokument-name" class="form-control" required>
</div>
<div class="form-group">
<label for="dokument-datei">Datei</label>
<input type="file" id="dokument-datei" class="form-control" required>
</div>
<button type="submit" class="btn btn-primary">Hochladen</button>
</form>
<ul id="dokumente-liste" class="list-group mt-3"></ul>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>