Skip to content

Commit

Permalink
Add Scanned Tickets progress bar to event overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Sep 30, 2023
1 parent 4735729 commit 9351ed0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/main/resources/templates/admin/events/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,34 @@ <h1>Ticket [[${event.getTitle()}]]</h1>

<div th:replace="fragments/messages :: messages"></div>

<div class="row my-2">
<div class="row mb-4">
<div class="col-auto">
<a th:href="@{'/administrator/events/overview/csv/' + ${event.getKey()} + '/'}" class="btn btn-secondary btn-block">export to csv</a>
</div>
</div>

<div class="row">
<div class="col">
<div class="card mb-4">
<h6 class="card-header">Scanned Tickets</h6>
<div class="card-body text-primary">
<h4 class="card-title">
[[${attendance.getScannedCount()}]] <small>out of [[${attendance.getTicketsCount()}]]</small>
</h4>
<div class="progress mb-2">
<div class="progress-bar" role="progressbar"
th:aria-valuenow="${attendance.getPercentageScanned()}"
aria-valuemin="0" aria-valuemax="100"
th:style="'width: ' + ${attendance.getPercentageScanned()} + '%;'"
th:text="${attendance.getPercentageScanned()} + '%'">
59%
</div>
</div>
</div>
</div>
</div>
</div>

<div class="table-responsive">
<table id="soldProductTable" class="table table-hover">
<thead class="thead-dark bg-primary">
Expand Down

0 comments on commit 9351ed0

Please sign in to comment.