-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincident form.html
62 lines (53 loc) · 1.32 KB
/
incident form.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
<!DOCTYPE html>
<html lang="en">
<form id="incident-form">
<label for="location">Location:</label>
<input type="text" id="location" name="location" required>
<label for="incident">Incident:</label>
<input type="text" id="incident" name="incident" required>
<label for="description">Description:</label>
<textarea id="description" name="description" required></textarea>
<label for="time">Time:</label>
<input type="datetime-local" id="time" name="time" required>
<button type="submit">Submit</button>
</form>
<style>
#incident-form {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#incident-form label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
#incident-form input,
#incident-form textarea {
display: block;
width: 100%;
padding: 5px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 16px;
}
#incident-form button[type="submit"] {
display: block;
margin-top: 10px;
padding: 5px 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 3px;
font-size: 16px;
cursor: pointer;
}
</style>
</html>