Add phases step to budget creation

This commit is contained in:
Julian Herrero
2020-03-23 19:04:38 +07:00
committed by Javi Martín
parent 9421f1673a
commit eb77d09425
20 changed files with 189 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
<%= render "shared/globalize_locales", resource: phase %>
<%= translatable_form_for [:admin, phase.budget, phase], html: { class: "budget-phases-form" } do |f| %>
<%= translatable_form_for [namespace, phase.budget, phase], html: { class: "budget-phases-form" } do |f| %>
<%= render "shared/errors", resource: phase %>

View File

@@ -1,6 +1,7 @@
class Admin::BudgetPhases::FormComponent < ApplicationComponent
include TranslatableFormHelper
include GlobalizeHelper
include Admin::Namespace
attr_reader :phase