Sha256: 7d8b82026459ddb253c6b8a1f9a00d8f279352600a18bc2136a6c719a70c011a
Contents?: true
Size: 924 Bytes
Versions: 4
Compression:
Stored size: 924 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, :class => 'text' %dl.half %dt= f.label :permalink %dd= f.text_field :permalink, :class => 'text' %dl %dt= f.label :description %dd= f.text_area :description, :class => 'text' = 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
4 entries across 4 versions & 1 rubygems