Files
nairobi/app/controllers/admin/budget_phases_controller.rb
Javi Martín 349dbb74d7 Move phases and actions out of the budget form
Having links in the middle of a form distracts users from the task of
filling in the form, and following a link before submitting the form
will mean whatever has been filled in is lost.

And the budgets form is already very long and hard to fill in. Having
the phases table in the middle of it made it even harder. And, since
we're planning to add the option to manage groups and headings from the
same page, it's better to have a dedicated page for the form.
2021-10-25 18:01:47 +02:00

10 lines
181 B
Ruby

class Admin::BudgetPhasesController < Admin::BaseController
include Admin::BudgetPhasesActions
private
def phases_index
admin_budget_path(@phase.budget)
end
end