<fieldset class="excluded_nations <% if edition.errors[:nation_inapplicabilities].any? %>alert-danger form-errors field_with_errors<% end %>" >
  <legend>Excluded nations</legend>

  <%= label_tag('edition[all_nation_applicability]') do %>
    <%= check_box 'edition', 'all_nation_applicability', {checked: false}, '1', '0' %>
    Applies to all UK nations
  <% end %>

  <% Nation.potentially_inapplicable.each do |nation| %>
    <% inapplicability = edition.nation_inapplicabilities.detect {|i| i.nation == nation } || edition.nation_inapplicabilities.build(nation: nation) %>

    <%= form.fields_for :nation_inapplicabilities, inapplicability do |ni_fields| %>
      <%= content_tag_for(:div, ni_fields.object.nation, class: 'control-group') do %>
        <div class="control">
          <%= ni_fields.check_box :excluded, label_text: nation.name, checked: ni_fields.object.excluded? %>
        </div>
        <div class="control">
          <%= ni_fields.text_field :alternative_url %>
          <%= ni_fields.hidden_field :nation_id %>
        </div>
      <% end %>
    <% end %>
  <% end %>
</fieldset>

<fieldset class="excluded_nations <% if edition.errors[:nation_inapplicabilities].any? %>alert-danger form-errors field_with_errors<% end %>" >
  <legend>Excluded nations</legend>

  <%= label_tag('edition[all_nation_applicability]') do %>
    <%= check_box 'edition', 'all_nation_applicability', {checked: false}, '1', '0' %>
    Applies to all UK nations
  <% end %>

  <% Nation.potentially_inapplicable.each do |nation| %>
    <% inapplicability = edition.nation_inapplicabilities.detect {|i| i.nation == nation } || edition.nation_inapplicabilities.build(nation: nation) %>

    <%= form.fields_for :nation_inapplicabilities, inapplicability do |ni_fields| %>
      <%= content_tag_for(:div, ni_fields.object.nation, class: 'control-group') do %>
        <div class="control">
          <%= ni_fields.check_box :excluded, label_text: "Does not apply to #{nation.name}", checked: ni_fields.object.excluded? %>
        </div>
        <div class="control">
          <%= ni_fields.text_field :alternative_url, label_text: "URL of corresponding content" %>
          <%= ni_fields.hidden_field :nation_id %>
        </div>
      <% end %>
    <% end %>
  <% end %>
</fieldset>

Update copy for excluded nation fields
Update copy for excluded nation fields
