18 lines
No EOL
936 B
Text
18 lines
No EOL
936 B
Text
<%= form_for @person || Person.new, url: people_path do |form| %>
|
|
<h3>Add Person</h3>
|
|
<label for="person_name">Name</label>
|
|
<%= form.text_field :name, label: "Name", class: "name" %>
|
|
<label for="person_desc">Description</label>
|
|
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
|
|
<label for="person_link">Link</label>
|
|
<%= form.text_field :link, label: "Link", class: "link" %>
|
|
<label for="ingroups">In These Groups</label>
|
|
<%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %>
|
|
<label for="person_city">City</label>
|
|
<%= form.text_field :city, class: "city" %>
|
|
<label for="person_province">Province/State</label>
|
|
<%= form.text_field :province, class: "province" %>
|
|
<label for="person_country">Country</label>
|
|
<%= form.text_field :country, class: "country" %>
|
|
<%= form.submit "Add Person", class: "add" %>
|
|
<% end %> |