<% field_name_prefix = subject.present? ? "#{subject}_" : "" %>

<div class="form-row">
  <%= form.text_field "#{field_name_prefix}address_street1", wrapper_class: "col-sm-6" %>
  <%= form.text_field "#{field_name_prefix}address_street2", wrapper_class: "col-sm-6" %>
</div>
<div class="form-row">
  <%= form.text_field "#{field_name_prefix}address_city", wrapper_class: "col-sm-6" %>
  <%= form.text_field "#{field_name_prefix}address_state", wrapper_class: "col-sm-3" %>
  <%= form.text_field "#{field_name_prefix}address_zip", wrapper_class: "col-sm-3" %>
</div>
<%= form.form_group "#{field_name_prefix}address_country" do %>
  <%= form.label "#{field_name_prefix}address_country" %>
  <%= form.country_select "#{field_name_prefix}address_country", { selected: 'US', priority: %w(US CA), prompt: true }, class: "form-control custom-select" %>
<% end %>

