-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.html
156 lines (140 loc) · 7.03 KB
/
detail.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
name="viewport">
<meta content="ie=edge" http-equiv="X-UA-Compatible">
<!-- Gotham Font -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/gotham-rounded.min.css" rel="stylesheet">
<!-- Latest compiled and minified CSS -->
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="style.css">
<!-- Font Awesome icon -->
<script crossorigin="anonymous" src="https://kit.fontawesome.com/f99be2198e.js"></script>
<title>Detail Safety Reports</title>
</head>
<body>
<main>
<div class="container">
<div class="corp-logo">
<figure>
<img alt="angkasa pura 2 logo" src="./osrs-logo.png">
</figure>
</div>
<div class="detail-information">
<h3>Event Time</h3>
<p>26-02-2024 12:14</p>
<h3>Status</h3>
<span class="badge">Close</span>
<h3>Latest Follow-up</h3>
<p>26-02-2024 17:14</p>
<h3>Report Time</h3>
<p>26-02-2024 17:14</p>
<div class="report-time d-flex flex-wrap gap-20 w-100">
<div class="flex-1 px-15px">
<h4>From</h4>
<p>Benaleo Bayu</p>
</div>
<div class="flex-1 px-15px">
<h4>Email</h4>
<p>[email protected]</p>
</div>
<div class="flex-1 px-15px">
<h4>Institution/Company</h4>
<p>Unictive Media</p>
</div>
</div>
<h3>Details Safety Report</h3>
<p>26-02-2024 17:14</p>
<div class="report-detail row">
<div class="item col-xs-12 col-md-6">
<h4>Airport</h4>
<p>Soekarno-Hatta International Airport</p>
</div>
<div class="item col-xs-12 col-md-6">
<h4>Location</h4>
<p>Main Lobby Gate 3 on Station 3</p>
</div>
<div class="item col-xs-12 col-md-12">
<h4>Description</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A beatae doloremque eius natus, pariatur quisquam rerum veritatis? Neque odio quae qui voluptate.</p>
</div>
<div class="item col-xs-12 col-md-12">
<h4>Proposed Solution</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</div>
</div>
<h3>Evidence</h3>
<div class="evidenceView d-grid">
<div class="previewFiles">
<img class="img__fit" src="https://source.unsplash.com/random/550x400/?accident" alt="accident">
</div>
<div class="previewFiles">
<img class="img__fit" src="https://source.unsplash.com/random/550x400/?accident" alt="accident">
</div>
<div class="previewFiles">
<img class="img__fit" src="https://source.unsplash.com/random/550x400/?accident" alt="accident">
</div>
<div class="previewFiles">
<img class="img__fit" src="https://source.unsplash.com/random/550x400/?accident" alt="accident">
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<h3>Follow-up</h3>
<div class="subdetail">
<p>26-02-2024 17:14</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi expedita iste, magnam nisi odio pariatur praesentium sed! Ex, ipsum, qui.
</p>
</div>
</div>
<div class="col-xs-12 col-md-6">
<h3>Feedback</h3>
<div class="subdetail d-grid justify-items-center">
<fieldset class="rating">
<input id="star5" name="rating" type="radio" value="5"/><label class="full" for="star5" title="5 stars"></label>
<input id="star4half" name="rating" type="radio" value="4.5"/><label class="half" for="star4half" title="4.5 stars"></label>
<input id="star4" name="rating" type="radio" value="4"/><label class="full" for="star4" title="4 stars"></label>
<input id="star3half" name="rating" type="radio" value="3.5"/><label class="half" for="star3half" title="3.5 stars"></label>
<input id="star3" name="rating" type="radio" value="3"/><label class="full" for="star3" title="3 stars"></label>
<input id="star2half" name="rating" type="radio" value="2.5"/><label class="half" for="star2half" title="2.5 stars"></label>
<input id="star2" name="rating" type="radio" value="2"/><label class="full" for="star2" title="2 stars"></label>
<input id="star1half" name="rating" type="radio" value="1.5"/><label class="half" for="star1half" title="1.5 stars"></label>
<input id="star1" name="rating" type="radio" value="1"/><label class="full" for="star1" title="1 star"></label>
<input id="starhalf" name="rating" type="radio" value="0.5"/><label class="half" for="starhalf" title="0.5 stars"></label>
</fieldset>
<p id="userComment">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi expedita iste, magnam nisi odio pariatur praesentium sed! Ex, ipsum, qui.
</p>
</div>
</div>
</div>
<div class="d-flex w-100 justify-end">
<button class="btn btn-info" onclick="history.back()">Back</button>
</div>
</div>
</div>
</main>
<script>
let savedRating = localStorage.getItem("userRating");
if (savedRating) {
document.querySelector('input[name="rating"][value="' + savedRating + '"]').checked = true;
}
let ratingInputs = document.querySelectorAll('input[name="rating"]');
ratingInputs.forEach(function(input) {
input.addEventListener("change", function() {
localStorage.setItem("userRating", this.value);
});
});
const userComment = document.getElementById('userComment');
const savedComment = localStorage.getItem('userComment');
if (savedComment) {
userComment.textContent = savedComment;
}
</script>
</body>
</html>