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
849b646a
Commit
849b646a
authored
Feb 03, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PDF export and add printable page formatting
parent
632709c8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
239 additions
and
78 deletions
+239
-78
routes.py
app/main/routes.py
+152
-78
reports.html
app/templates/main/reports.html
+87
-0
No files found.
app/main/routes.py
View file @
849b646a
This diff is collapsed.
Click to expand it.
app/templates/main/reports.html
View file @
849b646a
...
@@ -158,9 +158,96 @@
...
@@ -158,9 +158,96 @@
margin-top
:
12px
;
margin-top
:
12px
;
}
}
</style>
</style>
/* Print button styles */
.print-btn {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
background: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.print-btn:hover {
background: #0056b3;
}
/* Print styles */
@media print {
.print-btn,
.btn-group,
#filterCollapse,
.pagination,
.per-page-selector {
display: none !important;
}
.container {
max-width: 100% !important;
padding: 0 !important;
}
.card {
box-shadow: none !important;
border: 1px solid #ddd !important;
break-inside: avoid;
}
.card-header {
background: #f8f9fa !important;
color: #000 !important;
border-bottom: 1px solid #ddd !important;
}
.table {
font-size: 12px;
}
.table thead th {
background: #f8f9fa !important;
color: #000 !important;
font-weight: bold;
border: 1px solid #ddd !important;
position: static;
}
.table tbody td {
border: 1px solid #ddd !important;
}
.text-success {
color: #000 !important;
font-weight: bold;
}
.text-danger {
color: #000 !important;
font-weight: bold;
}
/* Avoid breaking rows across pages */
tr {
page-break-inside: avoid;
}
/* Add page breaks between sections */
.card {
margin-bottom: 20px;
}
}
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<!-- Print button -->
<button
class=
"print-btn"
onclick=
"window.print()"
>
<i
class=
"fas fa-print"
></i>
Print Page
</button>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
...
...
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