diff --git a/app/views/admin/budgets/_form.html.erb b/app/views/admin/budgets/_form.html.erb index b0c05e38d..ec1c4ccf1 100644 --- a/app/views/admin/budgets/_form.html.erb +++ b/app/views/admin/budgets/_form.html.erb @@ -76,9 +76,10 @@ "> - <%= link_to t("admin.budgets.edit.edit_phase"), - edit_admin_budget_budget_phase_path(@budget, phase), - class: "button hollow expanded" %> + <%= render Admin::TableActionsComponent.new(phase, + actions: [:edit], + edit_text: t("admin.budgets.edit.edit_phase") + ) %> <% end %> diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 5121fec3b..20300220c 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -274,6 +274,10 @@ resolve "Budget::Heading" do |heading, options| [heading.budget, :group, :heading, options.merge(group_id: heading.group, id: heading)] end +resolve "Budget::Phase" do |phase, options| + [phase.budget, :phase, options.merge(id: phase)] +end + resolve "Poll::Booth" do |booth, options| [:booth, options.merge(id: booth)] end