<% if @requirement.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@requirement.errors.count, "error") %> prohibited this requirement from being saved:</h2>

    <ul>
    <% @requirement.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>

<div class="field">
  <br />
  <%= f.label :name %>
  <%= f.text_field :name %>
</div>

<div class="field">
  <br />
  <%= f.label :short_name %>
  <%= f.text_field :short_name %>
</div>

<div class="field">
  <br />
  <%= f.label :jurisdiction %>
  <%= f.select :jurisdiction, options_for_select(['City', 'County', 'State', 'Federal']) %>
</div>

<div class="field">
  <br />
  <%= f.label :notes %>
  <%= f.text_area :notes, :rows => 5 %>
</div>
<% if @requirement.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@requirement.errors.count, "error") %> prohibited this requirement from being saved:</h2>

    <ul>
    <% @requirement.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>

<div class="field">
  <br />
  <%= f.label :name %>
  <%= f.text_field :name %>
</div>

<div class="field">
  <br />
  <%= f.label :short_name %>
  <%= f.text_field :short_name %>
</div>

<div class="field">
  <br />
  <%= f.label :jurisdiction %>
  <%= f.select :jurisdiction, options_for_select(['City', 'County', 'State', 'Federal']) %>
</div>

<div class="field">
  <br />
  <%= f.label :home_occ %>
  <%= f.checkbox :home_occ %> Applies to home-sited businesses?
</div>

<div class="field">
  <br />
  <%= f.label :commercial %>
  <%= f.checkbox :commercial %> Applies to commercially-sited businesses?
</div>

<div class="field">
  <br />
  <%= f.label :notes %>
  <%= f.text_area :notes, :rows => 5 %>
</div>


Add ability to edit requirement's applicability to home and commercially sited businesses
Add ability to edit requirement's applicability to home and commercially sited businesses
