<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= t(:banner_box_settings) %> <% end %> <%= render :partial => 'spree/admin/shared/banner_box_sub_menu' %> <%= form_tag admin_banner_box_settings_path, :method => :put do %>
<%= t(:general_settings)%>
<%= t(:banner_box_settings_warning) %>
<%= label_tag 'preferences[attachment_path]', t(:banner_path) %> <%= preference_field_tag 'preferences[banner_path]', Spree::Config[:banner_path], :type => :string %>
<%= label_tag 'preferences[attachment_default_url]', t(:banner_default_url) %> <%= preference_field_tag 'preferences[banner_default_url]', Spree::Config[:banner_default_url], :type => :string %>
<%= label_tag 'preferences[attachment_url]', t(:banner_url) %> <%= preference_field_tag 'preferences[banner_url]', Spree::Config[:banner_url], :type => :string %>
<%= label_tag 'preferences[attachment_default_style]', t(:banner_default_style) %> <%= collection_select 'preferences', 'banner_default_style', @styles, :first, :first, {:selected => Spree::Config[:banner_default_style] }, :class => 'select2 fullwidth' %>
<%= t(:banner_styles) %>
<%= link_to_with_icon 'icon-plus', t(:add_new_banner_style), '#', :class => 'add_new_banner_style button' %>
<%= button t(:update), 'icon-refresh' %>
<% end %>