<p class="govuk-body">The following groups of cells might have conflicting data. Check the answers and fix any incorrect data.<br><br>If the answers are correct, fix the critical errors and reupload the file. You'll need to confirm that the following data is correct when the file only contains potential errors.</p>
<%= govuk_table do |table| %>
<%= govuk_table(html_attributes: { class: "no-bottom-border" }) do |table| %>
<%= table.with_head do |head| %>
<% head.with_row do |row| %>
<% row.with_cell(header: true, text: "Cell") %>
@ -50,16 +50,16 @@
<% end %>
<%= table.with_body do |body| %>
<% potential_errors.group_by(&:error).each do |error_message, errors| %>
<% potential_errors.group_by(&:error).each_with_index do |(error_message, errors), group_index| %>
flash[:notice]="The #{@collection_resource.log_type}#{text_year_range_format(@collection_resource.year)}#{@collection_resource.short_display_name.downcase} has been updated."
"The #{@collection_resource.log_type}#{text_year_range_format(@collection_resource.year)}#{@collection_resource.short_display_name} is now available to users."
else
"The #{@collection_resource.log_type}#{text_year_range_format(@collection_resource.year)}#{@collection_resource.short_display_name} has been uploaded."
flash[:notice]="The #{@collection_resource.log_type}#{text_year_range_format(@collection_resource.year)}#{@collection_resource.short_display_name.downcase} has been deleted."
{label:"Helpdesk ticket",value:merge_request.helpdesk_ticket.present??link_to("#{merge_request.helpdesk_ticket} (opens in a new tab)","https://dluhcdigital.atlassian.net/browse/#{merge_request.helpdesk_ticket}",target:"_blank",rel:"noopener noreferrer"):display_value_or_placeholder(nil),action:merge_request_action(merge_request,"helpdesk_ticket")},
{label:"Helpdesk ticket",value:merge_request.helpdesk_ticket.present??link_to("#{merge_request.helpdesk_ticket} (opens in a new tab)","https://mhclgdigital.atlassian.net/browse/#{merge_request.helpdesk_ticket}",target:"_blank",rel:"noopener noreferrer"):display_value_or_placeholder(nil),action:merge_request_action(merge_request,"helpdesk_ticket")},
@ -2,7 +2,7 @@ class Form::Lettings::Pages::Address < ::Form::Page
definitialize(id,hsh,subsection)
super
@id="address"
@header="Q#{QUESTION_NUMBER_FROM_YEAR[form.start_date.year]||QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]} - What is the property's address?"
"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same amount of paid work, the lead tenant is whoever is the oldest."
else
"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@ -2,11 +2,8 @@ class Form::Lettings::Questions::Armedforces < ::Form::Question
definitialize(id,hsh,page)
super
@id="armedforces"
@check_answer_label="Household links to UK armed forces"
@header="Does anybody in the household have any links to the UK armed forces?"
@type="radio"
@check_answers_card_number=0
@hint_text="This excludes national service.<br><br>If there are several people in the household with links to the UK armed forces, you should answer for the regular. If there’s no regular, answer for the reserve. If there’s no reserve, answer for the spouse or civil partner."
@ -2,8 +2,6 @@ class Form::Lettings::Questions::Beds < ::Form::Question
definitialize(id,hsh,page)
super
@id="beds"
@check_answer_label="Number of bedrooms"
@header="How many bedrooms does the property have?"
@type="numeric"
@width=2
@check_answers_card_number=0
@ -17,9 +15,5 @@ class Form::Lettings::Questions::Beds < ::Form::Question
log.is_bedsit?
end
defhint_text
form.start_year_after_2024??"If shared accommodation, enter the number of bedrooms occupied by this household.":"If shared accommodation, enter the number of bedrooms occupied by this household. A bedsit has 1 bedroom."
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@ -2,11 +2,8 @@ class Form::Lettings::Questions::EthnicGroup < ::Form::Question
definitialize(id,hsh,page)
super
@id="ethnic_group"
@check_answer_label="Lead tenant’s ethnic group"
@header="What is the lead tenant’s ethnic group?"
@type="radio"
@check_answers_card_number=1
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@hint_text=form.start_year_after_2024??"":"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
@header="Which of these best describes the lead tenant’s gender identity?"
@type="radio"
@check_answers_card_number=1
@answer_options=ANSWER_OPTIONS
@ -18,13 +16,5 @@ class Form::Lettings::Questions::GenderIdentity1 < ::Form::Question
"R"=>{"value"=>"Tenant prefers not to say"},
}.freeze
defhint_text
ifform.start_year_after_2024?
"This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
else
"The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."