Sha256: 630f0469cfc695a2ab2ad8b5576a8d31d63721e18ee1228c77a0e89c21710d0c
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
<div class="predicate"> <% fields_for "source[predicates_attributes][]", predicate do |predicate_form|%> <%= predicate_form.text_field :name, :index => nil, :value => name, :size => 20 %> <%= predicate_form.text_field :titleized, :index => nil, :size => 60, :autocomplete => :off %> <%= predicate_form.hidden_field :namespace, :index => nil, :value => namespace %> <%= predicate_form.hidden_field :uri, :index => nil %> <%= hidden_field_tag 'source', predicate.is_a?(TaliaCore::ActiveSource), :id => 'source_predicates_attributes__source', :name => "source[predicates_attributes][][source]", :class => 'source' %> <% unless @source.associated?(namespace, name, predicate.titleized) %> <%= link_to_function image_tag('remove.png', :size => '12x12', :alt => 'remove', :class => 'remove'), "remove_from_collection(this, '.predicate')" %> <% else %> <%= link_to_function image_tag('remove.png', :size => '12x12', :alt => 'remove', :class => 'remove'), "mark_for_destroy(this, '.predicate')" %> <%= predicate_form.hidden_field :id, :index => nil %> <%= hidden_field_tag 'should_destroy', nil, :class => "should_destroy", :id => 'source_predicates_attributes__should_destroy', :name => 'source[predicates_attributes][][should_destroy]' %> <% end %> <div class="auto_complete"></div> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.2 | generators/talia_admin/templates/views/admin/sources/_predicate.html.erb |