Filtering ingredients by name
Nutrients link in sidebar
This commit is contained in:
@@ -33,6 +33,7 @@ en:
|
||||
heading_common: 'Common'
|
||||
link_summary: 'Summary'
|
||||
link_ingredients: 'Ingredients'
|
||||
link_nutrients: 'Nutrients'
|
||||
link_sources: 'Data sources'
|
||||
link_quantities: 'Quantities'
|
||||
link_units: 'Units'
|
||||
@@ -61,8 +62,6 @@ en:
|
||||
groups:
|
||||
other: 'other'
|
||||
meat: 'meat'
|
||||
options:
|
||||
label_options: 'Options'
|
||||
index:
|
||||
heading: 'Ingredients'
|
||||
heading_nutrient_view: 'Nutrient view'
|
||||
|
||||
@@ -7,10 +7,12 @@ resources :projects do
|
||||
post 'defaults', on: :collection
|
||||
end
|
||||
resources :ingredients, :only => [:index, :create, :destroy] do
|
||||
post 'toggle', on: :member
|
||||
post 'import', on: :collection
|
||||
get 'nutrients', on: :collection
|
||||
post 'toggle_nutrient_column', on: :collection
|
||||
post 'toggle', on: :member
|
||||
get 'filter', on: :collection
|
||||
get 'filter_nutrients', on: :collection
|
||||
post 'import', on: :collection
|
||||
end
|
||||
resources :sources, :only => [:index, :create, :destroy]
|
||||
resources :quantities, :only => [:index, :create, :destroy] do
|
||||
|
||||
Reference in New Issue
Block a user