Sha256: a5541c9c9f939c261367e393e007ba14f53649ccf5524b82eae05a2c9cf50202

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 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_bhf_entry_path(field.link || 0, ref_object), class: :quick_edit

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bhf-0.6.20 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.15 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.14 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.13 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.12 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.11 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.10 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.6 app/views/bhf/entries/form/has_many/_static.haml
bhf-0.6.5 app/views/bhf/entries/form/has_many/_static.haml