Skip to content

Commit 09cf086

Browse files
committed
Update content for sending invites to clinic
This updates the content when sending invites to the clinic after a session has been completed to clarify that we can't know if any of the children have already booked in to the clinic. Jira-Issue: MAV-1792
1 parent 9a50dfe commit 09cf086

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/views/sessions/invite_to_clinic/edit.html.erb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
<% end %>
1111

1212
<% if @initial_invitations %>
13-
<p>This school session has been completed.</p>
14-
1513
<% if @invitations_to_send == 1 %>
16-
<p>There is <%= @invitations_to_send %> child currently without clinic appointments. You can send invitations to their parents to book an appointment.</p>
14+
<p><%= @invitations_to_send %> child was not vaccinated. You can send invitations to their parents to book an appointment.</p>
1715
<% else %>
18-
<p>There are <%= @invitations_to_send %> children currently without clinic appointments. You can send invitations to their parents to book an appointment.</p>
16+
<p><%= @invitations_to_send %> children were not vaccinated. You can send invitations to their parents to book an appointment.</p>
1917
<% end %>
2018
<% else %>
2119
<% if @invitations_to_send == 0 %>

spec/features/manage_school_sessions_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ def when_i_click_on_send_invitations
290290

291291
def then_i_see_the_send_invitations_page
292292
expect(page).to have_content("Invite parents to book a clinic appointment")
293-
expect(page).to have_content(
294-
"There is 1 child currently without clinic appointments."
295-
)
293+
expect(page).to have_content("1 child was not vaccinated.")
296294
end
297295

298296
alias_method :and_i_click_on_send_invitations,

0 commit comments

Comments
 (0)