%= form_with(model: @customer, local: true) do |form| %>
<% if @customer.errors.any? %>
<%= pluralize(@customer.errors.count, "error") %> prohibited this customer from being saved:
<% @customer.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.hidden_field :user_id %>
<% if @customer.customer_type.name == "Individual" %>
What is your Name?
<%= form.label :firstname %>
<%= form.text_field :firstname %>
<%= form.label :lastname %>
<%= form.text_field :lastname %>
<%= form.label :gender %>
<%= form.radio_button :gender, 'male' %> Male <%= form.radio_button :gender, 'female' %> Female
<% else %>
What is the name of your Organisation?
<%= form.label :customer_name %>
<%= form.text_field :customer_name %>
<% end %>
Where can we find You?
<%= form.label :address_1 %>
<%= form.text_field :address_1 %>
<%= form.label :address_2 %>
<%= form.text_field :address_2 %>
<%= form.label :city %>
<%= form.text_field :city %>
<%= form.label :country %>
<%= form.text_field :country %>
How can we contact You?
<%= form.label :mobile_1 %>
<%= form.text_field :mobile_1 %>
<%= form.label :mobile_2 %>
<%= form.text_field :mobile_2 %>
<%= form.label :email %>
<%= form.text_field :email %>
<%= form.label :district %>
<%= form.text_field :district %>
<%= form.label :province %>
<%= form.text_field :province %>
<%= form.submit %>
<% end %>