1
1
import { type NonEmptyArray } from '@seedcompany/common' ;
2
- import {
3
- Column ,
4
- Text as Head ,
5
- Section ,
6
- Text ,
7
- } from '@seedcompany/nestjs-email/templates' ;
8
2
import type { Verse } from '@seedcompany/scripture' ;
9
3
import type { Range } from '~/common' ;
10
- import { EmailTemplate } from '~/core/email/templates/base' ;
11
- import { useFrontendUrl } from '~/core/email/templates/frontend-url' ;
12
- import { LanguageRef } from '~/core/email/templates/user-ref' ;
4
+ import { EmailTemplate , LanguageRef , Mjml , useFrontendUrl } from '~/core/email' ;
13
5
import { type Engagement } from '../../../components/engagement/dto' ;
14
6
import { type Language } from '../../../components/language/dto' ;
15
7
import { type Project } from '../../../components/project/dto' ;
@@ -29,133 +21,137 @@ export function DBLUpload(props: Props) {
29
21
const languageName = language . name . value ;
30
22
return (
31
23
< EmailTemplate title = { `${ languageName || 'Language' } needs a DBL upload` } >
32
- < Section >
33
- < Column >
34
- < Text >
24
+ < Mjml . Section >
25
+ < Mjml . Column >
26
+ < Mjml . Text >
35
27
< LanguageRef { ...language } /> has recently indicated reaching some
36
28
All Access goals via{ ' ' }
37
29
< a href = { useFrontendUrl ( `/engagements/${ engagement . id } ` ) } >
38
30
{ project . name . value ?? 'Some Project' }
39
31
</ a >
40
32
.
41
- </ Text >
42
- < Text >
33
+ </ Mjml . Text >
34
+ < Mjml . Text >
43
35
Books:{ ' ' }
44
36
{ completedBooks . map ( ( range ) => range . start . book . name ) . join ( ', ' ) }
45
- </ Text >
46
- </ Column >
47
- </ Section >
48
- < Section >
49
- < Column >
50
- < Text >
37
+ </ Mjml . Text >
38
+ </ Mjml . Column >
39
+ </ Mjml . Section >
40
+ < Mjml . Section >
41
+ < Mjml . Column >
42
+ < Mjml . Text >
51
43
Our records identify you as the Field Project Manager (FPM), and
52
44
we’d like to confirm the next steps for uploading the text to the
53
45
Digital Bible Library (DBL).
54
- </ Text >
55
- < Text >
46
+ </ Mjml . Text >
47
+ < Mjml . Text >
56
48
To move forward, we need a few details from you. Please have your
57
49
field partner complete this short form to provide the necessary
58
50
information indicated below:
59
- </ Text >
60
- </ Column >
61
- </ Section >
62
- < Section >
63
- < Column >
64
- < Head > ✅ First Step: Who will upload the Scripture to the DBL?</ Head >
65
- < Text >
51
+ </ Mjml . Text >
52
+ </ Mjml . Column >
53
+ </ Mjml . Section >
54
+ < Mjml . Section >
55
+ < Mjml . Column >
56
+ < Mjml . Text >
57
+ ✅ First Step: Who will upload the Scripture to the DBL?
58
+ </ Mjml . Text >
59
+ < Mjml . Text >
66
60
1. If someone is already responsible for uploading to the DBL,
67
61
please let us know on the form so we can update our records and
68
62
avoid unnecessary follow-ups.
69
- </ Text >
70
- < Text >
63
+ </ Mjml . Text >
64
+ < Mjml . Text >
71
65
2. If you need Seed Company to upload it to the DBL, we will need
72
66
additional information.
73
- </ Text >
74
- </ Column >
75
- </ Section >
76
- < Section >
77
- < Column >
78
- < Head > ✅ If Seed Company uploads to the DBL, please provide:</ Head >
79
- < Text >
67
+ </ Mjml . Text >
68
+ </ Mjml . Column >
69
+ </ Mjml . Section >
70
+ < Mjml . Section >
71
+ < Mjml . Column >
72
+ < Mjml . Text >
73
+ ✅ If Seed Company uploads to the DBL, please provide:
74
+ </ Mjml . Text >
75
+ < Mjml . Text >
80
76
🔹 Copyright Holder & Licensing – Who will hold the copyright for
81
77
this text in DBL ?
82
- </ Text >
83
- < Text >
78
+ </ Mjml . Text >
79
+ < Mjml . Text >
84
80
The copyright holder can be the field partner or Seed Company if
85
81
needed.
86
- </ Text >
87
- < Text >
82
+ </ Mjml . Text >
83
+ < Mjml . Text >
88
84
We also need to confirm the licensing options you prefer for
89
85
distribution. More details on these options are included in the
90
86
attached information sheet.
91
- </ Text >
92
- </ Column >
93
- </ Section >
94
- < Section >
95
- < Column >
96
- < Text >
87
+ </ Mjml . Text >
88
+ </ Mjml . Column >
89
+ </ Mjml . Section >
90
+ < Mjml . Section >
91
+ < Mjml . Column >
92
+ < Mjml . Text >
97
93
🔹 Error-Free Text in Paratext – The text must pass Basic Checks in
98
94
Paratext without errors.
99
- </ Text >
100
- < Text >
95
+ </ Mjml . Text >
96
+ < Mjml . Text >
101
97
A quick way to verify is by printing the text to PDF format using
102
98
PTXPrint (
103
99
< a href = "https://software.sil.org/ptxprint/" > learn here</ a > ).
104
100
Besides, our Investors love to see your progress and this is a great
105
101
way to share it with them! 😊
106
- </ Text >
107
- < Text >
102
+ </ Mjml . Text >
103
+ < Mjml . Text >
108
104
If errors appear, they must be fixed before we can proceed.
109
- </ Text >
110
- </ Column >
111
- </ Section >
112
- < Section >
113
- < Column >
114
- < Text >
105
+ </ Mjml . Text >
106
+ </ Mjml . Column >
107
+ </ Mjml . Section >
108
+ < Mjml . Section >
109
+ < Mjml . Column >
110
+ < Mjml . Text >
115
111
🔹 Paratext Project Access – We need access to the project in
116
112
Paratext.
117
- </ Text >
118
- < Text >
113
+ </ Mjml . Text >
114
+ < Mjml . Text >
119
115
Please add SC DBL Admin to the project with the Consultant/Archivist
120
116
role.
121
- </ Text >
122
- < Text >
117
+ </ Mjml . Text >
118
+ < Mjml . Text >
123
119
This permission level is required for us to complete the upload.
124
- </ Text >
125
- </ Column >
126
- </ Section >
127
- < Section >
128
- < Column >
129
- < Text >
120
+ </ Mjml . Text >
121
+ </ Mjml . Column >
122
+ </ Mjml . Section >
123
+ < Mjml . Section >
124
+ < Mjml . Column >
125
+ < Mjml . Text >
130
126
🔹 Books Ready for Upload – Please confirm which books are ready for
131
127
DBL.
132
- </ Text >
133
- < Text >
128
+ </ Mjml . Text >
129
+ < Mjml . Text >
134
130
We can upload an entire testament or individual books that have
135
131
completed consultant checking.
136
- </ Text >
137
- </ Column >
138
- </ Section >
139
- < Section >
140
- < Column >
141
- < Head >
132
+ </ Mjml . Text >
133
+ </ Mjml . Column >
134
+ </ Mjml . Section >
135
+ < Mjml . Section >
136
+ < Mjml . Column >
137
+ < Mjml . Text >
142
138
🔗{ ' ' }
143
139
< a href = { dblFormUrl } > Seed Company DBL Publication Request Form</ a >
144
- </ Head >
145
- </ Column >
146
- </ Section >
147
- < Section >
148
- < Column >
149
- < Text >
140
+ </ Mjml . Text >
141
+ </ Mjml . Column >
142
+ </ Mjml . Section >
143
+ < Mjml . Section >
144
+ < Mjml . Column >
145
+ < Mjml . Text >
150
146
All of this information can be entered in the form linked above
151
147
(with yellow highlight).
152
- </ Text >
153
- < Text >
148
+ </ Mjml . Text >
149
+ < Mjml . Text >
154
150
Let me know if you have any questions—I’m happy to assist!
155
- </ Text >
156
- < Text > Best regards, Darcie</ Text >
157
- </ Column >
158
- </ Section >
151
+ </ Mjml . Text >
152
+ < Mjml . Text > Best regards, Darcie</ Mjml . Text >
153
+ </ Mjml . Column >
154
+ </ Mjml . Section >
159
155
</ EmailTemplate >
160
156
) ;
161
157
}
0 commit comments