<div ng-controller="ocorrenciasController">

    <!--<input type="text" class="form-control" placeholder="Procurar..." ng-model="procurar_p" ng-change="selectedPlanoMan=null">-->


    <div class="col-md-12" style="padding:0px" ng-init="carregarOcorrenciasInv(selectedCadastro.Pk_Inventario)" collapse="isCollapsed">
        <div class="table-responsive">
            <table class="table table-hover table-striped">
                <tr>
                    <th style="width:90px">Data</th>
                    <th>Gestor</th>
                    <th>Sit.</th>
                    <th>Assunto</th>
                    <th>Texto da Nota</th>
                    <th style="width:20px"></th>
                </tr>

                <tr class="apontar" ng-click="selOcorrencia(item)"
                    ng-repeat="item in lstOcorrencias"
                    ng-class="{info:item.Detalhe.PkDetalhe==selectedOcorrencia.Detalhe.PkDetalhe}" ng-style="getCorLinhaEncerrado(item.Ocorrencia.Estado==='R')">
                    <td style="width:90px">{{item.Detalhe.DataStr}}</td>
                    <td>{{item.Ocorrencia.NomeResponsavel}}</td>
                    <td style="width:20px">
                        <input type="text" readonly="readonly" ng-model="item.Ocorrencia.Estado" class="input_tab readonly"
                               popover-placement="left"
                               popover-trigger="mouseenter"
                               data-popover="{{item.Ocorrencia.DescricaoEstado}}" />
                    </td>
                    <td>{{item.Detalhe.Assunto}}</td>
                    <td class="content_td" style="width:250px" ng-click="openModalNotasOcorrencia(item.Detalhe.TextoNota)"><p>{{item.Detalhe.TextoNota}}</p></td>
                    <td style="text-align:right; width:20px">
                        <button popover-placement="left"
                                popover-trigger="mouseenter"
                                data-popover="Ver texto" ng-disabled="mnuGESTAO.PEditar==false"
                                ng-click="openModalNotasOcorrencia(item.Detalhe.TextoNota)"
                                type="button" class="btn btn-default btn-xs">
                            <span class="glyphicon glyphicon-eye-open"></span>
                        </button>

                    </td>
                </tr>
            </table>
        </div>
    </div>

</div>
