Parametrize Target routes with :date
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
module TargetsHelper
|
||||
def action_links(date)
|
||||
link_to(l(:button_reapply), reapply_goal_targets_path(@goal, date, @view_params),
|
||||
link_to(l(:button_reapply), reapply_goal_target_path(@goal, date, @view_params),
|
||||
{remote: true, class: "icon icon-reload"}) +
|
||||
link_to(l(:button_edit), edit_goal_targets_path(@goal, date, @view_params),
|
||||
link_to(l(:button_edit), edit_goal_target_path(@goal, date, @view_params),
|
||||
{remote: true, class: "icon icon-edit"}) +
|
||||
delete_link(target_path(date), {remote: true, data: {}})
|
||||
delete_link(goal_target_path(@goal, date), {remote: true, data: {}})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user