1
0

Added measurements to sidebar

This commit is contained in:
cryptogopher
2019-11-16 14:17:55 +01:00
parent 793edbe7ae
commit f2fa3db7f7
4 changed files with 15 additions and 0 deletions

View File

@@ -37,9 +37,11 @@ en:
heading: 'Summary'
sidebar:
heading_body_trackers: 'Body trackers'
heading_measurements: 'Measurements'
heading_diet: 'Diet'
heading_common: 'Common'
link_summary: 'Summary'
link_measurements: 'Measurements'
link_ingredients: 'Ingredients'
link_nutrients: 'Nutrients'
link_sources: 'Data sources'
@@ -47,6 +49,9 @@ en:
link_units: 'Units'
link_defaults: 'Load defaults'
confirm_defaults: 'This will load default quantities and units. Continue?'
measurements:
form:
index:
ingredients:
contextual:
heading_import_ingredients: 'Import'

View File

@@ -6,6 +6,8 @@ resources :projects do
resources :body_trackers, :only => [:index] do
post 'defaults', on: :collection
end
resources :measurements, :only => [:index, :create, :destroy] do
end
resources :ingredients, :only => [:index, :create, :destroy] do
get 'nutrients', on: :collection
post 'toggle_nutrient_column', on: :collection