From 4210fbf597eb6230efb849e0852cd915cc26d029 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Thu, 20 Nov 2025 08:07:59 -0600 Subject: [PATCH] CORE-1383: Store self-reported school from signup and display it in profile [CORE-1383] --- app/handlers/newflow/student_signup/signup_form.rb | 2 ++ app/views/newflow/base/profile_newflow.html.erb | 10 ++++++++++ config/locales/en.yml | 1 + 3 files changed, 13 insertions(+) diff --git a/app/handlers/newflow/student_signup/signup_form.rb b/app/handlers/newflow/student_signup/signup_form.rb index 46c9c8227d..21ac6d9d85 100644 --- a/app/handlers/newflow/student_signup/signup_form.rb +++ b/app/handlers/newflow/student_signup/signup_form.rb @@ -11,6 +11,7 @@ class SignupForm attribute :first_name, type: String attribute :last_name, type: String attribute :email, type: String + attribute :school, type: String attribute :password, type: String attribute :is_title_1_school, type: boolean attribute :newsletter, type: boolean @@ -84,6 +85,7 @@ def create_user role: :student, first_name: signup_params.first_name, last_name: signup_params.last_name, + self_reported_school: signup_params.school, phone_number: signup_params.phone_number, receive_newsletter: signup_params.newsletter, source_application: options[:client_app], diff --git a/app/views/newflow/base/profile_newflow.html.erb b/app/views/newflow/base/profile_newflow.html.erb index d8438150d5..a1a06ef341 100644 --- a/app/views/newflow/base/profile_newflow.html.erb +++ b/app/views/newflow/base/profile_newflow.html.erb @@ -164,6 +164,16 @@ <% end %> + <% if current_user.self_reported_school.present? %> +
+
+ <%= I18n.t(:"legacy.users.edit.self_reported_school") %> +
+
+ <%= current_user.self_reported_school %> +
+
+ <% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 6262527b5f..104c7a74d7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -564,6 +564,7 @@ en: unconfirmed_warning: unconfirmed password: Password searchable: Let other users find me by this email. + self_reported_school: Self-reported school signup: # In fields `first_name`, `last_name`, `email_address` and `username`