1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/helpers/targets_helper.rb
cryptogopher bea0a8371d WIP Targets #edit/#update
NestedUniqueness properly restores collection.target
2021-04-23 19:19:44 +02:00

10 lines
395 B
Ruby

module TargetsHelper
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(@goal, date, @view_params),
{remote: true, class: "icon icon-edit"}) +
delete_link(target_path(date), {remote: true, data: {}})
end
end