tango-app-api-trax 3.8.14 → 3.8.15-nike

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,250 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
7
+ <title>Recurring Flags Detected</title>
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <style type="text/css">
10
+ body { font-family: "Inter", sans-serif !important; }
11
+ body, table, td, a { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
12
+ table, td { mso-table-rspace: 0pt; mso-table-lspace: 0pt; }
13
+ img { -ms-interpolation-mode: bicubic; }
14
+ a[x-apple-data-detectors] {
15
+ font-family: "inherit" !important;
16
+ font-size: inherit !important;
17
+ font-weight: inherit !important;
18
+ line-height: inherit !important;
19
+ color: inherit !important;
20
+ text-decoration: none !important;
21
+ }
22
+ body { width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; }
23
+ table { border-collapse: collapse !important; }
24
+ a { color: #1a82e2; }
25
+ img { height: auto; line-height: 100%; text-decoration: none; border: 0; outline: none; }
26
+ .flagText { font-size: 16px; font-weight: 600; line-height: 24px; text-align: left; }
27
+ .rfTable { width: 100%; border-collapse: collapse; }
28
+ .rfTable th, .rfTable td {
29
+ border: 1px solid #E2E8F0;
30
+ padding: 8px 12px;
31
+ font-size: 13px;
32
+ text-align: left;
33
+ color: #202B3C;
34
+ }
35
+ .rfTable th { background-color: #F1F5F9; font-weight: 600; }
36
+ .highlight { font-size: 14px; color: #202B3C; line-height: 22px; }
37
+ </style>
38
+ </head>
39
+
40
+ <body style="background-color: #dbe5ea;">
41
+ <div class="preheader" style="display: none; max-width: 0; max-height: 0; overflow: hidden; font-size: 1px; line-height: 1px; color: #fff; opacity: 0;">
42
+ Recurring Flags Detected
43
+ </div>
44
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-left:10px;padding-right:10px">
45
+ <tr>
46
+ <td bgcolor="#dbe5ea" style="padding:32px 10px 0 10px">
47
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;" align="center">
48
+ <tr>
49
+ <td style="margin-top: 0px;margin-bottom: 0px;font-size: 16px;line-height: 24px;background-color: #ffffff;padding-left: 18px;padding-right: 24px;padding-top: 24px;padding-bottom: 24px;">
50
+ <p style="margin-top: 0px;margin-bottom: 0px;">
51
+ <a href="https://tangoeye.ai/" style="text-decoration: none;outline: none;color: #ffffff;">
52
+ <img src="https://devtangoretail-api.tangoeye.ai/logo.png" width="200" height="100" alt="TangoEye"
53
+ style="-ms-interpolation-mode: bicubic;vertical-align: middle;border: 0;line-height: 100%;height: auto;outline: none;text-decoration: none;">
54
+ </a>
55
+ </p>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td align="left" bgcolor="#ffffff" style="padding-left: 30px;padding-right: 24px;font-size: 14px; line-height: 24px;">
60
+ <p style="width: 624px;height: 0px;border: 1px solid #CBD5E1;flex: none;order: 1;flex-grow: 0;"></p>
61
+ </td>
62
+ </tr>
63
+
64
+ {{!-- Intro line --}}
65
+ <tr>
66
+ <td style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom: 10px;">
67
+ <div style="margin-top: 0px;margin-bottom: 0px;font-size: 16px;line-height: 28px;color: #82899a;">
68
+ <span style="font-weight: 400;color: #121A26;line-height: 140%;">
69
+ Hi,<br/>
70
+ {{#if data.isMultiStoreSingleChecklist}}
71
+ Recurring flags has been detected across multiple {{data.subjectLabelPluralLower}} in recent <b>{{data.checklistName}}</b> on recent submissions, exceeding the configured threshold of {{data.threshold}} occurrences.
72
+ {{else if data.isMultiStore}}
73
+ Recurring flags has been detected across multiple {{data.subjectLabelPluralLower}} and across multiple checklists on recent submissions, exceeding the configured threshold of {{data.threshold}} occurrences.
74
+ {{else if data.isMultiChecklist}}
75
+ A Recurring flags has been identified for {{data.subjectLabelLower}} <b>{{data.subjectName}}</b> across multiple checklists on recent submissions, exceeding the configured threshold of {{data.threshold}} occurrences.
76
+ {{else}}
77
+ A recurring flag has been identified for {{data.subjectLabelLower}} <b>{{data.subjectName}}</b>.where a question has been flagged multiple times in recent {{data.checklistName}} submissions, exceeding the configured threshold of {{data.threshold}} occurrences.
78
+ {{/if}}
79
+ </span>
80
+ </div>
81
+ </td>
82
+ </tr>
83
+
84
+ {{!-- Multi-store: Key Highlights --}}
85
+ {{#if data.isMultiStore}}
86
+ <tr>
87
+ <td style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom: 10px;">
88
+ <div class="highlight">
89
+ <b>Key Highlights:</b>
90
+ <ul style="margin:8px 0 0 0;padding-left:18px;">
91
+ <li>Total {{data.subjectLabelPlural}} with Recurring Flags: {{data.highlights.totalSubjects}}</li>
92
+ {{#unless data.isMultiStoreSingleChecklist}}
93
+ <li>Total Checklists with Recurring Flags: {{data.highlights.totalChecklists}}</li>
94
+ {{/unless}}
95
+ <li>Total Recurring Flags: {{data.highlights.totalFlags}}</li>
96
+ </ul>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ {{/if}}
101
+
102
+ {{!-- Section header for details --}}
103
+ <tr>
104
+ <td style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom: 10px;">
105
+ <div style="font-size: 16px;line-height: 28px;color: #121A26;font-weight:600;">
106
+ {{#if data.isMultiStore}}
107
+ Details of the Recurring Flags are as follows:
108
+ {{else if data.isMultiChecklist}}
109
+ Details of the Recurring Flags from {{data.subjectLabel}} {{data.subjectName}} are as follows:
110
+ {{else}}
111
+ Details of the Recurring Flags from checklist are as follows:
112
+ {{/if}}
113
+ </div>
114
+ </td>
115
+ </tr>
116
+ </table>
117
+ </td>
118
+ </tr>
119
+
120
+ {{!-- ============ Single store + single checklist body ============ --}}
121
+ {{#unless data.isMultiChecklist}}{{#unless data.isMultiStore}}
122
+ <tr>
123
+ <td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
124
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
125
+ <tr bgcolor="#ffffff">
126
+ <td class="flagText" style="padding-left:30px;line-height: 24px;color:#000000">{{data.subjectLabel}} Name :</td>
127
+ <td></td><td></td>
128
+ <td class="flagText">{{data.subjectName}}</td>
129
+ </tr>
130
+ <tr bgcolor="#ffffff">
131
+ <td class="flagText" style="padding-left:30px;line-height: 24px;">Checklist Name :</td>
132
+ <td></td><td></td>
133
+ <td class="flagText">{{data.checklistName}}</td>
134
+ </tr>
135
+ <tr bgcolor="#ffffff">
136
+ <td class="flagText" style="padding-left:30px;line-height: 24px;">Last Submitted By :</td>
137
+ <td></td><td></td>
138
+ <td class="flagText">{{data.lastSubmittedBy}}</td>
139
+ </tr>
140
+ <tr bgcolor="#ffffff">
141
+ <td class="flagText" style="padding-left:30px;line-height: 24px;">Last Submission Date :</td>
142
+ <td></td><td></td>
143
+ <td class="flagText">{{data.lastSubmissionDate}}</td>
144
+ </tr>
145
+ <tr bgcolor="#ffffff">
146
+ <td class="flagText" style="padding-left:30px;line-height: 24px;">No of Flags :</td>
147
+ <td></td><td></td>
148
+ <td class="flagText">{{data.totalFlags}} (Question Flags: {{data.flagCount}}, Run AI Flags: {{data.runAICount}})</td>
149
+ </tr>
150
+ </table>
151
+ </td>
152
+ </tr>
153
+ {{/unless}}{{/unless}}
154
+
155
+ {{!-- ============ Tabular body for multi-checklist or multi-store ============ --}}
156
+ {{#if data.showTable}}
157
+ <tr>
158
+ <td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
159
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
160
+ <tr>
161
+ <td style="padding:10px 30px 10px 30px;background-color:#ffffff;">
162
+ <table class="rfTable">
163
+ <thead>
164
+ <tr>
165
+ {{#if data.isMultiStore}}{{#unless data.isUserCoverage}}<th>{{data.subjectLabel}} Name</th>{{/unless}}{{/if}}
166
+ {{#unless data.isMultiStoreSingleChecklist}}<th>Checklist Name</th>{{/unless}}
167
+ <th>Last Submitted By</th>
168
+ <th>Last Submission Date</th>
169
+ <th>Total Recurring Flags</th>
170
+ </tr>
171
+ </thead>
172
+ <tbody>
173
+ {{#each data.rows}}
174
+ <tr>
175
+ {{#if ../data.isMultiStore}}{{#unless ../data.isUserCoverage}}<td>{{this.subjectName}}</td>{{/unless}}{{/if}}
176
+ {{#unless ../data.isMultiStoreSingleChecklist}}<td>{{this.checklistName}}</td>{{/unless}}
177
+ <td>{{this.lastSubmittedBy}}</td>
178
+ <td>{{this.lastSubmissionDate}}</td>
179
+ <td>{{this.totalFlags}} (Question Flags: {{this.flagCount}}, Run AI Flags: {{this.runAICount}})</td>
180
+ </tr>
181
+ {{/each}}
182
+ </tbody>
183
+ </table>
184
+ </td>
185
+ </tr>
186
+ </table>
187
+ </td>
188
+ </tr>
189
+ {{/if}}
190
+
191
+ {{!-- View Flags button --}}
192
+ <tr>
193
+ <td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
194
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
195
+ <tr>
196
+ <td bgcolor="#ffffff" style="padding: 20px;padding-top:15px;padding-left:30px;">
197
+ <table border="0" cellpadding="0" cellspacing="0">
198
+ <tr>
199
+ <td align="center" bgcolor="#00A3FF" style="border-radius: 6px;height:50px;">
200
+ <a href="{{data.domain}}" target="_blank"
201
+ style="display: inline-block; padding: 16px 36px;font-size: 16px; color: #ffffff; text-decoration: none; border-radius: 6px;">
202
+ View Flags
203
+ </a>
204
+ </td>
205
+ </tr>
206
+ </table>
207
+ </td>
208
+ </tr>
209
+ </table>
210
+ </td>
211
+ </tr>
212
+
213
+ {{!-- Attachment hint when full data exceeds inline limit --}}
214
+ {{#if data.hasAttachment}}
215
+ <tr>
216
+ <td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
217
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
218
+ <tr>
219
+ <td bgcolor="#ffffff" style="padding:0 30px 15px 30px;font-size:13px;color:#202B3C;">
220
+ Refer to the attached file for a detailed breakdown of the Full report
221
+ </td>
222
+ </tr>
223
+ </table>
224
+ </td>
225
+ </tr>
226
+ {{/if}}
227
+
228
+ <tr>
229
+ <td align="center" bgcolor="#dbe5ea" style="padding:0 10px 32px 10px;">
230
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
231
+ <tr>
232
+ <td style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-top:5px">
233
+ <div style="font-size: 12px;color: #202B3C;font-weight: 400;line-height: 150%;">
234
+ <p>If you have any questions or need assistance, please reach out to us at support@tangotech.co.in.</p>
235
+ </div>
236
+ </td>
237
+ </tr>
238
+ <tr>
239
+ <td style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom:15px">
240
+ <div style="font-size: 12px;color: #202B3C;font-weight: 400;line-height: 150%;">
241
+ <p>© Tango Eye. All rights reserved.</p>
242
+ </div>
243
+ </td>
244
+ </tr>
245
+ </table>
246
+ </td>
247
+ </tr>
248
+ </table>
249
+ </body>
250
+ </html>
@@ -96,6 +96,7 @@
96
96
  font-size: 10px !important;
97
97
  font-weight: 400;
98
98
  line-height: 28px;
99
+ white-space: pre-line;
99
100
  }
100
101
 
101
102
  .text-center {
@@ -135,6 +136,10 @@
135
136
  .headertitle.submittedText {
136
137
  width:116px !important;
137
138
  }
139
+
140
+ .flagged {
141
+ color:red
142
+ }
138
143
  </style>
139
144
  </head>
140
145
 
@@ -196,21 +201,24 @@
196
201
  {{#each data.questionAnswers}}
197
202
  <div class="pdfcontent">
198
203
  <div style="padding-bottom:20px;">
199
- <span class="sectionname">{{sectionName}} </span>&nbsp;<div class="horizondal-line">
200
- <hr />
201
- </div>
204
+ <table style="width:100%;border-collapse:collapse;">
205
+ <tr>
206
+ <td class="sectionname" style="white-space:nowrap;padding-right:8px;width:1%;">{{sectionName}}</td>
207
+ <td style="width:99%;"><hr class="horizondal-line" style="margin:0;border:none;border-top:1px solid #98A2B3;"/></td>
208
+ </tr>
209
+ </table>
202
210
  </div>
203
211
  {{#each questions}}
204
212
  <div style="padding-bottom:20px">
205
213
  {{#if userAnswer.length}}
206
214
  <span class="question">{{qno}}.</span>&nbsp;<span class="question">{{qname}}</span>
207
215
  {{#neq questionReferenceImage ''}}
208
- <div class="Reference"><span>Reference Image</span><br>
216
+ <div class="Reference"><span>Question Reference Image</span><br>
209
217
  <img src="{{questionReferenceImage}}" width="200" height="180" />
210
218
  </div>
211
219
  {{/neq}}
212
220
  {{#if multiQuestionReferenceImage.length}}
213
- <div class="Reference"><span>Reference Images</span><br>
221
+ <div class="Reference"><span>Question Reference Image</span><br>
214
222
  {{#each multiQuestionReferenceImage}}
215
223
  <img src="{{this}}" width="200" height="180" />
216
224
  {{/each}}
@@ -220,7 +228,7 @@
220
228
  <div class="px-4 answer">
221
229
  {{#if (includes ../../../data.validateType ../answerType)}}
222
230
  {{#eq sopFlag true }}
223
- <span id="agreed" style="color:red">{{answer}}</span><br>
231
+ <span id="agreed flagged">{{answer}}</span><br>
224
232
  {{/eq}}
225
233
  {{#eq sopFlag false }}
226
234
  <span id="agreed">{{answer}}</span><br>
@@ -228,15 +236,19 @@
228
236
  {{#eq validation true}}
229
237
  <table style="width:100%">
230
238
  <tr>
231
- {{#if multiReferenceImage.length}}
232
- <td style="width:50%;vertical-align:top">
233
- <div class="Reference"><span>Reference Image</span><br>
234
- {{#each multiReferenceImage}}
235
- <img src="{{this}}" width="200" height="180" />
236
- {{/each}}
237
- </div>
238
- </td>
239
- {{/if}}
239
+ {{#neq ../answerType 'image/video'}}
240
+ {{#neq ../answerType 'multipleImage'}}
241
+ {{#if multiReferenceImage.length}}
242
+ <td style="width:50%;vertical-align:top">
243
+ <div class="Reference"><span>Reference Image</span><br>
244
+ {{#each multiReferenceImage}}
245
+ <img src="{{this}}" width="200" height="180" />
246
+ {{/each}}
247
+ </div>
248
+ </td>
249
+ {{/if}}
250
+ {{/neq}}
251
+ {{/neq}}
240
252
  <td style="width:50%;vertical-align:top">
241
253
  {{#eq validationType 'Capture Image'}}
242
254
  <div class="Reference"><span>Uploaded Image</span><br>
@@ -247,7 +259,7 @@
247
259
  <a href="{{validationAnswer}}" target="_blank" style="text-decoration: underline;color:#0085D2" id="agreed">{{validationAnswer}}</a><br>
248
260
  {{/eq}}
249
261
  {{#eq validationType 'Descriptive Answer'}}
250
- {{validationAnswer}}
262
+ <span class="{{#if this.sopFlag}}flagged{{/if}}">Validation Answer: {{validationAnswer}}</span>
251
263
  {{/eq}}
252
264
  {{#eq validationType 'Capture Multiple Image with description'}}
253
265
  <div class="Reference"><span>Uploaded Image</span><br>
@@ -269,15 +281,15 @@
269
281
  {{!-- {{#each ../answers}} --}}
270
282
  <table style="width:100%">
271
283
  <tr>
272
- {{#neq referenceImage ''}}
284
+ {{#if multiReferenceImage.length}}
273
285
  <td style="width:50%">
274
- {{#each multiReferenceImage}}
275
- <div class="Reference"><span>Reference Image</span><br>
286
+ <div class="Reference"><span>Reference Image</span><br>
287
+ {{#each multiReferenceImage}}
276
288
  <img src="{{this}}" width="200" height="180" />
277
- </div>
278
- {{/each}}
289
+ {{/each}}
290
+ </div>
279
291
  </td>
280
- {{/neq}}
292
+ {{/if}}
281
293
  <td style="width:50%">
282
294
  <div class="Reference"><span>Uploaded Image</span><br>
283
295
  <img src="{{answer}}" width="200" height="180" />
@@ -291,15 +303,15 @@
291
303
  {{!-- {{#each ../answers}} --}}
292
304
  <table style="width:100%">
293
305
  <tr>
294
- {{#neq referenceImage ''}}
306
+ {{#if multiReferenceImage.length}}
295
307
  <td style="width:50%">
296
- {{#each multiReferenceImage}}
297
308
  <div class="Reference"><span>Reference Image</span><br>
309
+ {{#each multiReferenceImage}}
298
310
  <img src="{{this}}" width="200" height="180" />
311
+ {{/each}}
299
312
  </div>
300
- {{/each}}
301
313
  </td>
302
- {{/neq}}
314
+ {{/if}}
303
315
  <td style="width:50%">
304
316
  <div class="Reference"><span>Uploaded Image</span><br>
305
317
  <img src="{{answer}}" width="200" height="180" />
@@ -313,13 +325,15 @@
313
325
  {{!-- {{#each ../answers}} --}}
314
326
  <table style="width:100%">
315
327
  <tr>
316
- {{#neq referenceImage ''}}
328
+ {{#if multiReferenceImage.length}}
317
329
  <td style="width:50%">
318
330
  <div class="Reference"><span>Reference Image</span><br>
319
- <img src="{{referenceImage}}" width="200" height="180" />
331
+ {{#each multiReferenceImage}}
332
+ <img src="{{this}}" width="200" height="180" />
333
+ {{/each}}
320
334
  </div>
321
335
  </td>
322
- {{/neq}}
336
+ {{/if}}
323
337
  {{#eq answerType 'image'}}
324
338
  <td style="width:50%">
325
339
  <div class="Reference"><span>Uploaded Image</span><br>
@@ -340,13 +354,15 @@
340
354
  {{!-- {{#each ../answers}} --}}
341
355
  <table style="width:100%">
342
356
  <tr>
343
- {{#neq referenceImage ''}}
357
+ {{#if multiReferenceImage.length}}
344
358
  <td style="width:50%">
345
359
  <div class="Reference"><span>Reference Image</span><br>
346
- <img src="{{referenceImage}}" width="200" height="180" />
360
+ {{#each multiReferenceImage}}
361
+ <img src="{{this}}" width="200" height="180" />
362
+ {{/each}}
347
363
  </div>
348
364
  </td>
349
- {{/neq}}
365
+ {{/if}}
350
366
  <td style="width:50%">
351
367
  <div class="Reference"><span>Uploaded Image</span><br>
352
368
  <img src="{{answer}}" width="200" height="180" />
@@ -69,10 +69,12 @@
69
69
  .q-answer-text{font-size:12px;color:#1a1a1a;line-height:1.5}
70
70
  .q-answer-text.flagged{color:#a32d2d}
71
71
  .q-answer-media{margin-top:8px}
72
- .q-answer-media img,.q-answer-media video{display:block;max-width:220px;max-height:180px;border-radius:6px}
72
+ .q-answer-media img,.q-answer-media video,.q-answer-item td img{display:block;width:200px;height:180px;object-fit:cover;border-radius:6px;margin-bottom:6px}
73
+ .img-grid{display:flex;flex-wrap:wrap;gap:8px}
74
+ .img-grid img{margin-bottom:0}
73
75
  .q-answer-link{font-size:12px;color:#0085D2;text-decoration:underline;word-break:break-all}
74
76
  .q-answer-caption{font-size:11px;color:#666;margin-bottom:4px}
75
- .q-answer-remarks{font-size:11px;color:#666;margin-top:6px}
77
+ .q-answer-remarks{font-size:11px;color:#666;margin-top:6px;white-space:pre-line}
76
78
  /* Footer */
77
79
  .page-footer{position:absolute;bottom:20px;left:40px;right:40px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#999;border-top:1px solid #d9d9d9;padding-top:10px}
78
80
  .footer-brand{display:flex;align-items:center;gap:8px;font-weight:600;color:#0066CC;font-size:11px}
@@ -111,7 +113,7 @@
111
113
  <div class="cover-summary">
112
114
  <div class="cover-sum-row"><span class="cover-sum-label">No. of questions</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numQuestions}}</span></div>
113
115
  <div class="cover-sum-row"><span class="cover-sum-label">No. of flags</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numFlags}}</span></div>
114
- <div class="cover-sum-row"><span class="cover-sum-label">AI Breached</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{aiBreached}}</span></div>
116
+ {{!-- <div class="cover-sum-row"><span class="cover-sum-label">AI Breached</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{aiBreached}}</span></div> --}}
115
117
  <div class="cover-sum-row"><span class="cover-sum-label">Submitted By</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{submittedBy}}</span></div>
116
118
  <div class="cover-sum-row"><span class="cover-sum-label">Country</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{country}}</span></div>
117
119
  </div>
@@ -179,60 +181,144 @@
179
181
  <div>Score:{{this.score}}</div>
180
182
  {{/if}}
181
183
  </div>
184
+ {{#if this.questionReferenceImage}}
185
+ <div class="q-answer-media">
186
+ <div class="q-answer-caption">Question Reference Image</div>
187
+ <img src="{{this.questionReferenceImage}}" alt="Reference Image" />
188
+ </div>
189
+ {{/if}}
190
+ {{#if this.multiQuestionReferenceImage.length}}
191
+ <div class="q-answer-media">
192
+ <div class="q-answer-caption">Question Reference Images</div>
193
+ <div class="img-grid">
194
+ {{#each this.multiQuestionReferenceImage}}
195
+ <img src="{{this}}" alt="Reference Image" />
196
+ {{/each}}
197
+ </div>
198
+ </div>
199
+ {{/if}}
182
200
  {{!-- <span class="q-ans {{#if this.isYes}}ans-yes{{else}}{{#if this.isNo}}ans-no{{/if}}{{/if}}">{{#if this.isYes}}✓ Yes{{else}}{{#if this.isNo}}✗ No{{else}}{{this.answerDisplay}}{{/if}}{{/if}}</span> --}}
183
201
  {{#if this.userAnswer.length}}
184
202
  <div class="q-answer-list">
185
203
  {{#each this.userAnswer}}
186
204
  <div class="q-answer-item">
187
- {{#if this.answer}}
188
- {{#eq this.answerType 'image'}}
189
- <div class="q-answer-media">
190
- {{#if this.referenceImage}}
191
- <div class="q-answer-caption">Reference Image</div>
192
- <img src="{{this.referenceImage}}" alt="Reference Image" />
193
- {{/if}}
194
- <div class="q-answer-caption">Uploaded Image</div>
195
- <img src="{{this.answer}}" alt="Uploaded Image" />
196
- </div>
197
- {{/eq}}
198
- {{#eq this.answerType 'video'}}
205
+ {{#eq this.answerType 'text'}}
206
+ {{#if this.answer}}
207
+ <div class="q-answer-text {{#if this.sopFlag}}flagged{{/if}}">{{this.answer}}</div>
208
+ {{/if}}
209
+ {{/eq}}
210
+ {{#eq this.answerType 'video'}}
211
+ {{#if this.answer}}
199
212
  <div class="q-answer-media">
200
213
  <div class="q-answer-caption">Uploaded Video</div>
201
214
  <a class="q-answer-link" href="{{this.answer}}" target="_blank">{{this.answer}}</a>
202
215
  </div>
203
- {{/eq}}
204
- {{#eq this.answerType 'text'}}
205
- <div class="q-answer-text {{#if this.sopFlag}}flagged{{/if}}">{{this.answer}}</div>
206
- {{/eq}}
207
- {{/if}}
208
-
209
- {{#if this.validation}}
216
+ {{/if}}
217
+ {{/eq}}
218
+ {{#eq this.validationDisplayType 'text'}}
210
219
  {{#if this.validationAnswer}}
211
- {{#eq this.validationDisplayType 'image'}}
212
- <div class="q-answer-media">
213
- <div class="q-answer-caption">Validation Image</div>
214
- <img src="{{this.validationAnswer}}" alt="Validation Image" />
215
- </div>
216
- {{/eq}}
217
- {{#eq this.validationDisplayType 'video'}}
218
- <div class="q-answer-media">
219
- <div class="q-answer-caption">Validation Video</div>
220
- <a class="q-answer-link" href="{{this.validationAnswer}}" target="_blank">{{this.validationAnswer}}</a>
221
- </div>
222
- {{/eq}}
223
- {{#eq this.validationDisplayType 'text'}}
224
- <div class="q-answer-text">{{this.validationAnswer}}</div>
225
- {{/eq}}
220
+ <div class="q-answer-text {{#if this.sopFlag}}flagged{{/if}}">validation Answer: {{this.validationAnswer}}</div>
226
221
  {{/if}}
227
- {{/if}}
222
+ {{/eq}}
223
+ {{#eq this.validationDisplayType 'video'}}
224
+ {{#if this.validationAnswer}}
225
+ <div class="q-answer-caption">Validation Video</div>
226
+ <a class="q-answer-link" href="{{this.validationAnswer}}" target="_blank">{{this.validationAnswer}}</a>
227
+ {{/if}}
228
+ {{/eq}}
228
229
 
229
- {{#if this.remarks}}
230
- <div class="q-answer-remarks">Remarks: {{this.remarks}}</div>
231
- {{/if}}
230
+ <table style="width:100%;margin-top:8px;table-layout:fixed"><tr>
231
+ <td style="width:50%;vertical-align:top;padding-right:8px">
232
+ {{#neq ../answerType 'image/video'}}
233
+ {{#neq ../answerType 'multipleImage'}}
234
+ {{#if this.multiReferenceImage.length}}
235
+ <div class="q-answer-media">
236
+ <div class="q-answer-caption">Reference Images</div>
237
+ {{#each this.multiReferenceImage}}
238
+ <img src="{{this}}" alt="Reference Image" />
239
+ {{/each}}
240
+ </div>
241
+ {{else}}
242
+ {{#if this.referenceImage}}
243
+ <div class="q-answer-media">
244
+ <div class="q-answer-caption">Reference Image</div>
245
+ <img src="{{this.referenceImage}}" alt="Reference Image" />
246
+ </div>
247
+ {{else}}
248
+ {{#eq this.answerType 'image'}}
249
+ {{#if this.answer}}
250
+ <div class="q-answer-media">
251
+ <div class="q-answer-caption">Uploaded Image</div>
252
+ <img src="{{this.answer}}" alt="Uploaded Image" />
253
+ </div>
254
+ {{/if}}
255
+ {{/eq}}
256
+ {{/if}}
257
+ {{/if}}
258
+ {{else}}
259
+ {{#eq this.answerType 'image'}}
260
+ {{#if this.answer}}
261
+ <div class="q-answer-media">
262
+ <div class="q-answer-caption">Uploaded Image</div>
263
+ <img src="{{this.answer}}" alt="Uploaded Image" />
264
+ </div>
265
+ {{/if}}
266
+ {{/eq}}
267
+ {{/neq}}
268
+ {{else}}
269
+ {{#eq this.answerType 'image'}}
270
+ {{#if this.answer}}
271
+ <div class="q-answer-media">
272
+ <div class="q-answer-caption">Uploaded Image</div>
273
+ <img src="{{this.answer}}" alt="Uploaded Image" />
274
+ </div>
275
+ {{/if}}
276
+ {{/eq}}
277
+ {{/neq}}
278
+ </td>
279
+ <td style="width:50%;vertical-align:top;padding-left:8px">
280
+ {{#eq this.answerType 'image'}}
281
+ {{#if this.answer}}
282
+ {{#neq ../answerType 'image/video'}}
283
+ {{#neq ../answerType 'multipleImage'}}
284
+ {{#if this.multiReferenceImage.length}}
285
+ <div class="q-answer-caption">Uploaded Image</div>
286
+ <img src="{{this.answer}}" alt="Uploaded Image" />
287
+ {{else}}
288
+ {{#if this.referenceImage}}
289
+ <div class="q-answer-caption">Uploaded Image</div>
290
+ <img src="{{this.answer}}" alt="Uploaded Image" />
291
+ {{/if}}
292
+ {{/if}}
293
+ {{/neq}}
294
+ {{/neq}}
295
+ {{/if}}
296
+ {{/eq}}
297
+ {{#if this.validation}}
298
+ {{#eq this.validationDisplayType 'image'}}
299
+ {{#if this.validationAnswer}}
300
+ <div class="q-answer-caption">Validation Image</div>
301
+ <img src="{{this.validationAnswer}}" alt="Validation Image" />
302
+ {{/if}}
303
+ {{/eq}}
304
+ {{#eq this.validationDisplayType 'multiImage'}}
305
+ {{#if this.validationImage.length}}
306
+ <div class="q-answer-caption">Validation Image</div>
307
+ {{#each this.validationImage}}
308
+ <img src="{{this}}" alt="Validation Image" />
309
+ {{/each}}
310
+ {{/if}}
311
+ {{/eq}}
312
+ {{/if}}
313
+ </td>
314
+ </tr></table>
232
315
  </div>
233
316
  {{/each}}
234
317
  </div>
235
318
  {{/if}}
319
+ {{#if this.remarks}}
320
+ <div class="q-answer-remarks">Remarks: {{this.remarks}}</div>
321
+ {{/if}}
236
322
  </div>
237
323
  </div>
238
324
  {{/each}}