Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB-315/registration-referral-code #168

Closed
wants to merge 4 commits into from
Closed
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
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], value: params[:referral_code] || cookies[:ref] %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto sa mi vobec nepaci, co je vlastne problem ze sa ta cookie nenastavi v prvom rade?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevsimol som si, ze uz to je v podstate vyriesene len parameter musi mat format ref nie referral_code, cize toto uzavriem

<%= 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
Loading