-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
98 lines (92 loc) · 4.72 KB
/
admin.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
<!DOCTYPE html>
<html lang="sv-fi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="style/style.css">
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<!-- jQuery CDN - minified version -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!--page scripts-->
<script src="scripts/data.js"></script>
<script src="scripts/templates.js"></script>
<script src="scripts/admin/admin.js"></script>
<script src="scripts/admin/stats.js"></script>
<script src="scripts/admin/update_ticket.js"></script>
</head>
<body>
<div class="wrapper d-lg-flex">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header display-1">
<h3>Admin Panel</h3>
</div>
<ul class="list-unstyled components">
<li class="active">
<button id="stats" class="btn btn-link font-weight-bold text-dark">Statistik</button>
</li>
<li>
<button id="tickets" class="btn btn-link font-weight-bold text-dark">Uppdatera biljetter</button>
</li>
<li>
<a href="ticket.html" class="btn btn-link font-weight-bold text-dark">Tillbaka till biljettsidan</a>
</li>
</ul>
</nav>
<div class="page-content-wrapper p-4">
<div class="no-display stats-wrapper">
<h2 class="display-4">Statistik</h2>
<h4>Antal sålda biljetter: <span id="totalSoldTickets"></span></h4>
<h4>Total inkomst: <span id="totalIncome"></span></h4>
<div class="row">
<div class="col-md-6 col-sm-12 border" id="discount-count">
<h5>Rabattyper:</h5>
</div>
<div class="col-md-6 col-sm-12 border" id="ticket-types-count">
<h5>Biljettyper:</h5>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Från</th><th scope="col">Till</th><th scope="col">Avgångsdatum</th><th scope="col">Avgångstid</th><th scope="col">Biljettyp</th><th scope="col">Pris</th><th scope="col">Betalningsmetod</th>
</tr>
</thead>
<tbody id="statsTableBody">
</tbody>
</table>
</div>
<button class="btn btn-dark" id="statistics-empty" >Töm statistik</button>
</div>
<div class="no-display tickets-wrapper">
<h1>Uppdatera biljetter</h1>
<form>
<div class="form-row">
<div class="col-12 form-group update-search-input">
<label for="input-from">Välj avgångsort:</label>
</div>
<div class="col-12 form-group">
<select class="form-control" id="input-from">
<select>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="dimmer" id="output-save-success">
<div class="alert alert-success text-center display-4">
Tidtabell updaterad!
<br>
<button class="btn" id="update-success-confirm">Ok</button>
</div>
</div>
</body>
</html>