Skip to content

Commit e19626c

Browse files
Enable editing mammogram details outside of an appointment for mammographers (#207)
1 parent 9d5b452 commit e19626c

File tree

1 file changed

+7
-1
lines changed
  • app/views/_includes/medical-information

1 file changed

+7
-1
lines changed

app/views/_includes/medical-information/index.njk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
{# Calling template sets variable `displayFormat` to one of card / expander / flat #}
44

5-
{% set allowEdits = true if (isAppointmentWorkflow and currentUser | isClinician) else false %}
5+
66

77
{# Explicitly set referrer chain to the current url #}
88
{% set referrerChain = currentUrl %}
99

10+
{# Force edits enabled for mammogram history #}
11+
{% set allowEdits = true if (currentUser | isClinician) else false %}
12+
1013
{# Mammogram history #}
1114
{% set sectionHeading = "Mammogram history" %}
1215
{% set subHeading = "The last confirmed mammogram and any added manually since then" %}
@@ -65,6 +68,9 @@
6568
}) }}
6669
{% endswitch %}
6770

71+
{# Set allowEdits for everything else on the #}
72+
{% set allowEdits = true if (isAppointmentWorkflow and currentUser | isClinician) else false %}
73+
6874
{# -------------------------------------------------------------- #}
6975
{# Medical history #}
7076

0 commit comments

Comments
 (0)