Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterd
Commits
58f3762b
Commit
58f3762b
authored
Feb 03, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add export functionality to all reports pages
parent
849b646a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
618 additions
and
9 deletions
+618
-9
routes.py
app/main/routes.py
+573
-0
bet_detail.html
app/templates/main/bet_detail.html
+15
-3
client_report_detail.html
app/templates/main/client_report_detail.html
+15
-3
match_report_detail.html
app/templates/main/match_report_detail.html
+15
-3
No files found.
app/main/routes.py
View file @
58f3762b
This diff is collapsed.
Click to expand it.
app/templates/main/bet_detail.html
View file @
58f3762b
...
...
@@ -129,10 +129,22 @@
</ol>
</nav>
</div>
<div
class=
"d-flex gap-2"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-bs-toggle=
"dropdown"
>
<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>
</ul>
</div>
<a
href=
"{{ url_for('main.match_report_detail', client_id=client_id, match_id=match_id, **filters) }}"
class=
"btn btn-secondary"
>
<i
class=
"fas fa-arrow-left"
></i>
Back to Match
</a>
</div>
</div>
<!-- Bet Summary Cards -->
<div
class=
"row mb-3"
>
...
...
app/templates/main/client_report_detail.html
View file @
58f3762b
...
...
@@ -186,10 +186,22 @@
</ol>
</nav>
</div>
<div
class=
"d-flex gap-2"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-bs-toggle=
"dropdown"
>
<i
class=
"fas fa-download"
></i>
Export
</button>
<ul
class=
"dropdown-menu"
>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.client_report_detail', client_id=client_id, export='csv', **filters) }}"
>
Export as CSV
</a></li>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.client_report_detail', client_id=client_id, export='xlsx', **filters) }}"
>
Export as Excel
</a></li>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.client_report_detail', client_id=client_id, export='pdf', **filters) }}"
>
Export as PDF
</a></li>
</ul>
</div>
<a
href=
"{{ url_for('main.reports', **filters) }}"
class=
"btn btn-secondary"
>
<i
class=
"fas fa-arrow-left"
></i>
Back to Reports
</a>
</div>
</div>
<!-- Summary Cards - First Row (3 cards) -->
<div
class=
"row mb-3"
>
...
...
app/templates/main/match_report_detail.html
View file @
58f3762b
...
...
@@ -187,10 +187,22 @@
</ol>
</nav>
</div>
<div
class=
"d-flex gap-2"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-bs-toggle=
"dropdown"
>
<i
class=
"fas fa-download"
></i>
Export
</button>
<ul
class=
"dropdown-menu"
>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.match_report_detail', client_id=client_id, match_id=match_id, export='csv', **filters) }}"
>
Export as CSV
</a></li>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.match_report_detail', client_id=client_id, match_id=match_id, export='xlsx', **filters) }}"
>
Export as Excel
</a></li>
<li><a
class=
"dropdown-item"
href=
"{{ url_for('main.match_report_detail', client_id=client_id, match_id=match_id, export='pdf', **filters) }}"
>
Export as PDF
</a></li>
</ul>
</div>
<a
href=
"{{ url_for('main.client_report_detail', client_id=client_id, **filters) }}"
class=
"btn btn-secondary"
>
<i
class=
"fas fa-arrow-left"
></i>
Back to Client
</a>
</div>
</div>
<!-- Match Summary Cards -->
<div
class=
"row mb-3"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment