Sha256: a5fc817f17d8bf1d1eb9df0a0788dd3765e9919472f2dbfc2af2eca588f7b529

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

= form_for resource do |f|
  = resource_error_messages!
  .field
    = f.label :name, nil, :class => :req
    = f.text_field :name
  .field
    = f.label :nickname
    = f.text_field :nickname
  %fieldset.checkbox
    %legend
      = f.label :vendor_category_id, resource_class.human_attribute_name(:vendor_category), :class => :req
    %ul
      - VendorCategory.order(:name).each do |vc|
        %li.checkbox
          = check_box_tag 'vendor[vendor_category_ids][]', vc.id, resource.vendor_category_ids.member?(vc.id), :id => "vendor_category_#{vc.id}"
          = label_tag "vendor_category_#{vc.id}", vc.name
  .field
    = upload_mount_field(resource.logo, :reset_path => true, :required => true)

  %fieldset
    %legend= e9_t(:widget_settings_legend)
    .field
      = f.label :sales_email, nil, :class => :req
      = f.text_field :sales_email
    .field
      = f.label :sales_full_name
      = f.text_field :sales_full_name
    .field
      = f.label :sales_title
      = f.text_field :sales_title
    .field
      = f.label :sales_phone
      = f.text_field :sales_phone
    .field
      = help_label(f, :short_description, :key => :interpolation_instructions)
      = f.text_area :short_description
    .field
      = help_label(f, :long_description, :key => :interpolation_instructions)
      = f.text_area :long_description
    .field
      = f.label :landing_page, nil, :class => :req
      = f.text_area :landing_page

  .actions
    = f.submit

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
e9_vendors-0.0.9 app/views/e9_vendors/vendors/_form.html.haml
e9_vendors-0.0.8 app/views/e9_vendors/vendors/_form.html.haml
e9_vendors-0.0.7 app/views/e9_vendors/vendors/_form.html.haml