1
0

WIP Targets #edit/#update

NestedUniqueness properly restores collection.target
This commit is contained in:
cryptogopher
2021-04-23 19:19:44 +02:00
parent 37e3b98788
commit bea0a8371d
9 changed files with 93 additions and 40 deletions

View File

@@ -1,9 +1,9 @@
module TargetsHelper
def action_links(d)
link_to(l(:button_reapply), reapply_goal_targets_path(@project, d, @view_params),
def action_links(date)
link_to(l(:button_reapply), reapply_goal_targets_path(@goal, date, @view_params),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_goal_targets_path(@project, d, @view_params),
link_to(l(:button_edit), edit_goal_targets_path(@goal, date, @view_params),
{remote: true, class: "icon icon-edit"}) +
delete_link(target_path(d), {remote: true, data: {}})
delete_link(target_path(date), {remote: true, data: {}})
end
end