Sha256: 0885aa16cfda0e6472ea2a226587c042242497098cad3aa3370804ce64f10614

Contents?: true

Size: 445 Bytes

Versions: 9

Compression:

Stored size: 445 Bytes

Contents

= reflection_node f, field do
  - ref_object ||= f.object.send(field.reflection.name)
  %p.empty{class: ('hide' if ref_object)}= t 'bhf.helpers.entry.empty', count: 1
  %ul.relation{class: field.macro}
    - if 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_one/_static.haml
bhf-0.6.15 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.14 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.13 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.12 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.11 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.10 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.6 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.5 app/views/bhf/entries/form/has_one/_static.haml