Sha256: 783a0f25e4781107801ddd161d5f04dd1b7380f44afe28898963735b4a843a11

Contents?: true

Size: 1.76 KB

Versions: 6

Compression:

Stored size: 1.76 KB

Contents

- @page_title = "#{t('kkt_shoppe.localisations.localisations')} - #{@product.name}"
= content_for :header do
  %p.buttons= link_to t('kkt_shoppe.localisations.back_to_localisations'), [@product, :localisations], :class => 'button'
  %h2.products= t('kkt_shoppe.localisations.localisations_of', name: @product.name)

- loc = @localisation.new_record? ? :en : @localisation.locale.to_sym
- Globalize.with_locale(loc) do
  = form_for [@product, @localisation], :url => @localisation.new_record? ? product_localisations_path(@product) : product_localisation_path(@product, @localisation), :html => {:multipart => true} do |f|
    = f.error_messages

    = field_set_tag t('kkt_shoppe.product.category_details') do
      .splitContainer
        %dl.half
          %dt= f.label :name, t('kkt_shoppe.product.name')
          %dd= f.text_field :name, :class => 'focus text'
        %dl.half
          %dt= f.label :locale
          %dd= f.select :locale, I18n.available_locales, {}, {class: "chosen"}
      %dl
        %dt= f.label :permalink, t('kkt_shoppe.product.permalink')
        %dd= f.text_field :permalink, :class => 'text'
      %dl.cleared
        %dt= f.label :description, t('kkt_shoppe.product.description')
        %dd= f.text_area :description, :class => 'text'
      %dl.cleared
        %dt= f.label :short_description, t('kkt_shoppe.product.short_description')
        %dd= f.text_area :short_description, :class => 'text'

    %p.submit
      - unless @localisation.new_record?
        %span.right= link_to t('kkt_shoppe.delete'), product_localisation_path(@product, @localisation), :class => 'button purple', :method => :delete, :data => {:confirm => t('kkt_shoppe.localisations.delete_confirmation')}
      = f.submit t('kkt_shoppe.localisations.save_localisation'), :class => 'button green'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/product_localisations/form.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/product_localisations/form.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/product_localisations/form.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/product_localisations/form.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/product_localisations/form.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/product_localisations/form.html.haml