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

12 lines
644 B
Plaintext
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" %>
2012-09-24 01:30:48 +00:00
<label for="ingroups">In These 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:30:48 +00:00
<%= form.submit "Add Person", class: "add" %>
2012-09-23 02:39:12 +00:00
<% end %>