Make table headers more compact to reduce horizontal scrolling

- Shortened headers in match_report_detail.html: Bet UUID→UUID, Date/Time→Date, Total Amount→Amount, Bet Count→Count, Paid Out→Payout
- Shortened headers in client_report_detail.html: Date/Time→Date, Total Bets→Bets, Winning→Win, Losing→Loss, Pending→Pend, Extraction→Extract, CAP Balance→CAP Bal, Shortfall→Short
- Shortened headers in reports.html: Shortfall→Short
- Shortened headers in bet_detail.html: Win Amount→Win Amt
parent 97a8a41d
......@@ -135,9 +135,9 @@
<i class="fas fa-download"></i> Export
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='csv', **filters) }}">Export as CSV</a></li>
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='xlsx', **filters) }}">Export as Excel</a></li>
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='pdf', **filters) }}">Export as PDF</a></li>
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='csv') }}">CSV</a></li>
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='xlsx') }}">Excel</a></li>
<li><a class="dropdown-item" href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet_uuid, export='pdf') }}">PDF</a></li>
</ul>
</div>
<a href="{{ url_for('main.match_report_detail', client_id=client_id, match_id=match_id, **filters) }}" class="btn btn-secondary">
......@@ -241,10 +241,10 @@
<thead>
<tr>
<th>Match ID</th>
<th>Match Number</th>
<th>Match #</th>
<th>Outcome</th>
<th>Amount</th>
<th>Win Amount</th>
<th>Win Amt</th>
<th>Result</th>
</tr>
</thead>
......
......@@ -407,21 +407,21 @@
<thead>
<tr>
<th>Match ID</th>
<th>Match Number</th>
<th>Match #</th>
<th>Fixture ID</th>
<th>Match DateTime</th>
<th>Total Bets</th>
<th>Winning</th>
<th>Losing</th>
<th>Pending</th>
<th>Total Payin</th>
<th>Total Payout</th>
<th>Date</th>
<th>Bets</th>
<th>Win</th>
<th>Loss</th>
<th>Pend</th>
<th>Payin</th>
<th>Payout</th>
<th>Balance</th>
<th>Actual Result</th>
<th>Extraction Result</th>
<th>CAP Applied</th>
<th>CAP Balance</th>
<th>Accumulated Shortfall</th>
<th>Actual</th>
<th>Extract</th>
<th>CAP</th>
<th>CAP Bal</th>
<th>Short</th>
<th>Actions</th>
</tr>
</thead>
......@@ -455,8 +455,8 @@
<td class="text-end">{{ "{:,.2f}".format(report.cap_compensation_balance) if report.cap_compensation_balance else '0.00' }}</td>
<td class="text-end">{{ "{:,.2f}".format(report.accumulated_shortfall) if report.accumulated_shortfall else '0.00' }}</td>
<td>
<a href="{{ url_for('main.match_report_detail', client_id=client_id, match_id=report.match_id, **filters) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i> View Details
<a href="{{ url_for('main.match_report_detail', client_id=client_id, match_id=report.match_id) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i>
</a>
</td>
</tr>
......
......@@ -335,13 +335,13 @@
<table class="table table-hover">
<thead>
<tr>
<th>Bet UUID</th>
<th>Bet DateTime</th>
<th>Match Number</th>
<th>Total Amount</th>
<th>Bet Count</th>
<th>UUID</th>
<th>Date</th>
<th>Match #</th>
<th>Amount</th>
<th>Count</th>
<th>Paid</th>
<th>Paid Out</th>
<th>Payout</th>
<th>Actions</th>
</tr>
</thead>
......@@ -370,8 +370,8 @@
{% endif %}
</td>
<td>
<a href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet.uuid, **filters) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i> View Details
<a href="{{ url_for('main.bet_detail', client_id=client_id, match_id=match_id, bet_uuid=bet.uuid) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i>
</a>
</td>
</tr>
......
......@@ -421,15 +421,15 @@
<table class="table table-hover">
<thead>
<tr>
<th>Client Name</th>
<th>Client ID</th>
<th>Client</th>
<th>ID</th>
<th>Matches</th>
<th>Bets</th>
<th>Payin</th>
<th>Payout</th>
<th>Balance</th>
<th>CAP Redistribution</th>
<th>Accumulated Shortfall</th>
<th>CAP</th>
<th>Short</th>
<th>Actions</th>
</tr>
</thead>
......@@ -448,9 +448,8 @@
<td class="text-end">{{ "{:,.2f}".format(client.cap_balance) }}</td>
<td class="text-end">{{ "{:,.2f}".format(client.accumulated_shortfall) }}</td>
<td>
{% set detail_filters = {'date_range': filters.date_range, 'start_date': filters.start_date, 'end_date': filters.end_date, 'start_time': filters.start_time, 'end_time': filters.end_time, 'per_page': filters.per_page, 'timezone': filters.timezone, 'sort_by': filters.sort_by, 'sort_order': filters.sort_order} %}
<a href="{{ url_for('main.client_report_detail', client_id=client.client_id, **detail_filters) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i> View Details
<a href="{{ url_for('main.client_report_detail', client_id=client.client_id) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i>
</a>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment