<!-- BEGIN CONTAINER -->
<div class="page-container">
  <!-- BEGIN CONTENT -->
  <div class="page-content-wrapper">
    <!-- BEGIN CONTENT BODY -->
    <!-- BEGIN PAGE HEAD-->
    <div class="page-head">
      <div class="container-fluid">
        <!-- BEGIN PAGE TITLE -->
        <div class="page-title">
          <h1>Stock inicial</h1>
        </div>
        <!-- END PAGE TITLE -->
      </div>
    </div>
    <!-- END PAGE HEAD-->
    <!-- BEGIN PAGE CONTENT BODY -->
    <div class="page-content">
      <div class="container-fluid">
        <!-- END PAGE BREADCRUMBS -->
        <ul class="page-breadcrumb breadcrumb">
          <%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
        </ul>
        <!-- BEGIN PAGE CONTENT INNER -->
        <div class="page-content-inner">
          <div id="notice"><%= notice %></div>
          <div class="row">
            <div class="col-md-12">
              <div class="portlet light">
                <div class="portlet-body form">
                  <div id="error_explanation"></div>
                  <!-- lista de productos -->
                  <h4 class="form-section"> Lista de productos</h4>
                  <div class="portlet-body">
                    <div class="row">
                      <% unless current_user.usertype == "G" || current_user.usertype == "S" %>
                        <%= label_tag :pointsale, "Puntos de venta", class: "control-label col-md-1 col-sm-2" %>
                        <div class="col-md-3 col-sm-4">
                          <%= select_tag "pointsale", options_from_collection_for_select(@pointsales, :id, :name), class: "form-control input-medium" %>
                        </div>
                      <% end %>
                      <!-- stock minimo para los seleccionados -->
                      <div class="col-md-6 col-sm-6">
                        <div class="form-group">
                          <label class="col-md-3 col-sm-3"> Stock inicial </label>
                          <div class="col-md-2 col-sm-3">
                            <input class="form-control input-xsmall" type="number" min="0" id="initial_stock_input">
                          </div>
                          <div class="col-md-4 col-sm-5">
                            <button type="button" class="btn btn-success" onclick="initialStock()"><i class="fa fa-save"></i>&nbsp&nbspGuardar cambios</button>
                          </div>
                        </div>
                      </div>
                    </div>
                    <h4 class="form-section" style="margin-top: 5px; margin-bottom: 20px"></h4>
                  </div>
                </div>
                <%= render 'form' %>
              </div>
            </div>
          </div>
        </div>
        <!-- END PAGE CONTENT INNER -->
      </div>
    </div>
    <!-- END PAGE CONTENT BODY -->
    <!-- END CONTENT BODY -->
  </div>
  <!-- END CONTENT -->
</div>
