%= form_for @synapse, url: user_synapse_url do |form| %>
Edit Synapse
<% if @collection.count > 0 %>
<%= select "node1_id", "node1", @collection.order("name ASC").map {|p| [ p.name, p.id ] }, { :selected => @synapse.node1_id } %>
<% end %>
<%= form.text_field :desc, class: "description" %>
<% if @collection.count > 0 %>
<%= select "node2_id", "node2", @collection.order("name ASC").map {|p| [ p.name, p.id ] }, { :selected => @synapse.node2_id } %>
<% end %>
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @synapse.permission) %>
<%= form.submit "Update", class: "update" %>
<% end %>