Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/handlers/newflow/student_signup/signup_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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],
Expand Down
10 changes: 10 additions & 0 deletions app/views/newflow/base/profile_newflow.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@
</div>
<% end %>

<% if current_user.self_reported_school.present? %>
<div class="row">
<div class="col-sm-2 category">
<%= I18n.t(:"legacy.users.edit.self_reported_school") %>
</div>
<div class="col-sm-10 info">
<%= current_user.self_reported_school %>
</div>
</div>
<% end %>

<div class="row">
<div class="col-sm-2 category">
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading