@@ -96,17 +96,23 @@ also means that it is up to individual installations to style it correctly.
9696This 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:
131137With 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 :
145150
146151``` html
147152<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:
164+
165+ ``` html
166+ <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 >
@@ -218,7 +238,7 @@ footer {
218238}
219239
220240// Style the h-card div
221- #envelope-window-digital-post > div {
241+ #envelope-window-digital-post > .h-card {
222242 position : absolute ;
223243 top : 16mm ;
224244 left : 4mm ;
@@ -227,5 +247,15 @@ footer {
227247 width : $recipient-window-width ;
228248}
229249
250+ // Style the sender address div
251+ #envelope-window-digital-post > #sender-address-digital-post {
252+ position : absolute ;
253+ top : 12mm ;
254+ left : 4mm ;
255+ font-size : 8px ;
256+ height : 4mm ;
257+ width : 71mm ;
258+ }
259+
230260// More custom styling...
231261```
0 commit comments