58 lines
No EOL
1.7 KiB
HTML
58 lines
No EOL
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Customer Dashboard</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
</head>
|
|
<body>
|
|
{% include 'base.html' %}
|
|
<div class="container">
|
|
<h1>Welcome to Your Dashboard, {{ customer.name }}</h1>
|
|
<h2>Your Appointments</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Time</th>
|
|
<th>Service</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for appointment in appointments %}
|
|
<tr>
|
|
<td>{{ appointment.date }}</td>
|
|
<td>{{ appointment.time }}</td>
|
|
<td>{{ appointment.service }}</td>
|
|
<td>{{ appointment.status }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>Your Repairs</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Device</th>
|
|
<th>Issue</th>
|
|
<th>Status</th>
|
|
<th>Notes</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for repair in repairs %}
|
|
<tr>
|
|
<td>{{ repair.device }}</td>
|
|
<td>{{ repair.issue }}</td>
|
|
<td>{{ repair.status }}</td>
|
|
<td>{{ repair.notes }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html> |