Sha256: 6945196dfffcf54aa32a5b9074f5523df6d004b4cdf8fe8761acc00f426a9a82

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

= render_record_attribute_form(:users, f)

%fieldset.contact-standard-fields
  %legend= e9_t(:form_legend_standard)
  .field
    = f.label :first_name
    = f.text_field :first_name
  .field
    = f.label :last_name
    = f.text_field :last_name
  .field
    = f.label :company_name
    = f.text_field :company_name
  .field
    = f.label :title
    = f.text_field :title
  .field
    = f.label :status
    = f.select :status, Contact::Status::VALUES.map {|v| [v.titleize, v] }

  = upload_mount_field(resource.avatar, :reset_path => true)

= render 'e9_tags/form', :f => f, :context => [:users, true]

%fieldset.contact-contact-fields
  %legend= e9_t(:form_legend_contact)
  = render_record_attribute_form(:phone_number_attributes             , f)
  = render_record_attribute_form(:instant_messaging_handle_attributes , f)
  = render_record_attribute_form(:website_attributes                  , f)
  = render_record_attribute_form(:address_attributes                  , f)

%fieldset.contact-background-info
  %legend= f.label(:info)
  .field.tinymce
    = f.text_area :info

- content_for :bottom_javascripts do
  = javascript_include_tag templates_contacts_path

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
e9_crm-0.1.10 app/views/e9_crm/contacts/_form_inner.html.haml
e9_crm-0.1.8 app/views/e9_crm/contacts/_form_inner.html.haml