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
2020-08-06 21:52:33 +02:00

14 lines
440 B
Ruby

module TargetsHelper
def condition_options
Target::CONDITIONS
end
def action_links(d)
link_to(l(:button_reapply), reapply_project_targets_path(@project, d, @view_params),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_target_path(@project, d, @view_params),
{remote: true, class: "icon icon-edit"}) +
delete_link(target_path(d), {remote: true, data: {}})
end
end