Sha256: 454660535265ffa06a2fd5f419ce95412a873766caa197b6fa8ae638f0813e7c

Contents?: true

Size: 709 Bytes

Versions: 7

Compression:

Stored size: 709 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.contact-email
      <input type="hidden" value="#{f.object.email}"/>
      = 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

7 entries across 7 versions & 1 rubygems

Version Path
e9_crm-0.1.28 app/views/record_attributes/_user.html.haml
e9_crm-0.1.27 app/views/record_attributes/_user.html.haml
e9_crm-0.1.26 app/views/record_attributes/_user.html.haml
e9_crm-0.1.25 app/views/record_attributes/_user.html.haml
e9_crm-0.1.24 app/views/record_attributes/_user.html.haml
e9_crm-0.1.23 app/views/record_attributes/_user.html.haml
e9_crm-0.1.22 app/views/record_attributes/_user.html.haml