<div class="row">
  <div class="page-wrapper chiller-theme toggled">
    
    <main class="page-content">
      <div class="container justify-content-md-center">

        <h2>Inserir Estoque por Grade</h2>
        <div class="row">
          
          <div class="col-md-3 pr-0">
            <input type="text" ng-model="grupo" class="form-control borda-input" placeholder="Nova busca por grade">
          </div>
          <a href="#/group/edit/{{ grupo }}" role="button" class="btn btn-info borda-bt">Buscar</a>

        </div>

        <p ng-show="mensagem.length" class="alert alert-info">{{mensagem}}</p>

        <div class="row form-login" ng-init="inicio()">

          <div class="col">
            <form name="formItem" ng-submit="submeter()">
            <table class="table">
              <thead>
                <tr>
                  <th scope="col">#</th>
                  <th scope="col">Título do Produto</th>
                  <th scope="col">Tamanho</th>
                  <th scope="col">Grupo</th>
                  <th scope="col">Bhan</th>
                  <th scope="col">Atual</th>
                  <th scope="col">Novo</th>
                </tr>
              </thead>
              <tbody ng-repeat="i in items track by $index">
                <tr>
                  <th scope="row">{{ i.ean }}</th>
                  <td>{{ i.nameProduct }}</td>
                  <td class="text-center">{{ i.sizeProduct }}</td>
                  <td>{{ i.codGroup }}</td>
                  <td>{{ i.skuBhan }}</td>
                  <td class="text-center">{{ i[dock] }}</td>
                  <td>
                    <input type="text" class="form-control tamanho-input" ng-model="stock[$index]">
                  </td>
                </tr>
              </tbody>

            </table>
            <button type="submit" class="btn btn-success">Atualizar Estoque</button>
            <a href="#/items" role="button" class="btn btn-primary">Voltar</a>
            </form>

          </div>

        </div>

      </div>
    </main>

  </div>

</div>
