mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 18:34:34 -04:00
Plain
This commit is contained in:
parent
3ca48a7c0b
commit
55be4891d2
@ -193,6 +193,21 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** .repeating-header,
|
||||||
|
.repeating-header-space, **/
|
||||||
|
.repeating-footer,
|
||||||
|
.repeating-footer-space {
|
||||||
|
height: 160px;
|
||||||
|
}
|
||||||
|
.repeating-header {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.repeating-footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/** Useful snippets, uncomment to enable. **/
|
/** Useful snippets, uncomment to enable. **/
|
||||||
|
|
||||||
/** Hide company logo **/
|
/** Hide company logo **/
|
||||||
@ -223,60 +238,72 @@
|
|||||||
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
/** To find out selectors on your own: https://invoiceninja.github.io/docs/custom-fields/#snippets **/
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="header"></div>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="repeating-header-space"> </div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div id="body">
|
||||||
|
<div class="header-wrapper">
|
||||||
|
<div id="company-details"></div>
|
||||||
|
<div id="company-address"></div>
|
||||||
|
<div>
|
||||||
|
<img
|
||||||
|
class="company-logo"
|
||||||
|
src="$company.logo"
|
||||||
|
alt="$company.name logo"
|
||||||
|
/>
|
||||||
|
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="client-details"></div>
|
||||||
|
<table id="product-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<table id="task-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<table id="delivery-note-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<table id="statement-invoice-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-invoice-table-totals" data-ref="statement-totals"></div>
|
||||||
|
<table id="statement-payment-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-payment-table-totals" data-ref="statement-totals"></div>
|
||||||
|
<table id="statement-aging-table" cellspacing="0" data-ref="table"></table>
|
||||||
|
<div id="statement-aging-table-totals" data-ref="statement-totals"></div>
|
||||||
|
<div id="table-totals" cellspacing="0"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="repeating-footer-space"> </div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div id="body">
|
<div class="repeating-header" id="header"></div>
|
||||||
<div class="header-wrapper">
|
|
||||||
<div id="company-details"></div>
|
|
||||||
<div id="company-address"></div>
|
|
||||||
|
|
||||||
<div>
|
<div class="repeating-footer" id="footer">
|
||||||
<img
|
<p data-ref="total_table-footer">$entity_footer</p>
|
||||||
class="company-logo"
|
|
||||||
src="$company.logo"
|
|
||||||
alt="$company.name logo"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<table id="entity-details" cellspacing="0" dir="$dir"></table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="client-details"></div>
|
|
||||||
|
|
||||||
<table id="product-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
|
|
||||||
<table id="task-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
|
|
||||||
<table id="delivery-note-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
|
|
||||||
<table id="statement-invoice-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
<div id="statement-invoice-table-totals" data-ref="statement-totals"></div>
|
|
||||||
|
|
||||||
<table id="statement-payment-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
<div id="statement-payment-table-totals" data-ref="statement-totals"></div>
|
|
||||||
|
|
||||||
<table id="statement-aging-table" cellspacing="0" data-ref="table"></table>
|
|
||||||
<div id="statement-aging-table-totals" data-ref="statement-totals"></div>
|
|
||||||
|
|
||||||
<div id="table-totals" cellspacing="0"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<script>
|
||||||
<p data-ref="total_table-footer">$entity_footer</p>
|
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
let tables = [
|
||||||
|
'product-table', 'task-table', 'delivery-note-table',
|
||||||
|
'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
|
||||||
|
];
|
||||||
|
|
||||||
<script>
|
tables.forEach((tableIdentifier) => {
|
||||||
// Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
|
document.getElementById(tableIdentifier).childElementCount === 0
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
? document.getElementById(tableIdentifier).style.display = 'none'
|
||||||
let tables = [
|
: '';
|
||||||
'product-table', 'task-table', 'delivery-note-table',
|
|
||||||
'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
|
|
||||||
];
|
|
||||||
|
|
||||||
tables.forEach((tableIdentifier) => {
|
|
||||||
document.getElementById(tableIdentifier).childElementCount === 0
|
|
||||||
? document.getElementById(tableIdentifier).style.display = 'none'
|
|
||||||
: '';
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
</div>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user