Sha256: 4a0af5b13f1127bcc87d74990e1dd30049947ed249df3b4f66140289a6b8bd16
Contents?: true
Size: 1.78 KB
Versions: 9
Compression:
Stored size: 1.78 KB
Contents
- @page_title = "#{t('kkt_shoppe.localisations.localisations')} - #{@product_category.name}" = content_for :header do %p.buttons= link_to t('kkt_shoppe.localisations.back_to_localisations'), [@product_category, :localisations], :class => 'button' %h2.products= t('kkt_shoppe.localisations.localisations_of', name: @product_category.name) - loc = @localisation.new_record? ? :en : @localisation.locale.to_sym - Globalize.with_locale(loc) do = form_for [@product_category, @localisation], :url => @localisation.new_record? ? product_category_localisations_path(@product_category) : product_category_localisation_path(@product_category, @localisation), :html => {:multipart => true} do |f| = f.error_messages = field_set_tag t('kkt_shoppe.product_category.category_details') do .splitContainer %dl.half %dt= f.label :name, t('kkt_shoppe.product_category.name') %dd= f.text_field :name, :class => 'focus text' %dl.half %dt= f.label :locale %dd= f.select :locale, I18n.available_locales, {selected: @localisation.locale || params[:locale_field]}, {class: "chosen"} %dl %dt= f.label :permalink, t('kkt_shoppe.product_category.permalink') %dd= f.text_field :permalink, :class => 'text' %dl.cleared %dt= f.label :description, t('kkt_shoppe.product_category.description') %dd= f.text_area :description, :class => 'text' %p.submit - unless @localisation.new_record? %span.right= link_to t('kkt_shoppe.delete'), product_category_localisation_path(@product_category, @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
9 entries across 9 versions & 1 rubygems