Sha256: 0ddb66e7f2c2ed80214fb6596ecf9146b2342bad97fdbb884e8a0a05cc0fd5a7

Contents?: true

Size: 311 Bytes

Versions: 14

Compression:

Stored size: 311 Bytes

Contents

= reflection_node f, field do
  - ref_object = f.object.send(field.reflection.name)
  - if ref_object.blank?
    = t 'bhf.helpers.entry.empty'
  - else
    - if field.link
      = link_to ref_object.to_bhf_s, edit_entry_path(field.link, ref_object), :class => 'quick_edit'
    - else
      = ref_object.to_bhf_s

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
bhf-0.1.6 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.6 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.5 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.5 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.4 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.4 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.3 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.3 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.2 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.2 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.1 app/views/bhf/entries/form/has_one/_static.haml
bhf-0.1.1 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.0 app/views/bhf/entries/form/belongs_to/_static.haml
bhf-0.1.0 app/views/bhf/entries/form/has_one/_static.haml