add helper methods to display form_fields

This commit is contained in:
Stefan Tollkühn
2025-07-23 11:37:24 +02:00
parent bc0df35259
commit 576804fa74
4 changed files with 15 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
module ClientsHelper
def client_form_fields
[:company_name, :firstname, :lastname, :streetname, :zipcode, :city, :country, :email, :phone]
end
end

View File

@@ -1,2 +1,5 @@
module ProjectsHelper
end
def project_form_fields
[:name, :email, :short_name, :offer_date, :order_date]
end
end

View File

@@ -0,0 +1,5 @@
module SubprojectAddressesHelper
def subproject_address_form_fields
[:streetname, :zipcode, :city, :country]
end
end

View File

@@ -1,2 +1,5 @@
module SubprojectsHelper
def subproject_form_fields
[:subproject_name, :project_id, :client_id, :owner_id, :builder_id]
end
end