Skip to content

Commit

Permalink
Merge pull request #120 from pagopa/fix-partials
Browse files Browse the repository at this point in the history
fix: updated partials
  • Loading branch information
alessio-cialini authored Jun 27, 2024
2 parents f8d74a7 + 01e1a6c commit 91e4b6e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
4 changes: 2 additions & 2 deletions node/pdf-generate/partials/notices/paymentInstalments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ compact: true for dense (use it with bollettinoPostale in the same page)
}}

{{#if (equals ../columns 2)}}
{{#if (eq ../columns 2)}}
{{> paymentQRCol
debtor=../debtor
notice=../notice
payee=../payee
tempPath=../tempPath
}}
{{/if}}
{{#if (equals ../columns 3)}}
{{#if (eq ../columns 3)}}
{{> paymentQRColCompact
debtor=../debtor
notice=../notice
Expand Down
42 changes: 19 additions & 23 deletions node/pdf-generate/partials/notices/paymentPoste.hbs
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
<section class="notice-poste-payment-data {{#if compact}}compact{{/if}}">
<div class="header-bollettino-postale unique-separator">
<div class="title">
<h3 class="small-caps-title">Bollettino postale PA</h3>
</div>
<div class="logo-and-date">
<img class="logo-bancoposta" src="assets/poste/banco-posta.svg" alt="BancoPosta"/>
{{#if showCurrentInstalment}}
<p class="h4">Rata {{add @index 1}} entro {{expiryDate}}</p>
{{else}}
{{#if subtitle}}
{{{subtitle}}}
{{else}}
{{#if expiryDate}}
<p class="h4">Rata unica entro {{expiryDate}}</p>
{{else}}
<p class='h4'>Rata unica</p>
{{/if}}
{{/if}}
{{/if}}
<img class="poste-scissors" src="assets/poste/scissors.svg" aria-hidden="true"/>
</div>
<div class="header-bollettino-postale unique-separator">
<div class="title">
<h3 class="small-caps-title">Bollettino postale PA</h3>
</div>
<div class="logo-and-date">
<img class="logo-bancoposta" src="assets/poste/banco-posta.svg" alt="BancoPosta" />
{{#if showCurrentInstalment}}
<p class="h4">Rata {{add @index 1}} entro {{expiryDate}}</p>
{{else}}
{{#if subtitle}}
{{{subtitle}}}
{{else}}
<p class="h4">Rata unica entro {{expiryDate}}</p>
{{/if}}
{{/if}}
<img class="poste-scissors" src="assets/poste/scissors.svg" aria-hidden="true" />
</div>
</div>

{{> paymentBollettino }}
{{> paymentBollettino }}

</section>
</section>

0 comments on commit 91e4b6e

Please sign in to comment.