Sha256: f0d013d76ada13788e159b585c60a09e16f57886e5f1b41ee32f9577a39da89a

Contents?: true

Size: 642 Bytes

Versions: 2

Compression:

Stored size: 642 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.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

2 entries across 2 versions & 1 rubygems

Version Path
e9_crm-0.1.16 app/views/record_attributes/_user.html.haml
e9_crm-0.1.14 app/views/e9_crm/record_attributes/_user.html.haml