Skip to content

Commit

Permalink
Add missign params to mitic application
Browse files Browse the repository at this point in the history
  • Loading branch information
anayib committed Apr 17, 2024
1 parent 514ce90 commit c778d18
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def create_mitic_applicant
last_name: mitic_applicant_params[:last_name],
birthday: mitic_applicant_params[:birthday],
country: mitic_applicant_params[:country],
country_code: mitic_applicant_params[:country_code],
city: mitic_applicant_params[:city],
mobile: mitic_applicant_params[:mobile],
resubscribe: true
},
Expand Down Expand Up @@ -539,10 +541,10 @@ def innovate_applicant_params
end

def mitic_applicant_params
params.require(:applicant).permit(:accepted_terms, :program_name, :email, :first_name, :last_name, :country, :mobile, :birthday, :gender, :url, :goal, :experience, :additional, :studies, :working, :resubscribe)
params.require(:applicant).permit(:accepted_terms, :program_name, :email, :first_name, :last_name, :country, :city, :country_code, :mobile, :birthday, :gender, :url, :goal, :experience, :additional, :studies, :working, :resubscribe)
end

def women_applicant_params
params.require(:applicant).permit(:accepted_terms, :email, :first_name, :last_name, :country, :mobile, :birthday, :gender, :url, :goal, :experience, :additional, :payment_method, :payment_method_2, :format, :stipend, :working, :studies)
params.require(:applicant).permit(:accepted_terms, :email, :first_name, :last_name, :country, :city, :mobile, :birthday, :gender, :url, :goal, :experience, :additional, :payment_method, :payment_method_2, :format, :stipend, :working, :studies)
end
end
3 changes: 2 additions & 1 deletion app/jobs/create_lead_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def perform(data)
second_last_name = data[:last_name]
email = data[:email]
country = data[:country]
country_code = data[:country_code]
mobile = data[:mobile]
birthday = data[:birthday]
gender = data[:gender]
Expand All @@ -29,7 +30,7 @@ def perform(data)
accepted_terms= data[:accepted_terms]

person = { pid: pid, email: email, first_name: first_name, second_name: second_name, last_name: last_name, second_last_name: second_last_name,
country_code: country, mobile: mobile, birthday: birthday, gender: gender ,source: source,
country: country, city: city, country_code: country_code, mobile: mobile, birthday: birthday, gender: gender ,source: source,
linkedin: linkedin, goal: goal, experience: experience, additional: additional, studies: studies, working: working, format: format,
payment_method: payment_method, stipend: stipend, user_id_type: user_id_type, user_id: user_id, document_type: document_type, document_number: document_number, accepted_terms: accepted_terms, resubscribe: resubscribe }
begin
Expand Down
2 changes: 2 additions & 0 deletions app/models/mitic_ai_applicant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class MiticAiApplicant < Applicant
hstore_accessor :info,
uid: :string,
country: :string,
country_code: :string,
city: :string,
accepted_terms: :boolean,
birthday: :string,
gender: :string,
Expand Down
2 changes: 2 additions & 0 deletions app/models/mitic_data_analysis_applicant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class MiticDataAnalysisApplicant < Applicant
hstore_accessor :info,
uid: :string,
country: :string,
country_code: :string,
city: :string,
accepted_terms: :boolean,
birthday: :string,
gender: :string,
Expand Down
2 changes: 2 additions & 0 deletions app/models/mitic_serverless_applicant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class MiticServerlessApplicant < Applicant
hstore_accessor :info,
uid: :string,
country: :string,
country_code: :string,
city: :string,
accepted_terms: :boolean,
birthday: :string,
gender: :string,
Expand Down
2 changes: 2 additions & 0 deletions app/models/mitic_web3_applicant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class MiticWeb3Applicant < Applicant
hstore_accessor :info,
uid: :string,
country: :string,
country_code: :string,
city: :string,
accepted_terms: :boolean,
birthday: :string,
gender: :string,
Expand Down
5 changes: 5 additions & 0 deletions app/views/admin/mitic_ai_applicants/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<div class="detail-value"><%= @applicant.country %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">City:</div>
<div class="detail-value"><%= @applicant.city %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">Movil:</div>
<div class="detail-value"><%= @applicant.mobile %></div>
Expand Down
5 changes: 5 additions & 0 deletions app/views/admin/mitic_data_analysis_applicants/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<div class="detail-value"><%= @applicant.country %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">City:</div>
<div class="detail-value"><%= @applicant.city %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">Movil:</div>
<div class="detail-value"><%= @applicant.mobile %></div>
Expand Down
5 changes: 5 additions & 0 deletions app/views/admin/mitic_serverless_applicants/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<div class="detail-value"><%= @applicant.country %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">City:</div>
<div class="detail-value"><%= @applicant.city %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">Movil:</div>
<div class="detail-value"><%= @applicant.mobile %></div>
Expand Down
5 changes: 5 additions & 0 deletions app/views/admin/mitic_web3_applicants/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<div class="detail-value"><%= @applicant.country %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">City:</div>
<div class="detail-value"><%= @applicant.city %></div>
</div>

<div class="applicant-detail">
<div class="detail-label">Movil:</div>
<div class="detail-value"><%= @applicant.mobile %></div>
Expand Down

0 comments on commit c778d18

Please sign in to comment.