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.7.16 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.15 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.14 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.13 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.12 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.11 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.9 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.8 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.7 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.5 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.4 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.3 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.2 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.1 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.0.rc3 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.0.rc2 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.7.0.rc1 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.32 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.31 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.30 app/views/bhf/entries/form/has_many/_static.haml