Skip to content

Commit

Permalink
Added hidden field, referral code, to first step of registration form
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasdrga committed Feb 18, 2024
1 parent 70f70ea commit c601e25
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<%= hidden_field_tag :mode, params[:mode], value: params[:mode] || 'sync_mode' %>
<%= hidden_field_tag :referral_code, params[:referral_code] %>
<%= hidden_field_tag :legal_subject_name, params[:legal_subject_name] %>
<%= hidden_field_tag :cin, params[:cin] %>
3 changes: 1 addition & 2 deletions app/views/services/govbox/_hidden_fields_from_step4.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<%= render 'hidden_fields_from_step3' %>
<%= hidden_field_tag :password, params[:password] %>
<%= hidden_field_tag :password_confirmation, params[:password_confirmation] %>
<%= hidden_field_tag :referral_code, params[:referral_code] %>
<%= hidden_field_tag :password_confirmation, params[:password_confirmation] %>
1 change: 1 addition & 0 deletions app/views/services/govbox/register_step1.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<div class="row">
<div class="col-md-8 form-group">
<%= hidden_field_tag :mode, params[:mode], :value => params[:mode] || 'sync_mode' %>
<%= hidden_field_tag :referral_code, params[:referral_code], :value => params[:referral_code] || cookies[:ref] %>
<%= label_tag :legal_subject_name, 'Názov právnickej osoby' %>
<%= text_field_tag :legal_subject_name, params[:legal_subject_name], class: 'form-control input-lg', required: true, autocomplete: 'off', data: {'slovensko-digital-autoform': 'name'} %>
<span class="form-text text-muted">Napríklad: Slovensko.Digital, Martinus</span>
Expand Down
1 change: 0 additions & 1 deletion app/views/services/govbox/register_step4.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="container">
<%= form_tag register_step5_services_govbox_index_path do %>
<%= render 'hidden_fields_from_step3' %>
<%= hidden_field_tag :referral_code, cookies[:ref] %>

<div class="row">
<div class="col-md-6">
Expand Down

0 comments on commit c601e25

Please sign in to comment.