1
0

Dynamic thresholds listing in targets form

This commit is contained in:
cryptogopher
2021-02-20 13:55:04 +01:00
parent 8b17b33603
commit 9e3dc24a14
8 changed files with 47 additions and 40 deletions

View File

@@ -15,6 +15,7 @@ resources :projects, shallow: true do
resources :targets, except: [:show, :edit, :update] do
collection do
get 'edit/:date', action: :edit, as: :edit
get 'subthresholds/(:parent_id)', action: :subthresholds, as: :subthresholds
patch :update
post 'reapply/:date', action: :reapply, as: :reapply
end
@@ -64,7 +65,6 @@ resources :projects, shallow: true do
resources :quantities, except: [:show] do
member do
get 'new_child'
get 'subthresholds', controller: :targets
post 'create_child'
post 'move/:direction', action: :move, as: :move
end