Sha256: df925cfd9a4bf0f0dd6b02b69695fe6885faafa6b889778939753d06f1c04cc2
Contents?: true
Size: 1.72 KB
Versions: 4
Compression:
Stored size: 1.72 KB
Contents
<% # WontoMedia - a wontology web application # Copyright (C) 2011 - Glen E. Ivey # www.wontology.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License version # 3 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in the file COPYING and/or LICENSE. If not, # see "http://www.gnu.org/licenses/". %> <% form_for( con, :url => connections_path+"?goto=#{@item.name}" ) do |f| @connection = con # yes, fibbing to Rails, so shoot me.... %> <%= hidden_field :connection, :subject_id %> <%= hidden_field :connection, :predicate_id %> <%= hidden_field :connection, :kind_of_obj %> <%= select_tag "connection[obj_id]", options_for_select( [[ "- to this item -", "" ], [ "- create a new item -", "-1" ], ] + items.map do |item| [ h("#{item.name} : #{item.title}"), item.id ] end, "" ), :style => 'width: 62%;', :onfocus => 'selectOnfocusHandler(this);', :onchange => "selectOnchangeHandler(this, '#{con.type_item.id}');" %> <%= f.submit "Add", :style => 'width: 3em;' %> <% unless @add_item_help_icon_used %> <%= popup_help_icon "Help for item-value add", "Help:Popup/InlineAddItem" %> <% end @add_item_help_icon_used = true %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems