Add phases step to budget creation
This commit is contained in:
committed by
Javi Martín
parent
9421f1673a
commit
eb77d09425
22
app/components/admin/budgets_wizard/phases/edit_component.rb
Normal file
22
app/components/admin/budgets_wizard/phases/edit_component.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class Admin::BudgetsWizard::Phases::EditComponent < ApplicationComponent
|
||||
include Header
|
||||
attr_reader :phase
|
||||
|
||||
def initialize(phase)
|
||||
@phase = phase
|
||||
end
|
||||
|
||||
def budget
|
||||
phase.budget
|
||||
end
|
||||
|
||||
def title
|
||||
"#{t("admin.budget_phases.edit.title")} - #{phase.name}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def form_path
|
||||
admin_budgets_wizard_budget_budget_phases_path(budget)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user