Formularz bezpłatnej konsultacji

<%= form_with(model: consultation_email, url: '/home/order_meeting_save', method: :post, remote: true, id: 'consultation_email_form') do |form| %>
<%= render '/shared/errors_list', error_object: consultation_email %>
<%= I18n.t('consultation_email.form_line1') %> <%= @dotation.formal_name %>

<%= I18n.t('consultation_email.form_line2') %>

<%= hidden_field_tag 'd', params[:d] %>
<%= form.label :phone_number %> <%= form.text_field :phone_number, class: 'form-control', placeholder: 'Podaj numer telefonu' %>
<%= form.label :email %> <%= form.email_field :email, class: 'form-control', placeholder: 'Wprowadź email' %>
<%= form.label :project_value %>
<% ConsultationEmail::PROJECT_VALUES.each do |pv| %> <%= radio_button_tag 'consultation_email[project_value]', pv[0] %> <%= label 'consultation_email[project_value]', pv[1] %>
<% end %>
Ważne
<%= I18n.t('consultation_email.form_politics') %>
<% end %>