Sha256: c32ba295cfb67a5d09e0d6e5991fafa74a13550fadd7e319060784934a330e0a

Contents?: true

Size: 870 Bytes

Versions: 5

Compression:

Stored size: 870 Bytes

Contents

= form_for @product_category do |f|
  = f.error_messages
  = field_set_tag 'Category Details' do
    .splitContainer
      %dl.half
        %dt= f.label :name
        %dd= f.text_field :name
      %dl.half
        %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

5 entries across 5 versions & 1 rubygems

Version Path
shoppe-0.0.12 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.11 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.10 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.9 app/views/shoppe/product_categories/_form.html.haml
shoppe-0.0.8 app/views/shoppe/product_categories/_form.html.haml