Sha256: 47e47b088c225eb1366438b6048a27dd580b2e99080e2905682e2b5312dca18d

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 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_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

2 entries across 2 versions & 1 rubygems

Version Path
bhf-0.6.22 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.6.21 app/views/bhf/entries/form/has_one/_static.haml