<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:general_settings) %> <% end %> <%= form_tag admin_general_settings_path, :method => :put do %>
<% @preferences_general.each do |key| type = Spree::Config.preference_type(key) %>
<%= label_tag(key, Spree.t(key)) + tag(:br) if type != :boolean %> <%= preference_field_tag(key, Spree::Config[key], :type => type) %> <%= label_tag(key, Spree.t(key)) + tag(:br) if type == :boolean %>
<% end %>
<%= Spree.t(:security_settings)%> <% @preferences_security.each do |key| type = Spree::Config.preference_type(key) %>
<%= label_tag(key, Spree.t(key)) + tag(:br) if type != :boolean %> <%= preference_field_tag(key, Spree::Config[key], :type => type) %> <%= label_tag(key, Spree.t(key)) + tag(:br) if type == :boolean %>
<% end %>
<%= Spree.t(:currency_settings)%> <% @preferences_currency.each do |key| type = Spree::Config.preference_type(key) %>
<%= label_tag(key, Spree.t(key)) + tag(:br) if type != :boolean %> <%= preference_field_tag(key, Spree::Config[key], :type => type) %> <%= label_tag(key, Spree.t(key)) + tag(:br) if type == :boolean %>
<% end %>
<%= label_tag :currency, Spree.t(:choose_currency) %>
<%= select_tag :currency, currency_options, :class => 'fullwidth' %>
<%= label_tag Spree.t(:currency_symbol_position) %>
  • <%= radio_button_tag :currency_symbol_position, "before", Spree::Config[:currency_symbol_position] == "before" %> <%= label_tag :currency_symbol_position_before, Spree::Money.new(10, :symbol_position => "before") %>
  • <%= radio_button_tag :currency_symbol_position, "after", Spree::Config[:currency_symbol_position] == "after" %> <%= label_tag :currency_symbol_position_after, Spree::Money.new(10, :symbol_position => "after") %>
<%= label_tag :currency_decimal_mark, Spree.t(:currency_decimal_mark) %>
<%= text_field_tag :currency_decimal_mark, Spree::Config[:currency_decimal_mark], :size => 3 %>
<%= label_tag :currency_thousands_separator, Spree.t(:currency_thousands_separator) %>
<%= text_field_tag :currency_thousands_separator, Spree::Config[:currency_thousands_separator], :size => 3 %>
<%= button Spree.t('actions.update'), 'refresh' %> <%= Spree.t(:or) %> <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), edit_admin_general_settings_url, :class => 'button' %>
<% end %>