Sha256: f4b896cf5dcc3a1ae4a7a683fbd5a421472601aa03837b98336d74ee75df5c4c

Contents?: true

Size: 537 Bytes

Versions: 22

Compression:

Stored size: 537 Bytes

Contents

<div id="associated_<%= field %>">
  <%= link_to "#{t(:choose_associated)} (#{many.size})", '#', :terbium_popup => resource_path(record, "associated_#{field}"), :ids => "$$('#associated_#{field} input[type=hidden]').collect(function(element){return $F(element)})" %>
  <%= hidden_field_tag "#{model_name}[#{field.to_s.singularize}_ids][]" %>
  <% many.each do |association| %>
    <%= hidden_field_tag "#{model_name}[#{field.to_s.singularize}_ids][]", association.id, :id => "associated_#{field}_#{association.id}" %>
  <% end %>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
puffer-0.0.23 app/views/puffer/base/association/_many.html.erb
puffer-0.0.22 app/views/puffer/base/association/_many.html.erb
puffer-0.0.21 app/views/puffer/base/association/_many.html.erb
puffer-0.0.20 app/views/puffer/base/association/_many.html.erb
puffer-0.0.19 app/views/puffer/association/_many.html.erb
puffer-0.0.18 app/views/puffer/association/_many.html.erb
puffer-0.0.17 app/views/puffer/association/_many.html.erb
puffer-0.0.16 app/views/puffer/association/_many.html.erb
puffer-0.0.15 app/views/puffer/association/_many.html.erb
puffer-0.0.14 app/views/puffer/association/_many.html.erb
puffer-0.0.13 app/views/puffer/association/_many.html.erb
puffer-0.0.12 app/views/puffer/association/_many.html.erb
puffer-0.0.11 app/views/puffer/association/_many.html.erb
puffer-0.0.10 app/views/puffer/association/_many.html.erb
puffer-0.0.9 app/views/puffer/association/_many.html.erb
puffer-0.0.8 app/views/puffer/association/_many.html.erb
puffer-0.0.7 app/views/puffer/association/_many.html.erb
puffer-0.0.6 app/views/puffer/association/_many.html.erb
puffer-0.0.5 app/views/puffer/association/_many.html.erb
puffer-0.0.4 app/views/puffer/association/_many.html.erb