Sha256: 2bc6d8d4c10d32bbb6e90870d8605fd36bfa8a81532a5b05d912b5c21c6a2bc0
Contents?: true
Size: 1.72 KB
Versions: 6
Compression:
Stored size: 1.72 KB
Contents
- @page_title = "#{t('shoppe.localisations.localisations')} - #{@product.name}" = content_for :header do %p.buttons= link_to t('shoppe.localisations.back_to_localisations'), [@product, :localisations], :class => 'button' %h2.products= t('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('shoppe.product.category_details') do .splitContainer %dl.half %dt= f.label :name, t('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('shoppe.product.permalink') %dd= f.text_field :permalink, :class => 'text' %dl.cleared %dt= f.label :description, t('shoppe.product.description') %dd= f.text_area :description, :class => 'text' %dl.cleared %dt= f.label :short_description, t('shoppe.product.short_description') %dd= f.text_area :short_description, :class => 'text' %p.submit - unless @localisation.new_record? %span.right= link_to t('shoppe.delete'), product_localisation_path(@product, @localisation), :class => 'button purple', :method => :delete, :data => {:confirm => t('shoppe.localisations.delete_confirmation')} = f.submit t('shoppe.localisations.save_localisation'), :class => 'button green'
Version data entries
6 entries across 6 versions & 2 rubygems