-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-page.html
175 lines (165 loc) · 5.69 KB
/
dashboard-page.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{% extends 'dashboard-layout.html' %}
{% block head %}
<title>Dashboard: Home</title>
{% endblock %}
{% block body %}
<div class="title">
<h2>Welcome to Dashboard</h2>
<!-- will prob display different stuff here based on employee -->
</div>
{% if session.get('employeeType') == 'chef' %}
<div>
<div class="title">
<h2>You're a chef.</h2>
</div>
<!--
<div class ="progresscontainer">
<div class="progress" id="progress"></div>
<div class="circle active"><i class="fa-solid fa-circle-check"></i></div>
<div class="circle active"><i class="fa-solid fa-circle-check"></i></div>
<div class="circle active"><i class="fa-solid fa-circle-check"></i></div> -->
<!-- <div class="progresstext">
<h2>Incoming order.</h2>
<h2>Preparing order.</h2>
<h2>Order ready for delivery.</h2>
</div> -->
<!-- </div>
<button class="stepbtn" id="prev" diabled>Previous Step</button>
<button class="btn" id="next" diabled>Next Step</button> -->
<div class="tables">
<table class="content-table">
<thead>
<tr>
<th>Order Number:</th>
<th>Customer Number Rating:</th>
<th>Customer Review:</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</div>
</td>
</tr>
<tr class="active-row">
<td>2</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
<tr>
<td>3</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
</tbody>
</table>
<table class="content-table2">
<thead>
<tr>
<th>Manager Feedback</th>
</tr>
</thead>
<tbody>
<tr>
<td>If you receive an average of less than or equal to a 2.0 rating
or at least 3 complaints, you will be demoted.
<button class ="tablebtn" onclick="showStatus()">Check Status</button>
</td>
</div>
</td>
</tr>
<tr class="active-row">
<td>If you get demoted 2 times, you're fired.
</td>
</tr>
<tr>
<td>If you receive an average of more than or equal to a 4.0 rating
or at least 3 compliments, you will receive a bonus.
</td>
</tr>
<tr>
<td>1 compliment can remove 1 complaint.
</td>
</tr>
</tbody>
</table>
</div>
</div>
{% elif session.get('employeeType') == 'deliveryPerson'%}
<div>
<t1>You're a delivery person.</t1>
<div class="tables">
<table class="content-table">
<thead>
<tr>
<th>Order Number:</th>
<th>Customer Number Rating:</th>
<th>Customer Review:</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</div>
</td>
</tr>
<tr class="active-row">
<td>2</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
<tr>
<td>3</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
</tbody>
</table>
</div>
</div>
{% elif session.get('employeeType') == 'manager' %}
<div>
<t1>You're a manager.</t1>
<div class="tables">
<table class="content-table">
<thead>
<tr>
<th>Order Number:</th>
<th>Customer Number Rating:</th>
<th>Customer Review:</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</div>
</td>
</tr>
<tr class="active-row">
<td>2</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
<tr>
<td>3</td>
<td>Number rating goes here.</td>
<td>Review/complaint goes here.</td>
</tr>
</tbody>
</table>
</div>
</div>
{% else %}
<div>
<t1> You're a customer. </t1>
</div>
{% endif %}
<!-- <script src="/scripts/showstatus.js"></script> -->
<script src="/scripts/updateprogress.js"></script>
{% endblock %}