|
179 | 179 | ) |
180 | 180 | }) if consent.given }} |
181 | 181 |
|
182 | | - {{ summaryList({ |
183 | | - card: { |
184 | | - heading: __("consent.firstDose.label"), |
185 | | - headingSize: "m" |
186 | | - }, |
187 | | - rows: summaryRows(consent, { |
188 | | - createdAt: { |
189 | | - label: __("consent.previousDose.createdAt.label"), |
190 | | - value: consent.firstDose.formatted.createdAt_date, |
191 | | - href: editPath("first-dose-date") |
192 | | - }, |
193 | | - country: { |
194 | | - label: __("consent.previousDose.country.label"), |
195 | | - value: consent.firstDose.formatted.country, |
196 | | - href: editPath("first-dose-country") |
197 | | - } |
198 | | - }) |
199 | | - }) if consent.decision == ReplyDecision.AlreadyVaccinated }} |
| 182 | + {% if SessionPresetName.MMR in session.presetNames and consent.decision == ReplyDecision.AlreadyVaccinated %} |
| 183 | + {{ summaryList({ |
| 184 | + card: { |
| 185 | + heading: __("consent.firstDose.label"), |
| 186 | + headingSize: "m" |
| 187 | + }, |
| 188 | + rows: summaryRows(consent, { |
| 189 | + createdAt: { |
| 190 | + label: __("consent.previousDose.createdAt.label"), |
| 191 | + value: consent.firstDose.formatted.createdAt_date, |
| 192 | + href: editPath("first-dose-date") |
| 193 | + }, |
| 194 | + country: { |
| 195 | + label: __("consent.previousDose.country.label"), |
| 196 | + value: consent.firstDose.formatted.country, |
| 197 | + href: editPath("first-dose-country") |
| 198 | + } |
| 199 | + }) |
| 200 | + }) }} |
200 | 201 |
|
201 | | - {{ summaryList({ |
202 | | - card: { |
203 | | - heading: __("consent.secondDose.label"), |
204 | | - headingSize: "m" |
205 | | - }, |
206 | | - rows: summaryRows(consent, { |
207 | | - createdAt: { |
208 | | - label: __("consent.previousDose.createdAt.label"), |
209 | | - value: consent.secondDose.formatted.createdAt_date, |
210 | | - href: editPath("second-dose-date") |
211 | | - }, |
212 | | - country: { |
213 | | - label: __("consent.previousDose.country.label"), |
214 | | - value: consent.secondDose.formatted.country, |
215 | | - href: editPath("second-dose-country") |
216 | | - } |
217 | | - }) |
218 | | - }) if consent.decision == ReplyDecision.AlreadyVaccinated }} |
| 202 | + {{ summaryList({ |
| 203 | + card: { |
| 204 | + heading: __("consent.secondDose.label"), |
| 205 | + headingSize: "m" |
| 206 | + }, |
| 207 | + rows: summaryRows(consent, { |
| 208 | + createdAt: { |
| 209 | + label: __("consent.previousDose.createdAt.label"), |
| 210 | + value: consent.secondDose.formatted.createdAt_date, |
| 211 | + href: editPath("second-dose-date") |
| 212 | + }, |
| 213 | + country: { |
| 214 | + label: __("consent.previousDose.country.label"), |
| 215 | + value: consent.secondDose.formatted.country, |
| 216 | + href: editPath("second-dose-country") |
| 217 | + } |
| 218 | + }) |
| 219 | + }) }} |
| 220 | + {% elif consent.refusalReason == ReplyRefusal.AlreadyVaccinated %} |
| 221 | + {{ summaryList({ |
| 222 | + card: { |
| 223 | + heading: __("consent.previousDose.label", session.programmes[0].nameSentenceCase), |
| 224 | + headingSize: "m" |
| 225 | + }, |
| 226 | + rows: summaryRows(consent, { |
| 227 | + createdAt: { |
| 228 | + label: __("consent.previousDose.createdAt.label"), |
| 229 | + value: consent.firstDose.formatted.createdAt_date, |
| 230 | + href: editPath("previous-dose") |
| 231 | + }, |
| 232 | + country: { |
| 233 | + label: __("consent.previousDose.country.label"), |
| 234 | + value: consent.firstDose.formatted.country, |
| 235 | + href: editPath("previous-dose") |
| 236 | + } |
| 237 | + }) |
| 238 | + }) }} |
| 239 | + {% endif %} |
219 | 240 | {% endblock %} |
0 commit comments