-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lung
committed
Jan 30, 2024
1 parent
a00c934
commit 555cfb6
Showing
12 changed files
with
146 additions
and
24 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
.header-logo { | ||
margin: 20px; | ||
max-height: 100px; | ||
} | ||
|
||
.signStamp { | ||
max-width: 200px; | ||
max-height: 100px; | ||
max-width: 250px; | ||
} | ||
|
||
.content-left { | ||
float: left; | ||
text-align: left; | ||
float: left; | ||
text-align: left; | ||
} | ||
|
||
.content-right { | ||
float: right; | ||
text-align: right; | ||
float: right; | ||
text-align: right; | ||
} | ||
|
||
.content-center { | ||
text-align: center; | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "_layoutPdf.twig" %} | ||
|
||
{% block content %} | ||
<div class="header"> | ||
<img class="header-logo" src="data:image/png;base64,{{ event.getLogoInBase64 }}" alt="logo of {{ event.readableName }}"> | ||
<img class="header-logo content-right" src="data:image/png;base64,{{ skautLogo }}" alt="logo of Scout organization"> | ||
</div> | ||
<h1 class="content-center">{{ 'receiptCs.headline' |trans }}</h1> | ||
<p class="content-left">{{ 'receiptCs.accepter'|trans|raw }}</p> | ||
<p class="content-right">{{ 'receiptCs.number'|trans }}: {{ receiptNumber }}</p> | ||
<p>{{ 'receiptCs.acceptPaymentEvent'|trans({ | ||
'%eventReadableName%': event.readableName, | ||
'%eventDates%': eventDates, | ||
}) }}</p> | ||
<p>{{ 'receiptCs.acceptPaymentParticipant'|trans({ | ||
'%participantFullName%': participant.getFullName, | ||
'%participantFullAddress%': participant.permanentResidence, | ||
}) }}</p> | ||
{% if allOtherParticipants %} | ||
<p>{{ 'receiptCs.acceptPaymentMoreParticipant'|trans({ | ||
'%allOtherParticipants%': allOtherParticipants, | ||
}) }}</p> | ||
{% endif %} | ||
|
||
{% if participant is PatrolLeader %} | ||
{% set price = ((participant.getPatrolParticipantsCount() + 1) * 6600) %} | ||
{% else %} | ||
{% set price = 4100 %} | ||
{% endif %} | ||
<p>{{ 'receiptCs.acceptPaymentPayment'|trans({ | ||
'%paymentAmount%': price, | ||
'%paymentCurrency%': 'Kč', | ||
'%paymentVariableSymbol%': '42438' ~ payment.variableSymbol[5:], | ||
'%paymentAccountTo%': '2302084720/2010', | ||
}) }}</p> | ||
<p class="content-right">{{ 'receiptCs.acceptedSign'|trans({ | ||
'%acceptedDate%': participant.registrationPayDate.format('j. n. Y'), | ||
}) }}</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% extends "_layoutPdf.twig" %} | ||
|
||
{% block content %} | ||
<div class="header"> | ||
<img class="header-logo" src="data:image/png;base64,{{ event.getLogoInBase64 }}" alt="logo of {{ event.readableName }}"> | ||
<img class="header-logo content-right" src="data:image/png;base64,{{ skautLogo }}" alt="logo of Scout organization"> | ||
</div> | ||
<h1 class="content-center">{{ 'receipt.headline' |trans }}</h1> | ||
<p class="content-left">{{ 'receipt.accepter'|trans|raw }}</p> | ||
<p class="content-right">{{ 'receipt.number'|trans }}: {{ receiptNumber }}</p> | ||
<p>{{ 'receipt.acceptPaymentEvent'|trans({ | ||
'%eventReadableName%': event.readableName, | ||
'%eventDates%': eventDates, | ||
}) }}</p> | ||
<p>{{ 'receipt.acceptPaymentParticipant'|trans({ | ||
'%participantFullName%': participant.getFullName, | ||
'%participantFullAddress%': participant.permanentResidence, | ||
}) }}</p> | ||
{% if allOtherParticipants %} | ||
<p>{{ 'receipt.acceptPaymentMoreParticipant'|trans({ | ||
'%allOtherParticipants%': allOtherParticipants, | ||
}) }}</p> | ||
{% endif %} | ||
<p>{{ 'receipt.acceptPaymentPayment'|trans({ | ||
'%paymentAmount%': payment.price, | ||
'%paymentCurrency%': payment.currency, | ||
'%paymentVariableSymbol%': payment.variableSymbol, | ||
'%paymentAccountTo%': payment.accountNumber, | ||
}) }}</p> | ||
<p class="content-right">{{ 'receipt.acceptedSign'|trans({ | ||
'%acceptedDate%': participant.registrationPayDate.format('j. n. Y'), | ||
}) }}</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters