Sha256: 3beb80f62196ca92685e5b5d029ab38a778e05a2ce3a447adf2891df58e7f65c

Contents?: true

Size: 592 Bytes

Versions: 11

Compression:

Stored size: 592 Bytes

Contents

- val = f.object.send(column)
- a_checked = val == contact_a(column) || val.blank?
- b_checked = !a_checked
%fieldset
  %legend= f.label column
  .fields
    .field.radio
      %label{:for => "contact_a_#{column}"}
        = contact_a(column).presence || e9_t(:no_value)
      = f.radio_button column, contact_a(column), :checked => a_checked, :id => "contact_a_#{column}"
    .field.radio
      %label{:for => "contact_b_#{column}"}
        = contact_b(column).presence || e9_t(:no_value)
      = f.radio_button column, contact_b(column), :checked => b_checked, :id => "contact_b_#{column}"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.33 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.32 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.31 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.30 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.29 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.28 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.27 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.26 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.25 app/views/e9_crm/contact_merges/_field.html.haml
e9_crm-0.1.24 app/views/e9_crm/contact_merges/_field.html.haml