|
|
|
@ -4,11 +4,18 @@ module Forms |
|
|
|
include ActiveModel::Model |
|
|
|
include ActiveModel::Model |
|
|
|
include ActiveModel::Attributes |
|
|
|
include ActiveModel::Attributes |
|
|
|
include Rails.application.routes.url_helpers |
|
|
|
include Rails.application.routes.url_helpers |
|
|
|
|
|
|
|
include CollectionTimeHelper |
|
|
|
|
|
|
|
|
|
|
|
attribute :year, :integer |
|
|
|
attribute :year, :integer |
|
|
|
attribute :referrer |
|
|
|
attribute :referrer |
|
|
|
attribute :organisation_id, :integer |
|
|
|
attribute :organisation_id, :integer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def initialize(params) |
|
|
|
|
|
|
|
super(params) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.year = current_collection_start_year if year.nil? |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def view_path |
|
|
|
def view_path |
|
|
|
"bulk_upload_shared/guidance" |
|
|
|
"bulk_upload_shared/guidance" |
|
|
|
end |
|
|
|
end |
|
|
|
|