<% if Spree::Config[:enable_fishbowl] %>
<%= t(:fishbowl_settings)%> <% @fishbowl_options.each do |key| %>
<%= label_tag(key, t(key.to_s.gsub('fishbowl_', '').to_sym) + ': ') + tag(:br) %> <%= text_field_tag('preferences[' + key.to_s + ']', Spree::Config[key], { :size => 10, :class => 'fullwidth' }) %>
<% end %>
<%= hidden_field_tag 'preferences[fishbowl_always_fetch_current_inventory]', '0' %> <%= check_box_tag('preferences[fishbowl_always_fetch_current_inventory]', "1", Spree::Config[:fishbowl_always_fetch_current_inventory]) %> <%= t(:always_fetch_current_inventory) %>
<% if !@location_groups.empty? %>
<%= label_tag(:fishbowl_location_group, t(:location_group) + ': ') + tag(:br) %> <%= select('preferences', 'fishbowl_location_group', @location_groups, { :selected => Spree::Config[:fishbowl_location_group]}, { :class => ['select2', 'fullwidth'] }) %>
<% end %>
<% end %>