Skip to content

Commit a7b0e5f

Browse files
committed
feat: dodane wyświetlanie adresu email na stronie organizacji (potrzebne do wysylek)
1 parent 80260f1 commit a7b0e5f

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

organizations/testowa.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ dostawa:
1111
ulica: Testowa 1
1212
kod: 00-000
1313
miasto: Warszawa
14-
kod_paczkomatu: WAW01M
1514
telefon: 22 000 00 00
15+
16+
kod_paczkomatu: WAW01M
1617
dodatkowe_informacje: Dostawa tylko w godzinach 9:00-17:00, proszę dzwonić przed przyjściem
1718

1819
produkty:

site/templates/organization.html

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,41 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Adres</h2>
101101

102102
<!-- Right column: Paczkomat and Phone -->
103103
<div class="pb-4">
104-
{% if data.dostawa.kod_paczkomatu %}
105104
<div class="pb-4">
106-
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
105+
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
107106
<div
108107
class="copyable-field-standalone"
109108
role="button"
110109
tabindex="0"
111110
onclick="copyText(this)"
112111
onkeydown="handleCopyKeydown(event, this)"
113112
>
114-
{{ data.dostawa.kod_paczkomatu }}
113+
{{ data.dostawa.telefon }}
114+
<svg
115+
xmlns="http://www.w3.org/2000/svg"
116+
fill="none"
117+
stroke-width="1.5"
118+
stroke="currentColor"
119+
class="size-6"
120+
>
121+
<use href="#icon-copy"></use>
122+
</svg>
123+
</div>
124+
</div>
125+
126+
<div class="pb-4">
127+
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Email dla kuriera</h2>
128+
<div
129+
class="copyable-field-standalone"
130+
role="button"
131+
tabindex="0"
132+
onclick="copyText(this)"
133+
onkeydown="handleCopyKeydown(event, this)"
134+
>
135+
{{ data.dostawa.email }}
115136
<svg
116137
xmlns="http://www.w3.org/2000/svg"
117138
fill="none"
118-
viewBox="0 0 24 24"
119139
stroke-width="1.5"
120140
stroke="currentColor"
121141
class="size-6"
@@ -124,21 +144,22 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
124144
</svg>
125145
</div>
126146
</div>
127-
{% endif %}
128147

148+
{% if data.dostawa.kod_paczkomatu %}
129149
<div>
130-
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
150+
<h2 class="text-sectionTitle mb-2 pl-1 text-lg">Kod paczkomatu</h2>
131151
<div
132152
class="copyable-field-standalone"
133153
role="button"
134154
tabindex="0"
135155
onclick="copyText(this)"
136156
onkeydown="handleCopyKeydown(event, this)"
137157
>
138-
{{ data.dostawa.telefon }}
158+
{{ data.dostawa.kod_paczkomatu }}
139159
<svg
140160
xmlns="http://www.w3.org/2000/svg"
141161
fill="none"
162+
viewBox="0 0 24 24"
142163
stroke-width="1.5"
143164
stroke="currentColor"
144165
class="size-6"
@@ -147,6 +168,7 @@ <h2 class="text-sectionTitle mb-2 pl-1 text-lg">Telefon dla kuriera</h2>
147168
</svg>
148169
</div>
149170
</div>
171+
{% endif %}
150172
</div>
151173
</div>
152174

0 commit comments

Comments
 (0)