metamaps--metamaps/app/views/synapses/edit.html.erb

14 lines
732 B
Text
Raw Normal View History

2012-10-10 00:23:45 +00:00
<%= form_for @synapse, url: synapse_url do |form| %>
<h3>Edit Synapse</h3>
<% if @collection.count > 0 %>
<label for="node1_id">Choose First <%= @synapse.category %></label>
<%= select "node1_id", "node1", @collection.order("name ASC").map {|p| [ p.name, p.id ] }, { :selected => @synapse.node1_id } %>
2012-10-10 00:23:45 +00:00
<% end %>
<label for="item_desc">Describe The Connection</label>
<%= form.text_field :desc, class: "description" %>
<% if @collection.count > 0 %>
<label for="node2_id">Choose Second <%= @synapse.category %></label>
<%= select "node2_id", "node2", @collection.order("name ASC").map {|p| [ p.name, p.id ] }, { :selected => @synapse.node2_id } %>
2012-10-10 00:23:45 +00:00
<% end %>
<%= form.submit "Update", class: "update" %>
<% end %>