add helper methods to display form_fields
This commit is contained in:
		| @@ -1,2 +1,5 @@ | |||||||
| module ClientsHelper | module ClientsHelper | ||||||
|  |   def client_form_fields | ||||||
|  |     [:company_name, :firstname, :lastname, :streetname, :zipcode, :city, :country, :email, :phone] | ||||||
|  |   end | ||||||
| end | end | ||||||
|   | |||||||
| @@ -1,2 +1,5 @@ | |||||||
| module ProjectsHelper | module ProjectsHelper | ||||||
|  |   def project_form_fields | ||||||
|  |     [:name, :email, :short_name, :offer_date, :order_date] | ||||||
|  |   end | ||||||
| end | end | ||||||
							
								
								
									
										5
									
								
								app/helpers/subproject_addresses_helper.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								app/helpers/subproject_addresses_helper.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  | module SubprojectAddressesHelper | ||||||
|  |   def subproject_address_form_fields | ||||||
|  |     [:streetname, :zipcode, :city, :country] | ||||||
|  |   end | ||||||
|  | end | ||||||
| @@ -1,2 +1,5 @@ | |||||||
| module SubprojectsHelper | module SubprojectsHelper | ||||||
|  |   def subproject_form_fields | ||||||
|  |     [:subproject_name, :project_id, :client_id, :owner_id, :builder_id] | ||||||
|  |   end | ||||||
| end | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stefan Tollkühn
					Stefan Tollkühn