620 changed files with 7189 additions and 2936 deletions
@ -1,11 +1,11 @@
|
||||
<div class="govuk-button-group app-filter-toggle <%= "govuk-!-margin-bottom-6" if display_actions? %>"> |
||||
<% if display_actions? %> |
||||
<div class="govuk-button-group app-filter-toggle govuk-!-margin-bottom-6"> |
||||
<%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-6" %> |
||||
<%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-3" %> |
||||
<% unless user.support? %> |
||||
<%= govuk_button_link_to upload_button_copy, upload_button_href, secondary: true %> |
||||
<% end %> |
||||
<% if user.support? %> |
||||
<%= govuk_button_link_to view_uploads_button_copy, view_uploads_button_href, secondary: true %> |
||||
<% end %> |
||||
</div> |
||||
<% end %> |
||||
</div> |
||||
|
||||
@ -1,24 +0,0 @@
|
||||
class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection, check_answers_card_number: nil) |
||||
super(id, hsh, subsection) |
||||
@depends_on = [{ "rent_in_soft_max_range?" => true }] |
||||
@title_text = { |
||||
"translation" => "soft_validations.rent.outside_range_title", |
||||
"arguments" => [{ |
||||
"key" => "brent", |
||||
"label" => true, |
||||
"i18n_template" => "brent", |
||||
}], |
||||
} |
||||
@informative_text = I18n.t("soft_validations.rent.informative_text", higher_or_lower: "higher") |
||||
@check_answers_card_number = check_answers_card_number |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::MaxRentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)] |
||||
end |
||||
|
||||
def interruption_screen_question_ids |
||||
%w[brent period startdate uprn postcode_full la beds rent_type needstype] |
||||
end |
||||
end |
||||
@ -1,24 +0,0 @@
|
||||
class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection, check_answers_card_number: nil) |
||||
super(id, hsh, subsection) |
||||
@depends_on = [{ "rent_in_soft_min_range?" => true }] |
||||
@title_text = { |
||||
"translation" => "soft_validations.rent.outside_range_title", |
||||
"arguments" => [{ |
||||
"key" => "brent", |
||||
"label" => true, |
||||
"i18n_template" => "brent", |
||||
}], |
||||
} |
||||
@informative_text = I18n.t("soft_validations.rent.informative_text", higher_or_lower: "lower") |
||||
@check_answers_card_number = check_answers_card_number |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::MinRentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)] |
||||
end |
||||
|
||||
def interruption_screen_question_ids |
||||
%w[brent period startdate uprn postcode_full la beds rent_type needstype] |
||||
end |
||||
end |
||||
@ -1,14 +0,0 @@
|
||||
class Form::Lettings::Pages::PropertyPostcode < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "property_postcode" |
||||
@depends_on = [{ "is_general_needs?" => true }] |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Lettings::Questions::PostcodeKnown.new(nil, nil, self), |
||||
Form::Lettings::Questions::PostcodeFull.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
||||
@ -0,0 +1,36 @@
|
||||
class Form::Lettings::Pages::RentValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection, check_answers_card_number: nil) |
||||
super(id, hsh, subsection) |
||||
@depends_on = [{ "rent_soft_validation_triggered?" => true }] |
||||
@copy_key = "lettings.soft_validations.rent_value_check" |
||||
@title_text = { |
||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "brent", |
||||
"label" => true, |
||||
"i18n_template" => "brent", |
||||
}, |
||||
], |
||||
} |
||||
@informative_text = { |
||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text", |
||||
"arguments" => [ |
||||
{ |
||||
"key" => "rent_soft_validation_higher_or_lower_text", |
||||
"label" => false, |
||||
"i18n_template" => "higher_or_lower", |
||||
}, |
||||
], |
||||
} |
||||
@check_answers_card_number = check_answers_card_number |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)] |
||||
end |
||||
|
||||
def interruption_screen_question_ids |
||||
%w[brent period startdate uprn postcode_full la beds rent_type needstype] |
||||
end |
||||
end |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue