<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:image_settings) %> <% end %> <%= form_tag admin_image_settings_path, :method => :put do %> <% destroy = Spree.t(:destroy) %>
<%= Spree.t(:general_settings)%>
<%= Spree.t(:image_settings_warning) %>
<%= label_tag 'preferences[attachment_path]', Spree.t(:attachment_path) %> <%= preference_field_tag 'preferences[attachment_path]', Spree::Config[:attachment_path], :type => :string %>
<%= label_tag 'preferences[attachment_default_url]', Spree.t(:attachment_default_url) %> <%= preference_field_tag 'preferences[attachment_default_url]', Spree::Config[:attachment_default_url], :type => :string %>
<%= label_tag 'preferences[attachment_url]', Spree.t(:attachment_url) %> <%= preference_field_tag 'preferences[attachment_url]', Spree::Config[:attachment_url], :type => :string %>
<%= label_tag 'preferences[attachment_default_style]', Spree.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]', Spree.t(:use_s3) %>
<%= Spree.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', Spree.t(:add_new_style), '#', :class => 'add_new_style button' %>
<%= button Spree.t('actions.update'), 'icon-refresh' %>
<% end %>