%= form_for @person, url: person_url do |form| %>
Edit Person
<%= form.text_field :name, label: "Name", class: "name" %>
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
<%= form.text_field :link, label: "Link", class: "link" %>
<%= form.text_field :city, class: "city" %>
<%= form.text_field :province, class: "province" %>
<%= form.text_field :country, class: "country" %>
<% if @ingroups.count > 0 %>
<%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %>
<% else %>
<%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %>
<% end %>
<% if @outgroups.count > 0 %>
<%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %>
<% else %>
<%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %>
<% end %>
<%= form.submit "Update", class: "update" %>
<% end %>