Skip to content

Commit 9958318

Browse files
Merge pull request #1143 from NHSDigital/DTOSS-12367-remove-breast-feature-button
Hide 'add breast features' button
2 parents 4e4894a + a1499a6 commit 9958318

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

manage_breast_screening/mammograms/jinja2/mammograms/medical_information/section_cards.jinja

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,15 @@
129129
}) }}
130130
{% endif %}
131131

132-
<div class="nhsuk-form-group">
133-
{{ button({
134-
"text": presented_medical_info.add_or_update_breast_features_button.text,
135-
"href": presented_medical_info.add_or_update_breast_features_button.href,
136-
"classes": "nhsuk-button--secondary nhsuk-button--small"
137-
}) }}
138-
</div>
132+
{% if not read_only %}
133+
<div class="nhsuk-form-group">
134+
{{ button({
135+
"text": presented_medical_info.add_or_update_breast_features_button.text,
136+
"href": presented_medical_info.add_or_update_breast_features_button.href,
137+
"classes": "nhsuk-button--secondary nhsuk-button--small"
138+
}) }}
139+
</div>
140+
{% endif %}
139141
{% endmacro %}
140142

141143
{% macro other_information_content(presented_medical_info, read_only=false) %}

0 commit comments

Comments
 (0)