%# locals: (goal:) %> <% if goal.errors.any? %> <%= render "shared/form_errors", model: goal %> <% end %> <%= styled_form_with model: goal, url: goal_path(goal), method: :patch, class: "space-y-3" do |f| %> <%= f.text_field :name, label: t("goals.form_stepper.step1.fields.name"), required: true, autofocus: true %> <%= f.money_field :target_amount, label: t("goals.form_stepper.step1.fields.target_amount"), required: true %> <%= f.date_field :target_date, label: t("goals.form_stepper.step1.fields.target_date") %>