metamaps--metamaps/app/views/people/new.html.erb

18 lines
934 B
Text
Raw Normal View History

2012-09-23 02:39:12 +00:00
<%= form_for @person || Person.new, url: people_path do |form| %>
2012-09-24 01:30:48 +00:00
<h3>Add Person</h3>
<label for="person_name">Name</label>
2012-09-23 02:39:12 +00:00
<%= form.text_field :name, label: "Name", class: "name" %>
2012-09-24 01:30:48 +00:00
<label for="person_desc">Description</label>
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
<label for="person_link">Link</label>
2012-09-23 02:39:12 +00:00
<%= form.text_field :link, label: "Link", class: "link" %>
<label for="ingroups">Add To Groups</label>
2012-09-23 02:39:12 +00:00
<%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %>
2012-09-24 01:50:45 +00:00
<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" %>
2012-09-24 01:30:48 +00:00
<%= form.submit "Add Person", class: "add" %>
2012-09-23 02:39:12 +00:00
<% end %>