1
0

Add GoalController: #index, #new, #create

This commit is contained in:
cryptogopher
2021-02-21 18:10:15 +01:00
parent ea308a1e4a
commit 7f87b3bc84
20 changed files with 182 additions and 76 deletions

View File

@@ -89,11 +89,20 @@ en:
link_units: 'Units'
link_defaults: 'Load defaults'
confirm_defaults: 'This will load default data sources, quantities and units. Continue?'
goals:
binding:
name: 'Binding goal'
description: 'Targets from this goal are applied throughout application'
form:
new_form:
heading_new_goal: 'New goal'
index:
heading: 'Goals'
link_new_goal: 'New goal'
targets:
contextual:
link_new_target: 'New target'
form:
binding_goal: '- binding -'
choose_quantity: 'Choose quantity'
button_new_target: 'Add target'
button_delete_target: 'Delete'

View File

@@ -7,7 +7,7 @@ resources :projects, shallow: true do
post 'defaults'
end
end
resources :goals, only: [:show, :edit] do
resources :goals do
member do
post 'toggle_exposure', controller: :targets
end