Sha256: 865d44694218dec927c95ef5a0f7cd94bed49fa17909296b9d5ee875420e45b5
Contents?: true
Size: 1.76 KB
Versions: 3
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
3 entries across 3 versions & 1 rubygems