<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1><%= t(:inventory_settings) %></h1>

<%= form_tag admin_inventory_settings_path, :method => :put do %>

  <p data-hook="show_zero_stock">
    <label>
      <%= hidden_field_tag 'preferences[show_zero_stock_products]', '0' %>
      <%= check_box_tag('preferences[show_zero_stock_products]', "1", Spree::Config[:show_zero_stock_products]) %>
      <%= t(:show_out_of_stock_products) %>
    </label>
  </p>
  
  <p data-hook="allow_backorders">
    <label>
      <%= hidden_field_tag 'preferences[allow_backorders]', '0' %>
      <%= check_box_tag('preferences[allow_backorders]', "1", Spree::Config[:allow_backorders]) %>
      <%= t(:allow_backorders) %>
    </label>
  </p>

  <p class="form-buttons" data-hook="buttons">
    <%= button t(:update) %>
  </p>

<% end %>
