diff --git a/app/controllers/goals_controller.rb b/app/controllers/goals_controller.rb index 70ae70c34..3105a4c9a 100644 --- a/app/controllers/goals_controller.rb +++ b/app/controllers/goals_controller.rb @@ -45,6 +45,11 @@ class GoalsController < ApplicationController currency: Current.family.primary_currency_code ) @linkable_accounts = linkable_accounts_for_new + @breadcrumbs = [ + [ t("breadcrumbs.home"), root_path ], + [ t("goals.index.title"), goals_path ], + [ t("goals.new.heading"), nil ] + ] end def create diff --git a/app/views/goals/new.html.erb b/app/views/goals/new.html.erb index 45f5cb71a..0f673e668 100644 --- a/app/views/goals/new.html.erb +++ b/app/views/goals/new.html.erb @@ -1,19 +1,34 @@ -<%= render DS::Dialog.new(width: "lg") do |dialog| %> - <% dialog.with_header(custom_header: true) do %> -
- <%= t(".step1_subtitle") %> -
+<% if turbo_frame_request? %> + <%= render DS::Dialog.new(width: "lg") do |dialog| %> + <% dialog.with_header(custom_header: true) do %> ++ <%= t(".step1_subtitle") %> +
++ <%= t(".step1_subtitle") %> +
+