Skip to content

Commit 4335ee3

Browse files
committed
Updated digital post README with sender address
1 parent 5a644a1 commit 4335ee3

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

modules/os2forms_digital_post/README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,23 @@ also means that it is up to individual installations to style it correctly.
9696
This should be done in OS2Forms Attachment-templates, see
9797
[Overwriting templates](https://github.com/OS2Forms/os2forms/tree/develop/modules/os2forms_attachment#overwriting-templates).
9898

99-
To see the exact requirements for address placement, see
99+
Furthermore, a single-line sender address may be configured on the handler.
100+
The value of this field will be injected into the HTML as a sender address,
101+
which should be placed within the envelope window just above the recipient
102+
address. As with the recipient information, it is up to individual
103+
installations to style it correctly.
104+
105+
To see the exact requirements for address and sender placement, see
100106
[digst_a4_farve_ej_til_kant_demo_ny_rudeplacering.pdf](docs/digst_a4_farve_ej_til_kant_demo_ny_rudeplacering.pdf).
101107

102108
### The injected HTML
103109

104-
Variations of the injected HTML include extended addresses and c/o.
110+
Variations of the injected HTML include extended addresses, c/o and sender
111+
address.
105112

106-
Without extended address information or c/o:
113+
Without extended address information, c/o or sender address:
107114

108115
```html
109-
110116
<div id="envelope-window-digital-post">
111117
<div class="h-card">
112118
<div class="p-name">Jeppe</div>
@@ -131,7 +137,6 @@ With just an extended address:
131137
With just c/o:
132138

133139
```html
134-
135140
<div id="envelope-window-digital-post">
136141
<div class="h-card">
137142
<div class="p-name">Jeppe</div>
@@ -141,10 +146,25 @@ With just c/o:
141146
</div>
142147
```
143148

144-
With extended address information and c/o:
149+
With just the sender address:
150+
151+
```html
152+
<div id="envelope-window-digital-post">
153+
<div id="sender-address-digital-post">Dokk1, Hack Kampmanns Plads 2, 8000 Aarhus C</div>
154+
<div class="h-card">
155+
<div class="p-name">Jeppe</div>
156+
<div><span class="p-street-address">Test vej HouseNr</span></div>
157+
<div><span class="p-postal-code">2100</span> <span class="p-locality">Copenhagen</span></div>
158+
</div>
159+
</div>
160+
```
161+
162+
163+
With extended address information, c/o and sender address:
145164

146165
```html
147166
<div id="envelope-window-digital-post">
167+
<div id="sender-address-digital-post">Dokk1, Hack Kampmanns Plads 2, 8000 Aarhus C</div>
148168
<div class="h-card">
149169
<div class="p-name">Jeppe</div>
150170
<div class="p-name">c/o Mikkel</div>

0 commit comments

Comments
 (0)