feat: Apply styles to transparency start balance row
Adds CSS class for start balance row to improve table readability by highlighting the background color of the row. Updates HTML generation logic to apply the CSS class to the appropriate table row. Enhances user interface clarity for financial transparency tables.
This commit is contained in:
parent
f0c8a67a84
commit
5fc59d8d55
2 changed files with 7 additions and 1 deletions
|
@ -342,4 +342,10 @@ h5 {
|
|||
|
||||
.accordion-header .bs-icon svg {
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
/* Table Styles */
|
||||
|
||||
.transparency-start-balance-row > td {
|
||||
background-color: rgb(234, 255, 255) !important;
|
||||
}
|
|
@ -183,7 +183,7 @@ def generate_transparency_table(result, currencies=None):
|
|||
"""
|
||||
|
||||
# Add start balance row
|
||||
html += "<tr><td>Account Balance (start of month)</td>"
|
||||
html += "<tr class=\"transparency-start-balance-row\"><td>Account Balance (start of month)</td>"
|
||||
for currency in currencies:
|
||||
value = result["start_balance"].get(currency, Decimal(0))
|
||||
html += f"<td>{format_value(value, currency)}</td>"
|
||||
|
|
Loading…
Reference in a new issue