Tweak table column widths to evenly distribute Description and Account columns, regardless of page width
This commit is contained in:
parent
8c8c0c626f
commit
0a5a5994bc
@ -44,10 +44,10 @@
|
||||
<table class="ledger">
|
||||
<tr>
|
||||
{#<th style="width: 5em;">Date</th>#}
|
||||
<th>Description</th>
|
||||
<th style="max-width: 8em;">Account</th>
|
||||
<th style="text-align: right; width: 5em;">Dr</th>
|
||||
<th style="text-align: right; width: 5em;">Cr</th>
|
||||
<th style="width: 50%;">Description</th>
|
||||
<th style="width: 50%;">Account</th>
|
||||
<th style="text-align: right; min-width: 5em;">Dr</th>
|
||||
<th style="text-align: right; min-width: 5em;">Cr</th>
|
||||
</tr>
|
||||
|
||||
{% for posting in transaction.postings %}
|
||||
|
@ -39,14 +39,14 @@
|
||||
<table class="ledger">
|
||||
<tr>
|
||||
{#<th style="width: 5em;">Date</th>#}
|
||||
<th>Description</th>
|
||||
<th style="max-width: 8em;">Account</th>
|
||||
<th style="text-align: right; width: 4em;">Dr</th> {# Amount #}
|
||||
<th style="width: 2em;"></th> {# Currency #}
|
||||
<th style="width: 2em;"></th> {# Price #}
|
||||
<th style="text-align: right; width: 4em;">Cr</th>
|
||||
<th style="width: 2em;"></th>
|
||||
<th style="width: 2em;"></th>
|
||||
<th style="width: 50%;">Description</th>
|
||||
<th style="width: 50%;">Account</th>
|
||||
<th style="text-align: right; min-width: 4em;">Dr</th> {# Amount #}
|
||||
<th style="min-width: 2em;"></th> {# Currency #}
|
||||
<th style="min-width: 2em;"></th> {# Price #}
|
||||
<th style="text-align: right; min-width: 4em;">Cr</th>
|
||||
<th style="min-width: 2em;"></th>
|
||||
<th style="min-width: 2em;"></th>
|
||||
</tr>
|
||||
|
||||
{% for posting in transaction.postings %}
|
||||
|
@ -36,12 +36,12 @@
|
||||
|
||||
<table class="ledger">
|
||||
<tr>
|
||||
<th style="width: 5em;">Date</th>
|
||||
<th>Description</th>
|
||||
<th style="max-width: 8em;">{% if account %}Related {% endif %}Account</th>
|
||||
<th style="text-align: right; width: 5em;">Dr</th>
|
||||
<th style="text-align: right; width: 5em;">Cr</th>
|
||||
{% if account %}<th style="text-align: right; width: 6em;">Balance</th>{% endif %}
|
||||
<th style="min-width: 5em;">Date</th>
|
||||
<th style="width: 50%;">Description</th>
|
||||
<th style="width: 50%;">{% if account %}Related {% endif %}Account</th>
|
||||
<th style="text-align: right; min-width: 5em;">Dr</th>
|
||||
<th style="text-align: right; min-width: 5em;">Cr</th>
|
||||
{% if account %}<th style="text-align: right; min-width: 6em;">Balance</th>{% endif %}
|
||||
</tr>
|
||||
|
||||
{% set ns = namespace(balance=None) %}
|
||||
|
@ -27,15 +27,15 @@
|
||||
|
||||
<table class="ledger">
|
||||
<tr>
|
||||
<th style="width: 5em;">Date</th>
|
||||
<th>Description</th>
|
||||
<th style="width: 1em;"></th> {# Dr/Cr #}
|
||||
<th style="text-align: right; width: 4em;">Amount</th>
|
||||
<th style="width: 2em;"></th> {# Currency #}
|
||||
<th style="text-align: right; width: 4em;">Balance</th>
|
||||
<th style="width: 2em;"></th> {# Currency #}
|
||||
<th style="width: 2em;"></th> {# Price #}
|
||||
<th style="width: 1em;"></th>
|
||||
<th style="min-width: 5em;">Date</th>
|
||||
<th style="width: 100%;">Description</th>
|
||||
<th style="min-width: 1em;"></th> {# Dr/Cr #}
|
||||
<th style="text-align: right; min-width: 4em;">Amount</th>
|
||||
<th style="min-width: 2em;"></th> {# Currency #}
|
||||
<th style="text-align: right; min-width: 4em;">Balance</th>
|
||||
<th style="min-width: 2em;"></th> {# Currency #}
|
||||
<th style="min-width: 2em;"></th> {# Price #}
|
||||
<th style="min-width: 1em;"></th>
|
||||
</tr>
|
||||
|
||||
{% set ns = namespace(balance=None) %}
|
||||
|
Reference in New Issue
Block a user