@@ -86,16 +86,16 @@ class AppPatientSearchFormComponent < ViewComponent::Base
8686 <% end %>
8787 <% end %>
8888
89- <% if register_statuses . any? %>
90- <%= f . govuk_radio_buttons_fieldset :register_status ,
89+ <% if registration_statuses . any? %>
90+ <%= f . govuk_radio_buttons_fieldset :registration_status ,
9191 legend : { text : "Registration status" , size : "s" } ,
9292 small : true do %>
93- <%= f . govuk_radio_button :register_status , "" , checked : form . register_status . blank? , label : { text : "Any" } %>
94- <% register_statuses . each do |status | %>
95- <%= f . govuk_radio_button :register_status ,
93+ <%= f . govuk_radio_button :registration_status , "" , checked : form . registration_status . blank? , label : { text : "Any" } %>
94+ <% registration_statuses . each do |status | %>
95+ <%= f . govuk_radio_button :registration_status ,
9696 status ,
97- checked : form . register_status == status ,
98- label : { text : t ( status , scope : %i[ status register label ] ) } %>
97+ checked : form . registration_status == status ,
98+ label : { text : t ( status , scope : %i[ status registration label ] ) } %>
9999 <% end %>
100100 <% end %>
101101 <% end %>
@@ -236,7 +236,7 @@ def initialize(
236236 url :,
237237 programmes : [ ] ,
238238 consent_statuses : [ ] ,
239- register_statuses : [ ] ,
239+ registration_statuses : [ ] ,
240240 triage_statuses : [ ] ,
241241 vaccination_statuses : [ ] ,
242242 patient_specific_direction_statuses : [ ] ,
@@ -252,7 +252,7 @@ def initialize(
252252
253253 @programmes = programmes
254254 @consent_statuses = consent_statuses
255- @register_statuses = register_statuses
255+ @registration_statuses = registration_statuses
256256 @triage_statuses = triage_statuses
257257 @vaccination_statuses = vaccination_statuses
258258 @patient_specific_direction_statuses = patient_specific_direction_statuses
@@ -270,7 +270,7 @@ def initialize(
270270 :url ,
271271 :programmes ,
272272 :consent_statuses ,
273- :register_statuses ,
273+ :registration_statuses ,
274274 :triage_statuses ,
275275 :vaccination_statuses ,
276276 :patient_specific_direction_statuses ,
@@ -296,7 +296,7 @@ def open_details?
296296 def show_buttons_in_details?
297297 !(
298298 consent_statuses . any? || vaccination_statuses . any? ||
299- register_statuses . any? || triage_statuses . any? || year_groups . any?
299+ registration_statuses . any? || triage_statuses . any? || year_groups . any?
300300 )
301301 end
302302
0 commit comments