Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion organizations/testowa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ dostawa:
ulica: Testowa 1
kod: 00-000
miasto: Warszawa
kod_paczkomatu: WAW01M
telefon: 22 000 00 00
email: [email protected]
kod_paczkomatu: WAW01M
dodatkowe_informacje: Dostawa tylko w godzinach 9:00-17:00, proszę dzwonić przed przyjściem

produkty:
Expand Down
36 changes: 29 additions & 7 deletions site/templates/organization.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,41 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Adres</h2>

<!-- Right column: Paczkomat and Phone -->
<div class="pb-4">
{% if data.dostawa.kod_paczkomatu %}
<div class="pb-4">
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
<div
class="copyable-field-standalone"
role="button"
tabindex="0"
onclick="copyText(this)"
onkeydown="handleCopyKeydown(event, this)"
>
{{ data.dostawa.kod_paczkomatu }}
{{ data.dostawa.telefon }}
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
stroke-width="1.5"
stroke="currentColor"
class="size-6"
>
<use href="#icon-copy"></use>
</svg>
</div>
</div>

<div class="pb-4">
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Email dla kuriera</h2>
<div
class="copyable-field-standalone"
role="button"
tabindex="0"
onclick="copyText(this)"
onkeydown="handleCopyKeydown(event, this)"
>
{{ data.dostawa.email }}
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-6"
Expand All @@ -124,21 +144,22 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
</svg>
</div>
</div>
{% endif %}

{% if data.dostawa.kod_paczkomatu %}
<div>
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
<div
class="copyable-field-standalone"
role="button"
tabindex="0"
onclick="copyText(this)"
onkeydown="handleCopyKeydown(event, this)"
>
{{ data.dostawa.telefon }}
{{ data.dostawa.kod_paczkomatu }}
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-6"
Expand All @@ -147,6 +168,7 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
</svg>
</div>
</div>
{% endif %}
</div>
</div>

Expand Down
Loading