Sha256: 6e1cb5427747a62df0e1b4b584d0982820472777446d959b1a462763fcf7d8f5

Contents?: true

Size: 629 Bytes

Versions: 10

Compression:

Stored size: 629 Bytes

Contents

.record-attribute.nested-association
  = f.hidden_field :status

  - if f.object.persisted?
    = f.hidden_field :id
    = f.hidden_field :_destroy, :value => 0
    .field
      = f.object.email
  - else
    .field
      = f.email_field :email

  = f.fields_for f.object.options do |ff|
    - if (types = User.email_types).present?
      .field
        = ff.select :type, types
    .field.radio
      = ff.hidden_field :primary, :value => false
      = ff.label :primary_true, ff.object.class.human_attribute_name(:primary)
      = ff.radio_button :primary, true

  - if f.object.prospect?
    = link_to_destroy_record_attribute

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
e9_crm-0.1.13 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.12 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.11 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.10 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.8 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.7 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.6 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.5 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.4 app/views/e9_crm/record_attributes/_user.html.haml
e9_crm-0.1.1 app/views/e9_crm/record_attributes/_user.html.haml