Sha256: 470ee1519218aaaaa0cc9e3d0fdcb12e964e5ddd514958b0d25840b0bcc22062

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 Bytes

Contents

= form_for @product_category do |f|
  = f.error_messages
  = field_set_tag 'Category Details' do
    %dl
      %dt= f.label :name
      %dd= f.text_field :name
    %dl
      %dt= f.label :permalink
      %dd= f.text_field :permalink
    %dl
      %dt= f.label :description
      %dd= f.text_area :description
  = field_set_tag "Attachments" do

    %dl
      %dt= f.label :image_file, "Image"
      %dd
        = attachment_preview @product_category.image
        %p= f.file_field :image_file

  %p.submit
    - unless @product_category.new_record?
      %span.right= link_to "Delete", @product_category, :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this category?"}
    = f.submit :class => 'button green'
    = link_to "Cancel", :product_categories, :class => 'button'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppe-0.0.7 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.6 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.5 app/views/shoppe/product_categories/_form.html.haml