Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module Forms
|
|
|
|
module BulkUploadLettings
|
|
|
|
class CheckingFile
|
|
|
|
include ActiveModel::Model
|
|
|
|
include ActiveModel::Attributes
|
|
|
|
include Rails.application.routes.url_helpers
|
|
|
|
|
|
|
|
attribute :year, :integer
|
|
|
|
attribute :organisation_id, :integer
|
|
|
|
|
|
|
|
def view_path
|
|
|
|
"bulk_upload_lettings_logs/forms/checking_file"
|
|
|
|
end
|
|
|
|
|
|
|
|
def back_path
|
|
|
|
if organisation_id.present?
|
|
|
|
lettings_logs_organisation_path(organisation_id)
|
|
|
|
else
|
|
|
|
bulk_upload_lettings_log_path(id: "start")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def year_combo
|
|
|
|
"#{year} to #{year + 1}"
|
|
|
|
end
|
|
|
|
|
|
|
|
def save!
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|