1
0

Filtering ingredients by name

Nutrients link in sidebar
This commit is contained in:
cryptogopher
2019-11-02 15:32:21 +01:00
parent cf9c913897
commit 1acb72f33d
10 changed files with 70 additions and 13 deletions

View File

@@ -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'

View File

@@ -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