Sha256: 3f2a5f9fdbc4cc6a51288b0bce237b296f7612b9f6ae3166c4079ed2ffe7c7ac

Contents?: true

Size: 469 Bytes

Versions: 29

Compression:

Stored size: 469 Bytes

Contents

= reflection_node f, field do
  - ref_objects ||= f.object.send(field.reflection.name)
  %p.empty{class: ('hide' unless ref_objects.blank?)}= t 'bhf.helpers.entry.empty', count: 2
  %ul.relation{class: field.macro}
    - ref_objects.each do |ref_object|
      %li= link_to_if field.link, ref_object.to_bhf_s, edit_entry_path(field.link || 0, ref_object), class: :quick_edit

  - if field.link
    = link_to '+', new_entry_path(field.link), class: 'add_field quick_edit'

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bhf-0.6.29 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.28 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.27 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.26 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.25 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.24 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.23 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.22 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.21 app/views/bhf/entries/form/has_many/_static.haml