Sha256: 06154eda832ba1b9dc70c02492859746b551df121bb6247a02358fac9ba31686

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

Contents

= reflection_node f, field do
  - ref_objects = f.object.send(field.reflection.name)
  - if ref_objects.blank?
    = t 'bhf.helpers.entry.empty', :count => 0
  - else
    %ul.relation
      - ref_objects.to_a.each do |ref_object|
        %li
          = link_to_if field.link, ref_object.to_bhf_s, edit_bhf_entry_embed_path(field.link || 0, f.object, ref_object), :class => 'quick_edit'
          = link_to_if field.link, '×'.html_safe, bhf_entry_embed_path(field.link || 0, f.object, ref_object), :method => :delete, :confirm => t('bhf.helpers.promts.confirm'), :class => 'delete', :remote => true

  - if field.link
    = link_to '+', new_bhf_entry_embed_path(field.link, f.object), :class => 'add_field quick_edit'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bhf-0.3.11 app/views/bhf/entries/form/embeds_one/_static.haml