<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= t(:image_settings) %> <% end %> <%= form_tag admin_image_settings_path, :method => :put do %>
<%= t(:general_settings)%>
<%= t(:image_settings_warning) %>
<%= label_tag 'preferences[attachment_path]', t(:attachment_path) %> <%= preference_field_tag 'preferences[attachment_path]', Spree::Config[:attachment_path], :type => :string %>
<%= label_tag 'preferences[attachment_default_url]', t(:attachment_default_url) %> <%= preference_field_tag 'preferences[attachment_default_url]', Spree::Config[:attachment_default_url], :type => :string %>
<%= label_tag 'preferences[attachment_url]', t(:attachment_url) %> <%= preference_field_tag 'preferences[attachment_url]', Spree::Config[:attachment_url], :type => :string %>
<%= label_tag 'preferences[attachment_default_style]', t(:attachment_default_style) %> <%= collection_select 'preferences', 'attachment_default_style', @styles, :first, :first, {:selected => Spree::Config[:attachment_default_style] }, :class => 'select2 fullwidth' %>
<%= preference_field_tag 'preferences[use_s3]', Spree::Config[:use_s3], :type => :boolean %> <%= label_tag 'preferences[use_s3]', t(:use_s3) %>
<%= t(:attachment_styles) %>
<% @styles.each_with_index do |(style_name, style_value), index| %>
<%= label_tag "attachment_styles[#{style_name}]", style_name %> <%= text_field_tag "attachment_styles[#{style_name}]", style_value, :class => 'fullwidth' %>
<% end %>
<%= link_to_with_icon 'icon-plus', t(:add_new_style), '#', :class => 'add_new_style button' %>
<%= button t(:update), 'icon-refresh' %>
<% end %>