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.
15 lines
207 B
Ruby
15 lines
207 B
Ruby
class Admin::Budgets::ShowComponent < ApplicationComponent
|
|
include Header
|
|
attr_reader :budget
|
|
|
|
def initialize(budget)
|
|
@budget = budget
|
|
end
|
|
|
|
private
|
|
|
|
def title
|
|
budget.name
|
|
end
|
|
end
|