fix signup portal view

This commit is contained in:
24c02 2025-12-22 13:04:57 -05:00
parent b5eb4f3d88
commit 75c5b24ca6
2 changed files with 5 additions and 3 deletions

View file

@ -8,6 +8,8 @@ class IdentitiesController < ApplicationController
before_action :set_return_to, only: [ :new, :create ]
before_action :ensure_no_user!, only: [ :new, :create ]
helper_method :portal_onboarding_scenario
def edit
@identity = current_identity
end
@ -194,6 +196,8 @@ class IdentitiesController < ApplicationController
@return_to = params[:return_to] if params[:return_to].present?
end
def portal_onboarding_scenario = @onboarding_scenario
def identity_params
params.require(:identity).permit(:first_name, :last_name, :phone_number, :developer_mode, :saml_debug)
end

View file

@ -28,9 +28,7 @@
portal_scenario = respond_to?(:portal_onboarding_scenario) ? portal_onboarding_scenario : nil
%>
<body class="<%= content_for?(:portal_wrapper) ? '' : (content_for?(:body_class) ? yield(:body_class) : 'auth-layout') %>" hx-headers='{"X-CSRF-Token": "<%= form_authenticity_token %>"}' hx-boost="false"<%= " style=\"#{body_style}\"".html_safe if body_style %>>
<% if content_for?(:portal_wrapper) %>
<%= render "shared/scenario_background_style", scenario: portal_scenario %>
<% end %>
<%= render "shared/scenario_background_style", scenario: portal_scenario %>
<% if content_for?(:portal_wrapper) %>
<main class="container portal-container">
<%= render Components::Brand.new(identity: current_identity, logo_path: portal_scenario&.logo_path) %>