<div>
  <%= form.label :full_name %>:<br>
  <%= form.text_field :full_name %>
</div>
<div>
  <%= form.label :email_address %>:<br>
  <%= form.email_field :email_address %> <small>We hate spam too!</small>
</div>
<div>
  <%= form.label :address_line_1 %>:<br>
  <%= form.text_field :address_line_1 %>
</div>
<div>
  <%= form.label :address_line_2 %>:<br>
  <%= form.text_field :address_line_2 %>
</div>
<div>
  <%= form.label :town_city, 'Town/city' %>:<br>
  <%= form.text_field :town_city %>
</div>
<div>
  <%= form.label :county %>:<br>
  <%= form.text_field :county %>
</div>
<div>
  <%= form.label :postcode %>:<br>
  <%= form.text_field :postcode %>
</div>
<p>
  Please contact us for a delivery quote if your
  country is not provided in the list below.
</p>
<div>
  <%= form.label :country_id %>:<br>
  <%= collection_select :address, :country_id, @w.shipping_countries, :id, :name %>
</div>
<div>
  <%= form.label :phone_number %>:<br>
  <%= form.phone_field :phone_number %>
</div>

<div>
  <%= form.label :full_name %>:<br>
  <%= form.text_field :full_name, required: true %>
</div>
<div>
  <%= form.label :email_address %>:<br>
  <%= form.email_field :email_address, required: true %> <small>We hate spam too!</small>
</div>
<div>
  <%= form.label :address_line_1 %>:<br>
  <%= form.text_field :address_line_1, required: true %>
</div>
<div>
  <%= form.label :address_line_2 %>:<br>
  <%= form.text_field :address_line_2 %>
</div>
<div>
  <%= form.label :town_city, 'Town/city' %>:<br>
  <%= form.text_field :town_city, required: true %>
</div>
<div>
  <%= form.label :county %>:<br>
  <%= form.text_field :county %>
</div>
<div>
  <%= form.label :postcode %>:<br>
  <%= form.text_field :postcode, required: true %>
</div>
<p>
  Please contact us for a delivery quote if your
  country is not provided in the list below.
</p>
<div>
  <%= form.label :country_id %>:<br>
  <%= collection_select :address, :country_id, @w.shipping_countries, :id, :name %>
</div>
<div>
  <%= form.label :phone_number %>:<br>
  <%= form.phone_field :phone_number %>
</div>

Use HTML5 required attribute in address form
Use HTML5 required attribute in address form
