Phil Lee
2 years ago
committed by
GitHub
19 changed files with 92 additions and 26 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