2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# partial generating a new synapse
|
|
|
|
# TODO: Where is this code used?
|
|
|
|
#%>
|
2012-10-28 18:37:46 +00:00
|
|
|
<div class="anypage">
|
2012-12-21 23:07:13 +00:00
|
|
|
<%= form_for Synapse.new, url: synapses_url, remote: true do |form| %>
|
2014-02-01 08:57:19 +00:00
|
|
|
<%= form.text_field :desc, :placeholder => "describe the connection..." %>
|
2013-01-01 22:45:35 +00:00
|
|
|
<%= form.hidden_field :topic1id, :value => 0 %>
|
|
|
|
<%= form.hidden_field :topic2id, :value => 0 %>
|
2014-02-05 01:28:06 +00:00
|
|
|
<%= form.hidden_field :grabSynapse, :value => "null" %>
|
2013-01-25 05:47:32 +00:00
|
|
|
<% if (@map.permission == "commons" && authenticated?) || @map.user == user %>
|
|
|
|
<%= form.hidden_field :map, :value => @map.id %>
|
|
|
|
<% end %>
|
2012-10-28 18:37:46 +00:00
|
|
|
<% end %>
|
2013-01-11 23:49:59 +00:00
|
|
|
</div>
|