Browse Source
# Conflicts: # app/controllers/bulk_upload_lettings_logs_controller.rb # app/controllers/bulk_upload_sales_logs_controller.rb # app/models/forms/bulk_upload_lettings/prepare_your_file.rb # app/models/forms/bulk_upload_sales/prepare_your_file.rb # app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb # app/views/bulk_upload_sales_logs/forms/prepare_your_file.html.erb # public/files/bulk-upload-lettings-specification-2023-24.xlsx # public/files/bulk-upload-lettings-template-2023-24.xlsx # public/files/bulk-upload-sales-specification-2023-24.xlsx # public/files/bulk-upload-sales-template-2023-24.xlsxpull/1342/head
23 changed files with 172 additions and 39 deletions
@ -0,0 +1,27 @@ |
|||||||
|
module Forms |
||||||
|
module BulkUploadLettings |
||||||
|
class Guidance |
||||||
|
include ActiveModel::Model |
||||||
|
include ActiveModel::Attributes |
||||||
|
include Rails.application.routes.url_helpers |
||||||
|
|
||||||
|
attribute :year, :integer |
||||||
|
|
||||||
|
def view_path |
||||||
|
"bulk_upload_shared/guidance" |
||||||
|
end |
||||||
|
|
||||||
|
def back_path |
||||||
|
bulk_upload_lettings_log_path(id: "prepare-your-file", form: { year: }) |
||||||
|
end |
||||||
|
|
||||||
|
def template_path |
||||||
|
Forms::BulkUploadLettings::PrepareYourFile.new(year:).template_path |
||||||
|
end |
||||||
|
|
||||||
|
def specification_path |
||||||
|
Forms::BulkUploadLettings::PrepareYourFile.new(year:).specification_path |
||||||
|
end |
||||||
|
end |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,27 @@ |
|||||||
|
module Forms |
||||||
|
module BulkUploadSales |
||||||
|
class Guidance |
||||||
|
include ActiveModel::Model |
||||||
|
include ActiveModel::Attributes |
||||||
|
include Rails.application.routes.url_helpers |
||||||
|
|
||||||
|
attribute :year, :integer |
||||||
|
|
||||||
|
def view_path |
||||||
|
"bulk_upload_shared/guidance" |
||||||
|
end |
||||||
|
|
||||||
|
def back_path |
||||||
|
bulk_upload_sales_log_path(id: "prepare-your-file", form: { year: }) |
||||||
|
end |
||||||
|
|
||||||
|
def template_path |
||||||
|
Forms::BulkUploadSales::PrepareYourFile.new(year:).template_path |
||||||
|
end |
||||||
|
|
||||||
|
def specification_path |
||||||
|
Forms::BulkUploadSales::PrepareYourFile.new(year:).specification_path |
||||||
|
end |
||||||
|
end |
||||||
|
end |
||||||
|
end |
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue