1
0

Added nutrient view on ingredients index

Created custom plugin's stylesheet
This commit is contained in:
cryptogopher
2019-09-24 23:41:22 +02:00
parent 9664df4888
commit 0001b56ca6
9 changed files with 72 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ en:
ingredients:
index:
heading: 'Ingredients'
heading_nutrient_view: 'Nutrient view'
heading_import_ingredients: 'Import'
heading_new_ingredient: 'New ingredient'
label_import_select_csv_file: 'Select CSV file'
@@ -50,6 +51,9 @@ en:
Sample header: "Name,Reference,Group,Proteins[g],Fats[g],Carbohydrates[g]".
Sample data row: "Brussels,100[g],other,3.4,300[mg],9".
Unit given in data row has precedence over that specified in header.'
nutrients:
heading: 'Nutrients'
heading_ingredient_list: 'Ingredient list'
form:
button_add_nutrient: 'Add nutrient'
button_delete_nutrient: 'Delete'

View File

@@ -8,6 +8,7 @@ resources :projects do
end
resources :ingredients, :only => [:index, :create, :destroy] do
post 'import', on: :collection
get 'nutrients', on: :collection
end
resources :sources, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy]