Sha256: 687c9e7d53e0d0ab82e07181deae387e337c411aba06c8aab24ef4c9ca063b35

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

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

  - if f.object.persisted?
    = f.hidden_field :id
    = f.hidden_field :_destroy, :value => 0
    .field
      = f.object.email
  - else
    .field.contact-email
      = f.text_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

4 entries across 4 versions & 1 rubygems

Version Path
e9_crm-0.1.20 app/views/record_attributes/_user.html.haml
e9_crm-0.1.19 app/views/record_attributes/_user.html.haml
e9_crm-0.1.18 app/views/record_attributes/_user.html.haml
e9_crm-0.1.17 app/views/record_attributes/_user.html.haml