mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Show public notes outside of totals table
This commit is contained in:
		
							parent
							
								
									c7776557d0
								
							
						
					
					
						commit
						88acfbfecb
					
				@ -440,7 +440,6 @@ class Design extends BaseDesign
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $elements = [
 | 
					        $elements = [
 | 
				
			||||||
            ['element' => 'div', 'properties' => ['style' => 'display: flex; flex-direction: column;'], 'elements' => [
 | 
					            ['element' => 'div', 'properties' => ['style' => 'display: flex; flex-direction: column;'], 'elements' => [
 | 
				
			||||||
                ['element' => 'p', 'content' => strtr($_variables['values']['$entity.public_notes'], $_variables), 'properties' => ['data-ref' => 'total_table-public_notes', 'style' => 'text-align: left;']],
 | 
					 | 
				
			||||||
                ['element' => 'p', 'content' => '', 'properties' => ['style' => 'text-align: left; display: flex; flex-direction: column;'], 'elements' => [
 | 
					                ['element' => 'p', 'content' => '', 'properties' => ['style' => 'text-align: left; display: flex; flex-direction: column;'], 'elements' => [
 | 
				
			||||||
                    ['element' => 'span', 'content' => '$entity.terms_label: ', 'properties' => ['hidden' => $this->entityVariableCheck('$entity.terms'), 'data-ref' => 'total_table-terms-label', 'style' => 'font-weight: bold; text-align: left; margin-top: 1rem;']],
 | 
					                    ['element' => 'span', 'content' => '$entity.terms_label: ', 'properties' => ['hidden' => $this->entityVariableCheck('$entity.terms'), 'data-ref' => 'total_table-terms-label', 'style' => 'font-weight: bold; text-align: left; margin-top: 1rem;']],
 | 
				
			||||||
                    ['element' => 'span', 'content' => strtr($_variables['values']['$entity.terms'], $_variables), 'properties' => ['data-ref' => 'total_table-terms', 'style' => 'text-align: left;']],
 | 
					                    ['element' => 'span', 'content' => strtr($_variables['values']['$entity.terms'], $_variables), 'properties' => ['data-ref' => 'total_table-terms', 'style' => 'text-align: left;']],
 | 
				
			||||||
 | 
				
			|||||||
@ -213,6 +213,11 @@
 | 
				
			|||||||
        display: grid;
 | 
					        display: grid;
 | 
				
			||||||
        grid-template-columns: 1fr 1fr 1fr;
 | 
					        grid-template-columns: 1fr 1fr 1fr;
 | 
				
			||||||
        gap: 15px;
 | 
					        gap: 15px;
 | 
				
			||||||
 | 
					        color: white;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-top: 0.5rem
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -233,7 +238,9 @@
 | 
				
			|||||||
    <tr>
 | 
					    <tr>
 | 
				
			||||||
        <td class="page-footer-cell">
 | 
					        <td class="page-footer-cell">
 | 
				
			||||||
            <div class="footer-wrapper" id="footer">
 | 
					            <div class="footer-wrapper" id="footer">
 | 
				
			||||||
                <div> <!-- #1 column --> </div>
 | 
					                <div>
 | 
				
			||||||
 | 
					                    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
                <div> <!-- #2 column --> </div>
 | 
					                <div> <!-- #2 column --> </div>
 | 
				
			||||||
                <div> <!-- #3 column --> </div>
 | 
					                <div> <!-- #3 column --> </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
				
			|||||||
@ -218,6 +218,10 @@
 | 
				
			|||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
        padding-right: 1rem;
 | 
					        padding-right: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-left: 1rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="header"></div>
 | 
					<div id="header"></div>
 | 
				
			||||||
@ -252,4 +256,6 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -186,6 +186,10 @@
 | 
				
			|||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
        padding-right: 1rem;
 | 
					        padding-right: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-left: 1rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="header"></div>
 | 
					<div id="header"></div>
 | 
				
			||||||
@ -218,4 +222,6 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -178,6 +178,10 @@
 | 
				
			|||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
        padding-right: 1rem;
 | 
					        padding-right: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-left: 1rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="header"></div>
 | 
					<div id="header"></div>
 | 
				
			||||||
@ -216,4 +220,6 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -172,6 +172,10 @@
 | 
				
			|||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
        padding-right: 0.5rem;
 | 
					        padding-right: 0.5rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-left: 1rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="header"></div>
 | 
					<div id="header"></div>
 | 
				
			||||||
@ -216,5 +220,7 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -257,4 +257,6 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -222,6 +222,11 @@
 | 
				
			|||||||
    .page-content-cell {
 | 
					    .page-content-cell {
 | 
				
			||||||
        padding: 1rem;
 | 
					        padding: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        margin-top: 2rem;
 | 
				
			||||||
 | 
					        margin-bottom: 2rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<table class="page-container">
 | 
					<table class="page-container">
 | 
				
			||||||
@ -242,7 +247,9 @@
 | 
				
			|||||||
                <div style="margin-top: 195px"></div>
 | 
					                <div style="margin-top: 195px"></div>
 | 
				
			||||||
                <div class="footer-wrapper" id="footer">
 | 
					                <div class="footer-wrapper" id="footer">
 | 
				
			||||||
                    <div class="footer-content">
 | 
					                    <div class="footer-content">
 | 
				
			||||||
                        <div></div>
 | 
					                        <div>
 | 
				
			||||||
 | 
					                            <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
                        <div id="company-details"></div>
 | 
					                        <div id="company-details"></div>
 | 
				
			||||||
                        <div id="company-address"></div>
 | 
					                        <div id="company-address"></div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
				
			|||||||
@ -150,6 +150,10 @@
 | 
				
			|||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
        padding-right: 1rem;
 | 
					        padding-right: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
 | 
					        padding-left: 1rem
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
<div id="header"></div>
 | 
					<div id="header"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -180,4 +184,6 @@
 | 
				
			|||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0"></table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer"></div>
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -94,7 +94,9 @@
 | 
				
			|||||||
    #product-table,
 | 
					    #product-table,
 | 
				
			||||||
    #delivery-note-table,
 | 
					    #delivery-note-table,
 | 
				
			||||||
    #task-table {
 | 
					    #task-table {
 | 
				
			||||||
        padding: 3rem;
 | 
					        padding-left: 3rem;
 | 
				
			||||||
 | 
					        padding-right: 3rem;
 | 
				
			||||||
 | 
					        margin-top: 3rem;
 | 
				
			||||||
        /* margin-bottom: 200px; */
 | 
					        /* margin-bottom: 200px; */
 | 
				
			||||||
        min-width: 100%;
 | 
					        min-width: 100%;
 | 
				
			||||||
        table-layout: fixed;
 | 
					        table-layout: fixed;
 | 
				
			||||||
@ -220,17 +222,10 @@
 | 
				
			|||||||
        padding: 10px;
 | 
					        padding: 10px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #footer {
 | 
					    [data-ref="total_table-public_notes"] {
 | 
				
			||||||
        position: fixed;
 | 
					        text-align: left;
 | 
				
			||||||
        bottom: 0;
 | 
					        padding-left: 3rem;
 | 
				
			||||||
        min-width: 100%;
 | 
					        padding-right: 3rem;
 | 
				
			||||||
        display: grid;
 | 
					 | 
				
			||||||
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
 | 
					 | 
				
			||||||
        margin-left: -10px;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    #footer > * {
 | 
					 | 
				
			||||||
        padding: 5px;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -286,15 +281,6 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div id="footer">
 | 
					<div id="footer">
 | 
				
			||||||
 | 
					    <p data-ref="total_table-public_notes">$entity.public_notes</p>
 | 
				
			||||||
 | 
					 | 
				
			||||||
    <div style="background-color: #00968B"><!-- 1 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #1D756E"><!-- 2 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #FCB600"><!-- 3 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #BA932F"><!-- 4 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #A72A4E"><!-- 5 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #E20041"><!-- 6 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #F8B300"><!-- 7 --></div>
 | 
					 | 
				
			||||||
    <div style="background-color: #009B8F"><!-- 8 --></div>
 | 
					 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user