Sha256: 68b1a4c6632befc5de1ab83fd411516602c7f2579a4847981289abb246366c94

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 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

5 entries across 5 versions & 1 rubygems

Version Path
bhf-0.4.2.2 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.4.2.1 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.4.2 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.4.1 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.4.0 app/views/bhf/entries/form/has_one/_static.haml