|
|
|
@ -8,6 +8,20 @@ module LogsHelper
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def page_title |
|
|
|
|
case controller.class.name |
|
|
|
|
when "LettingsLogsController" then "Lettings logs" |
|
|
|
|
when "SalesLogsController" then "Sales logs" |
|
|
|
|
else |
|
|
|
|
case action_name |
|
|
|
|
when "lettings_logs" then "Lettings logs" |
|
|
|
|
when "sales_logs" then "Sales logs" |
|
|
|
|
else |
|
|
|
|
raise "Log type not found for #{controller.class}, #{action_name}" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def bulk_upload_options(bulk_upload) |
|
|
|
|
array = bulk_upload ? [bulk_upload.id] : [] |
|
|
|
|
array.index_with { |_bulk_upload_id| "With logs from bulk upload" } |
|
|
|
|