<div ng-controller="responsavelController">

    <div class="modal-header">
        <h3>{{selected.item.op}} Gestor</h3>
    </div>
    <div class="modal-body">
        <button class="btn btn-primary"
                ng-click="openModalAssociarResponsavelUtilizador(selected.item, selected.item.permUtil)"
                ng-disabled="selected.item.permUtil.PEditar==false || selected.item.permUtil.PCriar==false || selected.permUtil.IdUtilizador>0">
            Utilizador
        </button>
        <br />
        <br />
        <span>Nome</span>
        <br />
        <input class="form-control" ng-model="selected.item.Nome" maxlength="100" />
        <br />
        <span>NIF</span>
        <br />
        <input class="form-control" ng-model="selected.item.NIF" maxlength="15" />
        <br />
    </div>
    <div class="modal-footer">
        
        <button class="btn btn-primary" ng-disabled="selected.item.IdUtilizador==0" ng-click="ok()">Guardar</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>

</div>