diff --git a/app/handlers/newflow/student_signup/signup_form.rb b/app/handlers/newflow/student_signup/signup_form.rb index 46c9c8227..21ac6d9d8 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 d8438150d..a1a06ef34 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 6262527b5..104c7a74d 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`