Skip to content

Commit ee51cec

Browse files
authored
Merge pull request #1137 from NHSDigital/fix/add-missing-grid-row-for-gateway-images
Fix/add missing grid row for gateway images
2 parents a2e050f + c7aa100 commit ee51cec

File tree

2 files changed

+19
-27
lines changed

2 files changed

+19
-27
lines changed

manage_breast_screening/mammograms/jinja2/mammograms/_image_set.jinja

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,5 @@
2626
{% endfor %}
2727
<div style="clear:both"></div>
2828
</div>
29-
{% if images | length > 1 %}
30-
<div class="nhsuk-u-margin-top-3">
31-
{% call details({
32-
"summaryText": "Additional image details"
33-
}) %}
34-
<!-- TODO: Additional image details -->
35-
{% endcall %}
36-
</div>
37-
{% endif %}
3829
{% endif %}
3930
</div>

manage_breast_screening/mammograms/jinja2/mammograms/gateway_images.jinja

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,27 @@
1313

1414
{% include "mammograms/_troubleshoot_images.jinja" %}
1515

16-
<div class="nhsuk-grid-column-two-thirds nhsuk-u-padding-0">
17-
{% call fieldset({
18-
"legend": {
19-
"text": "Additional details",
20-
"classes": "nhsuk-fieldset__legend--m"
21-
}
22-
}) %}
23-
{{ form.imperfect_but_best_possible.as_field_group() }}
16+
<div class="nhsuk-grid-row">
17+
<div class="nhsuk-grid-column-two-thirds">
18+
{% call fieldset({
19+
"legend": {
20+
"text": "Additional details",
21+
"classes": "nhsuk-fieldset__legend--m"
22+
}
23+
}) %}
24+
{{ form.imperfect_but_best_possible.as_field_group() }}
2425

25-
{% set reasons_html %}
26-
{{ form.reasons_incomplete.as_field_group() }}
27-
{{ form.reasons_incomplete_details.as_field_group() }}
28-
{{ form.should_recall.as_field_group() }}
29-
{% endset %}
30-
{% do form.not_all_mammograms_taken.add_conditional_html('true', reasons_html) %}
26+
{% set reasons_html %}
27+
{{ form.reasons_incomplete.as_field_group() }}
28+
{{ form.reasons_incomplete_details.as_field_group() }}
29+
{{ form.should_recall.as_field_group() }}
30+
{% endset %}
31+
{% do form.not_all_mammograms_taken.add_conditional_html('true', reasons_html) %}
3132

32-
{{ form.not_all_mammograms_taken.as_field_group() }}
33-
{{ form.additional_details.as_field_group() }}
34-
{% endcall %}
33+
{{ form.not_all_mammograms_taken.as_field_group() }}
34+
{{ form.additional_details.as_field_group() }}
35+
{% endcall %}
36+
</div>
3537
</div>
36-
<div style="clear: both;"></div>
3738

3839
{% endblock %}

0 commit comments

Comments
 (0)