12 lines
No EOL
644 B
Text
12 lines
No EOL
644 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 } %>
|
|
<%= form.submit "Add Person", class: "add" %>
|
|
<% end %> |