<div ng-controller="ocorrenciasController">
    <div class="modal-header">
        <h3>Ocorrência</h3>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-md-6">
                <!--<label>Emissor</label>
                <br />
                <input class="form-control" ng-model="selected.item.Emissor" maxlength="255" />
                <br />-->
                
                <label>Assunto</label>
                <br />
                <input class="form-control" ng-model="selected.item.Assunto" maxlength="255" />
                <br />
                
            </div>
            <div class="col-md-6">
                <label>Texto da nota</label>
                <br />
                <textarea class="form-control tarea"
                          ng-model="selected.item.TextoNota"
                          style="min-height:50px; height:200px"></textarea>
                <br />
            </div>
        </div>
        
    </div>
    <div class="modal-footer">
        <button class="btn btn-default"
                ng-click="encerraOcorrencia(selected.item)"
                ng-show="selected.item.EstadoSigla!='R'"
                ng-disabled="selected.item.perm.PCriar==false">
            Encerrar
        </button>
        <button class="btn btn-primary"
                ng-click="validaDadosFecha(validaDadosOcorrenciasDetalhes,[selected.item])"
                ng-disabled="selected.item.perm.PCriar==false">
            Guardar
        </button>
        <button class="btn btn-warning" ng-click="cancel()" id="btnModalFechar">Fechar</button>
    </div>

</div>
<script>
    $(document).ready(function () {
        $('.date').mask('0000-00-00');

    });
</script>