Commit edd8b8bdb2969875699d90623151a2820c039e7a
1 parent
293e5b49
Exists in
master
[Redmine Atendimento #4431]Padronização list contrato
Showing
13 changed files
with
509 additions
and
269 deletions
Show diff stats
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js
| ... | ... | @@ -108,7 +108,13 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 108 | 108 | $scope.acaoEmMassaRecursosMateriais = false; |
| 109 | 109 | $scope.acaoEmMassaRecursosHumanos = false; |
| 110 | 110 | $scope.setCurrentStep(0); |
| 111 | - | |
| 111 | + $scope.atualizarListaSizeSelectReqNegocio(); | |
| 112 | + $scope.atualizarListaSizeSelectSolucao(); | |
| 113 | + $scope.atualizarListaSizeSelectServicoSolucao(); | |
| 114 | + $scope.atualizarListaSizeSelectBeneficio(); | |
| 115 | + $scope.atualizarListaSizeSelectRecursoMaterial(); | |
| 116 | + $scope.atualizarListaSizeSelectRecursoHumano(); | |
| 117 | + $scope.atualizarListaSizeSelectAcaoContigencia(); | |
| 112 | 118 | $timeout(function() { |
| 113 | 119 | $scope.estudoTecnicoForm.planejamentoContratacaoForm.$submitted = false; |
| 114 | 120 | $scope.estudoTecnicoForm.definicaoRequisitosForm.$submitted = false; |
| ... | ... | @@ -133,6 +139,14 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 133 | 139 | |
| 134 | 140 | $scope.edit = edit; |
| 135 | 141 | |
| 142 | + $scope.atualizarListaSizeSelectReqNegocio(); | |
| 143 | + $scope.atualizarListaSizeSelectSolucao(); | |
| 144 | + $scope.atualizarListaSizeSelectServicoSolucao(); | |
| 145 | + $scope.atualizarListaSizeSelectBeneficio(); | |
| 146 | + $scope.atualizarListaSizeSelectRecursoMaterial(); | |
| 147 | + $scope.atualizarListaSizeSelectRecursoHumano(); | |
| 148 | + $scope.atualizarListaSizeSelectAcaoContigencia(); | |
| 149 | + | |
| 136 | 150 | $scope.setCurrentStep(0); |
| 137 | 151 | |
| 138 | 152 | $scope.setLoading(false); |
| ... | ... | @@ -255,6 +269,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 255 | 269 | if(!value){ |
| 256 | 270 | $scope.listaRequisitoTecSelecao = []; |
| 257 | 271 | } |
| 272 | + $scope.atualizarListaSizeSelectReqNegocio(); | |
| 258 | 273 | }; |
| 259 | 274 | |
| 260 | 275 | $scope.checkReqNegocio = function(item){ |
| ... | ... | @@ -276,6 +291,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 276 | 291 | if(!value){ |
| 277 | 292 | $scope.listaAlternativa = []; |
| 278 | 293 | } |
| 294 | + $scope.atualizarListaSizeSelectSolucao(); | |
| 279 | 295 | }; |
| 280 | 296 | |
| 281 | 297 | $scope.checkAlternativa = function(item){ |
| ... | ... | @@ -296,6 +312,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 296 | 312 | if(!value){ |
| 297 | 313 | $scope.listaServicoSolucao = []; |
| 298 | 314 | } |
| 315 | + $scope.atualizarListaSizeSelectServicoSolucao(); | |
| 299 | 316 | }; |
| 300 | 317 | |
| 301 | 318 | $scope.checkBemServico = function(item){ |
| ... | ... | @@ -316,6 +333,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 316 | 333 | if(!value){ |
| 317 | 334 | $scope.listaBeneficio = []; |
| 318 | 335 | } |
| 336 | + $scope.atualizarListaSizeSelectBeneficio(); | |
| 319 | 337 | }; |
| 320 | 338 | |
| 321 | 339 | $scope.checkBeneficio = function(item){ |
| ... | ... | @@ -336,6 +354,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 336 | 354 | if(!value){ |
| 337 | 355 | $scope.listaRecursoMateriais = []; |
| 338 | 356 | } |
| 357 | + $scope.atualizarListaSizeSelectRecursoMaterial(); | |
| 339 | 358 | }; |
| 340 | 359 | |
| 341 | 360 | $scope.checkRecursoMaterial = function(item){ |
| ... | ... | @@ -356,6 +375,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 356 | 375 | if(!value){ |
| 357 | 376 | $scope.listaRecursoHumanos = []; |
| 358 | 377 | } |
| 378 | + $scope.atualizarListaSizeSelectRecursoHumano(); | |
| 359 | 379 | }; |
| 360 | 380 | |
| 361 | 381 | $scope.checkRecursoHumano = function(item){ |
| ... | ... | @@ -375,6 +395,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 375 | 395 | if(!value){ |
| 376 | 396 | $scope.listaAcoesContigencia = []; |
| 377 | 397 | } |
| 398 | + $scope.atualizarListaSizeSelectAcaoContigencia(); | |
| 378 | 399 | }; |
| 379 | 400 | |
| 380 | 401 | $scope.checkAcaoContigencia = function(item){ |
| ... | ... | @@ -799,6 +820,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 799 | 820 | } |
| 800 | 821 | $scope.listaRequisitoTecSelecao = []; |
| 801 | 822 | $scope.estudoTecnico.etRequisitosNegocio = requisitos; |
| 823 | + $scope.atualizarListaSizeSelectReqNegocio(); | |
| 802 | 824 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 803 | 825 | } |
| 804 | 826 | }); |
| ... | ... | @@ -832,6 +854,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 832 | 854 | } |
| 833 | 855 | $scope.listaAlternativa = []; |
| 834 | 856 | $scope.estudoTecnico.etLevantamentoAlternativas = solucoes; |
| 857 | + $scope.atualizarListaSizeSelectSolucao(); | |
| 835 | 858 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 836 | 859 | } |
| 837 | 860 | }); |
| ... | ... | @@ -863,6 +886,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 863 | 886 | } |
| 864 | 887 | } |
| 865 | 888 | $scope.estudoTecnico.etBensServicosSolucoes = bensServicos; |
| 889 | + $scope.atualizarListaSizeSelectServicoSolucao(); | |
| 866 | 890 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 867 | 891 | } |
| 868 | 892 | }); |
| ... | ... | @@ -896,6 +920,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 896 | 920 | } |
| 897 | 921 | $scope.listaBeneficio = []; |
| 898 | 922 | $scope.estudoTecnico.etBeneficiosEsperados = beneficios; |
| 923 | + $scope.atualizarListaSizeSelectBeneficio(); | |
| 899 | 924 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 900 | 925 | } |
| 901 | 926 | }); |
| ... | ... | @@ -930,6 +955,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 930 | 955 | } |
| 931 | 956 | $scope.listaRecursoMateriais = []; |
| 932 | 957 | $scope.estudoTecnico.etRecursosMateriais = recursosMateriais; |
| 958 | + $scope.atualizarListaSizeSelectRecursoMaterial(); | |
| 933 | 959 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 934 | 960 | } |
| 935 | 961 | }); |
| ... | ... | @@ -964,6 +990,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 964 | 990 | } |
| 965 | 991 | $scope.estudoTecnico.etRecursosHumanos = recursosHumanos; |
| 966 | 992 | $scope.listaRecursoHumanos = []; |
| 993 | + $scope.atualizarListaSizeSelectRecursoHumano(); | |
| 967 | 994 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 968 | 995 | } |
| 969 | 996 | }); |
| ... | ... | @@ -997,6 +1024,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 997 | 1024 | } |
| 998 | 1025 | $scope.estudoTecnico.etAcoesContingencia = acoes; |
| 999 | 1026 | $scope.listaAcoesContigencia = []; |
| 1027 | + $scope.atualizarListaSizeSelectAcaoContigencia(); | |
| 1000 | 1028 | $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); |
| 1001 | 1029 | } |
| 1002 | 1030 | }); |
| ... | ... | @@ -1129,6 +1157,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1129 | 1157 | } else { |
| 1130 | 1158 | $scope.estudoTecnico.etRequisitosNegocio = [$scope.reqNegocio]; |
| 1131 | 1159 | } |
| 1160 | + $scope.atualizarListaSizeSelectReqNegocio(); | |
| 1132 | 1161 | $scope.$modalInstance.dismiss('cancel'); |
| 1133 | 1162 | } else { |
| 1134 | 1163 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1156,6 +1185,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1156 | 1185 | } else { |
| 1157 | 1186 | $scope.estudoTecnico.etLevantamentoAlternativas = [$scope.solucao]; |
| 1158 | 1187 | } |
| 1188 | + $scope.atualizarListaSizeSelectSolucao(); | |
| 1159 | 1189 | $scope.$modalInstance.dismiss('cancel'); |
| 1160 | 1190 | } else { |
| 1161 | 1191 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1185,6 +1215,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1185 | 1215 | $scope.bemServico.$index = 1; |
| 1186 | 1216 | $scope.estudoTecnico.etBensServicosSolucoes = [$scope.bemServico]; |
| 1187 | 1217 | } |
| 1218 | + $scope.atualizarListaSizeSelectServicoSolucao(); | |
| 1188 | 1219 | $scope.$modalInstance.dismiss('cancel'); |
| 1189 | 1220 | } else { |
| 1190 | 1221 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1212,6 +1243,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1212 | 1243 | } else { |
| 1213 | 1244 | $scope.estudoTecnico.etBeneficiosEsperados = [$scope.beneficioEsperado]; |
| 1214 | 1245 | } |
| 1246 | + $scope.atualizarListaSizeSelectBeneficio(); | |
| 1215 | 1247 | $scope.$modalInstance.dismiss('cancel'); |
| 1216 | 1248 | } else { |
| 1217 | 1249 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1239,6 +1271,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1239 | 1271 | $scope.estudoTecnico.etRecursosMateriais = [$scope.estudoTecnicoRecursoMaterialTemp]; |
| 1240 | 1272 | } |
| 1241 | 1273 | $scope.estudoTecnicoRecursoMaterialTemp = {}; |
| 1274 | + $scope.atualizarListaSizeSelectRecursoMaterial(); | |
| 1242 | 1275 | $scope.$modalInstance.dismiss('cancel'); |
| 1243 | 1276 | } else { |
| 1244 | 1277 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1265,6 +1298,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1265 | 1298 | } else { |
| 1266 | 1299 | $scope.estudoTecnico.etRecursosHumanos = [$scope.estudoTecnicoRecursoHumanoTemp]; |
| 1267 | 1300 | } |
| 1301 | + $scope.atualizarListaSizeSelectRecursoHumano(); | |
| 1268 | 1302 | $scope.estudoTecnicoRecursoHumanoTemp = {}; |
| 1269 | 1303 | $scope.$modalInstance.dismiss('cancel'); |
| 1270 | 1304 | } else { |
| ... | ... | @@ -1293,6 +1327,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1293 | 1327 | $scope.acaoCont.$index = 1; |
| 1294 | 1328 | $scope.estudoTecnico.etAcoesContingencia = [$scope.acaoCont]; |
| 1295 | 1329 | } |
| 1330 | + $scope.atualizarListaSizeSelectAcaoContigencia(); | |
| 1296 | 1331 | $scope.$modalInstance.dismiss('cancel'); |
| 1297 | 1332 | } else { |
| 1298 | 1333 | //Mensagem de erro de campos obrigatorios não preenchidos |
| ... | ... | @@ -1518,4 +1553,60 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 1518 | 1553 | return $scope.stepValid; |
| 1519 | 1554 | }; |
| 1520 | 1555 | |
| 1556 | + $scope.atualizarListaSizeSelectReqNegocio = function() { | |
| 1557 | + if(!$scope.listaSize){ | |
| 1558 | + $scope.listaSize = 0; | |
| 1559 | + }; | |
| 1560 | + var lista = $scope.getReqNegocioChecked(); | |
| 1561 | + $scope.listaSize = lista.length; | |
| 1562 | + }; | |
| 1563 | + | |
| 1564 | + $scope.atualizarListaSizeSelectSolucao = function() { | |
| 1565 | + if(!$scope.listaSizeSolucao){ | |
| 1566 | + $scope.listaSizeSolucao = 0; | |
| 1567 | + }; | |
| 1568 | + var lista = $scope.getSolucaoChecked(); | |
| 1569 | + $scope.listaSizeSolucao = lista.length; | |
| 1570 | + }; | |
| 1571 | + | |
| 1572 | + $scope.atualizarListaSizeSelectServicoSolucao = function() { | |
| 1573 | + if(!$scope.listaSizeServicoSolucao){ | |
| 1574 | + $scope.listaSizeServicoSolucao = 0; | |
| 1575 | + }; | |
| 1576 | + var lista = $scope.getBemServicoChecked(); | |
| 1577 | + $scope.listaSizeServicoSolucao = lista.length; | |
| 1578 | + }; | |
| 1579 | + | |
| 1580 | + $scope.atualizarListaSizeSelectBeneficio = function() { | |
| 1581 | + if(!$scope.listaSizeBeneficio){ | |
| 1582 | + $scope.listaSizeBeneficio = 0; | |
| 1583 | + }; | |
| 1584 | + var lista = $scope.getBeneficioEsperadoChecked(); | |
| 1585 | + $scope.listaSizeBeneficio = lista.length; | |
| 1586 | + }; | |
| 1587 | + | |
| 1588 | + $scope.atualizarListaSizeSelectRecursoMaterial = function() { | |
| 1589 | + if(!$scope.listaSizeRecursoMaterial){ | |
| 1590 | + $scope.listaSizeRecursoMaterial = 0; | |
| 1591 | + }; | |
| 1592 | + var lista = $scope.getRecursoMaterialChecked(); | |
| 1593 | + $scope.listaSizeRecursoMaterial = lista.length; | |
| 1594 | + }; | |
| 1595 | + | |
| 1596 | + $scope.atualizarListaSizeSelectRecursoHumano = function() { | |
| 1597 | + if(!$scope.listaSizeRecursoHumano){ | |
| 1598 | + $scope.listaSizeRecursoHumano = 0; | |
| 1599 | + }; | |
| 1600 | + var lista = $scope.getRecursoHumanoChecked(); | |
| 1601 | + $scope.listaSizeRecursoHumano = lista.length; | |
| 1602 | + }; | |
| 1603 | + | |
| 1604 | + $scope.atualizarListaSizeSelectAcaoContigencia = function() { | |
| 1605 | + if(!$scope.listaSizeAcaoContigencia){ | |
| 1606 | + $scope.listaSizeAcaoContigencia = 0; | |
| 1607 | + }; | |
| 1608 | + var lista = $scope.getAcaoContChecked(); | |
| 1609 | + $scope.listaSizeAcaoContigencia = lista.length; | |
| 1610 | + }; | |
| 1611 | + | |
| 1521 | 1612 | }]); |
| 1522 | 1613 | \ No newline at end of file | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ObjetivoEstrategicoController.js
| ... | ... | @@ -16,6 +16,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti |
| 16 | 16 | $scope.limparObjetivoEstrategico(); |
| 17 | 17 | $scope.edit = true; |
| 18 | 18 | $scope.pgEdit = true; |
| 19 | + $scope.atualizarListaSizeSelect(); | |
| 19 | 20 | $timeout(function(){ |
| 20 | 21 | limparObjetivoEstrategicoForm(); |
| 21 | 22 | }); |
| ... | ... | @@ -56,7 +57,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti |
| 56 | 57 | } |
| 57 | 58 | |
| 58 | 59 | $scope.limparObjetivoEstrategicoNecessidade(); |
| 59 | - | |
| 60 | + $scope.atualizarListaSizeSelect(); | |
| 60 | 61 | if (continuar) { |
| 61 | 62 | formDialogNecessidade.$submitted = false; |
| 62 | 63 | formDialogNecessidade.$setPristine(); |
| ... | ... | @@ -139,6 +140,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti |
| 139 | 140 | if(!value){ |
| 140 | 141 | $scope.listaNecessidade = []; |
| 141 | 142 | } |
| 143 | + $scope.atualizarListaSizeSelect(); | |
| 142 | 144 | }; |
| 143 | 145 | |
| 144 | 146 | $scope.checkNecessidade = function(item){ |
| ... | ... | @@ -177,6 +179,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti |
| 177 | 179 | } |
| 178 | 180 | }); |
| 179 | 181 | }); |
| 182 | + $scope.atualizarListaSizeSelect(); | |
| 180 | 183 | $scope.$modalConfirmInstance.dismiss('cancel'); |
| 181 | 184 | $scope.listaNecessidade = []; |
| 182 | 185 | } |
| ... | ... | @@ -233,10 +236,20 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti |
| 233 | 236 | $scope.edit = false; |
| 234 | 237 | } |
| 235 | 238 | |
| 239 | + $scope.atualizarListaSizeSelect(); | |
| 236 | 240 | $scope.pgEdit = edit; |
| 237 | 241 | $scope.setLoading(false); |
| 238 | 242 | }); |
| 239 | 243 | }; |
| 244 | + | |
| 245 | + $scope.atualizarListaSizeSelect = function() { | |
| 246 | + if(!$scope.listaSize){ | |
| 247 | + $scope.listaSize = 0; | |
| 248 | + }; | |
| 249 | + var lista = recuperarNecessidadesSelecionadas(); | |
| 250 | + $scope.listaSize = lista.length; | |
| 251 | + }; | |
| 252 | + | |
| 240 | 253 | }]); |
| 241 | 254 | |
| 242 | 255 | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ProgramaController.js
| ... | ... | @@ -232,6 +232,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr |
| 232 | 232 | $scope.edit = false; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | + $scope.atualizarListaSizeSelect(); | |
| 235 | 236 | $scope.pgEdit = edit; |
| 236 | 237 | $scope.setLoading(false); |
| 237 | 238 | }); | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
| ... | ... | @@ -260,6 +260,9 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 260 | 260 | $scope.getConfiguracoesTemplate(); |
| 261 | 261 | $scope.preenchePapeis(); |
| 262 | 262 | $scope.carregarValoresPadrao(); |
| 263 | + $scope.atualizarListaSizeSelect(); | |
| 264 | + $scope.atualizarListaSizeSelectPenalidade(); | |
| 265 | + $scope.atualizarListaSizeSelectSancao(); | |
| 263 | 266 | |
| 264 | 267 | }; |
| 265 | 268 | |
| ... | ... | @@ -376,6 +379,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 376 | 379 | } |
| 377 | 380 | |
| 378 | 381 | // $scope.atualizaListaEtBensServicos(); |
| 382 | + $scope.atualizarListaSizeSelect(); | |
| 379 | 383 | $scope.$modalInstance.dismiss('cancel'); |
| 380 | 384 | } |
| 381 | 385 | $scope.setLoadingSalva(false); |
| ... | ... | @@ -404,6 +408,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 404 | 408 | $scope.termoReferencia.penalidades.push(penalid); |
| 405 | 409 | } |
| 406 | 410 | |
| 411 | + $scope.atualizarListaSizeSelectPenalidade(); | |
| 407 | 412 | $scope.setLoadingSalva(false); |
| 408 | 413 | $scope.$modalInstance.dismiss('cancel'); |
| 409 | 414 | |
| ... | ... | @@ -431,6 +436,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 431 | 436 | $scope.termoReferencia.sancoes.push(sans); |
| 432 | 437 | } |
| 433 | 438 | |
| 439 | + $scope.atualizarListaSizeSelectSancao(); | |
| 434 | 440 | $scope.setLoadingSalva(false); |
| 435 | 441 | $scope.$modalInstance.dismiss('cancel'); |
| 436 | 442 | |
| ... | ... | @@ -500,6 +506,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 500 | 506 | $scope.termoReferencia.detalhamentosSolucoes[i].$checked = false; |
| 501 | 507 | } |
| 502 | 508 | } |
| 509 | + $scope.atualizarListaSizeSelect(); | |
| 503 | 510 | }); |
| 504 | 511 | }; |
| 505 | 512 | |
| ... | ... | @@ -526,6 +533,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 526 | 533 | $scope.termoReferencia.penalidades[i].$checked = false; |
| 527 | 534 | } |
| 528 | 535 | } |
| 536 | + $scope.atualizarListaSizeSelectPenalidade(); | |
| 529 | 537 | }); |
| 530 | 538 | }; |
| 531 | 539 | |
| ... | ... | @@ -552,6 +560,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 552 | 560 | $scope.termoReferencia.sancoes[i].$checked = false; |
| 553 | 561 | } |
| 554 | 562 | } |
| 563 | + $scope.atualizarListaSizeSelectSancao(); | |
| 555 | 564 | }); |
| 556 | 565 | }; |
| 557 | 566 | |
| ... | ... | @@ -772,9 +781,9 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 772 | 781 | } |
| 773 | 782 | }); |
| 774 | 783 | |
| 775 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
| 776 | - | |
| 777 | 784 | $scope.termoReferencia.penalidades.splice(index, 1); |
| 785 | + $scope.atualizarListaSizeSelectPenalidade(); | |
| 786 | + $scope.$modalConfirmInstance.dismiss('cancel'); | |
| 778 | 787 | } |
| 779 | 788 | }); |
| 780 | 789 | } else { |
| ... | ... | @@ -801,9 +810,10 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 801 | 810 | } |
| 802 | 811 | }); |
| 803 | 812 | |
| 804 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
| 805 | 813 | |
| 806 | 814 | $scope.termoReferencia.sancoes.splice(index, 1); |
| 815 | + $scope.atualizarListaSizeSelectSancao(); | |
| 816 | + $scope.$modalConfirmInstance.dismiss('cancel'); | |
| 807 | 817 | } |
| 808 | 818 | }); |
| 809 | 819 | } |
| ... | ... | @@ -828,9 +838,9 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 828 | 838 | } |
| 829 | 839 | }); |
| 830 | 840 | |
| 841 | + $scope.termoReferencia.detalhamentosSolucoes.splice(index, 1); | |
| 842 | + $scope.atualizarListaSizeSelect(); | |
| 831 | 843 | $scope.$modalConfirmInstance.dismiss('cancel'); |
| 832 | - | |
| 833 | - $scope.termoReferencia.detalhamentosSolucoes.splice(index, 1); | |
| 834 | 844 | } |
| 835 | 845 | }); |
| 836 | 846 | } else { |
| ... | ... | @@ -1062,5 +1072,47 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 1062 | 1072 | return {'active': false, 'complete' : true, 'invalid' : false}; |
| 1063 | 1073 | }; |
| 1064 | 1074 | |
| 1075 | + $scope.atualizarListaSizeSelect = function() { | |
| 1076 | + $timeout(function(){ | |
| 1077 | + if(!$scope.listaSize){ | |
| 1078 | + $scope.listaSize = 0; | |
| 1079 | + }; | |
| 1080 | + var lista = []; | |
| 1081 | + var objChecked = (clone($scope.getDetalhamentoSolucaoChecked())); | |
| 1082 | + if(objChecked != undefined){ | |
| 1083 | + lista.push(objChecked); | |
| 1084 | + } | |
| 1085 | + $scope.listaSize = lista.length; | |
| 1086 | + }); | |
| 1087 | + }; | |
| 1088 | + | |
| 1089 | + $scope.atualizarListaSizeSelectPenalidade = function() { | |
| 1090 | + $timeout(function(){ | |
| 1091 | + if(!$scope.listaSizePenalidade){ | |
| 1092 | + $scope.listaSizePenalidade = 0; | |
| 1093 | + }; | |
| 1094 | + var lista = []; | |
| 1095 | + var objChecked = (clone($scope.getPenalidadeChecked())); | |
| 1096 | + if(objChecked != undefined){ | |
| 1097 | + lista.push(objChecked); | |
| 1098 | + } | |
| 1099 | + $scope.listaSizePenalidade = lista.length; | |
| 1100 | + }); | |
| 1101 | + }; | |
| 1102 | + | |
| 1103 | + $scope.atualizarListaSizeSelectSancao = function() { | |
| 1104 | + $timeout(function(){ | |
| 1105 | + if(!$scope.listaSizeSancao){ | |
| 1106 | + $scope.listaSizeSancao = 0; | |
| 1107 | + }; | |
| 1108 | + var lista = []; | |
| 1109 | + var objChecked = (clone($scope.getSancaoChecked())); | |
| 1110 | + if(objChecked != undefined){ | |
| 1111 | + lista.push(objChecked); | |
| 1112 | + } | |
| 1113 | + $scope.listaSizeSancao = lista.length; | |
| 1114 | + }); | |
| 1115 | + }; | |
| 1116 | + | |
| 1065 | 1117 | }]); |
| 1066 | 1118 | ... | ... |
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg2.html
| ... | ... | @@ -15,30 +15,36 @@ |
| 15 | 15 | <div class="row margin-top"> |
| 16 | 16 | <div class="col-sm-12"> |
| 17 | 17 | <div class="panel panel-default"> |
| 18 | - <div class="panel-heading clearfix"> | |
| 19 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 18 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 19 | + | |
| 20 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 21 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 20 | 22 | ng-click="openModalRequisitoNegocio();"> |
| 21 | 23 | <i class="fa fa-plus-circle yellow-dark"></i> |
| 22 | 24 | <translate>LABEL.ADICIONAR</translate> |
| 23 | 25 | </button> |
| 24 | - | |
| 25 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRequisitoTecSelecao.length == 1" | |
| 26 | + </div> | |
| 27 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 28 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSize != 1" | |
| 26 | 29 | ng-click="abrirRequisitoNegocio(false)"> |
| 27 | 30 | <i class="fa fa-search blue"></i> |
| 28 | 31 | <translate>LABEL.VISUALIZAR</translate> |
| 29 | 32 | </button> |
| 30 | - | |
| 31 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRequisitoTecSelecao.length == 1" class="btn btn-clear" type="button" | |
| 33 | + </div> | |
| 34 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 35 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSize != 1 || !edit" class="btn btn-clear" type="button" | |
| 32 | 36 | ng-click="abrirRequisitoNegocio(true)"> |
| 33 | 37 | <i class="fa fa-pencil blue"></i> |
| 34 | 38 | <translate>LABEL.EDITAR</translate> |
| 35 | 39 | </button> |
| 36 | - | |
| 37 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 40 | + </div> | |
| 41 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 42 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSize == 0 || !edit" class="btn btn-clear" type="button" | |
| 38 | 43 | ng-click="removerRequisitoNegocio()"> |
| 39 | 44 | <i class="fa fa-times red"></i> |
| 40 | 45 | <translate>LABEL.REMOVER</translate> |
| 41 | 46 | </button> |
| 47 | + </div> | |
| 42 | 48 | </div><!-- .panel-heading --> |
| 43 | 49 | <table class="table table-bordered table-striped"> |
| 44 | 50 | <thead> |
| ... | ... | @@ -58,7 +64,7 @@ |
| 58 | 64 | </tr> |
| 59 | 65 | <tr ng-repeat="requisitoNegocio in estudoTecnico.etRequisitosNegocio"> |
| 60 | 66 | <td class="text-center"> |
| 61 | - <input type="checkbox" name="requisitoNegocioChecked" ng-model="requisitoNegocio.$checked" ng-click="checkReqNegocio(requisitoNegocio)"/> | |
| 67 | + <input type="checkbox" name="requisitoNegocioChecked" ng-model="requisitoNegocio.$checked" ng-click="checkReqNegocio(requisitoNegocio); atualizarListaSizeSelectReqNegocio()"/> | |
| 62 | 68 | </td> |
| 63 | 69 | <td>{{ $index + 1 }}</td> |
| 64 | 70 | <td title="{{requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome}}">{{ splitText(requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome, 100) }}</td> | ... | ... |
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg3.html
| ... | ... | @@ -15,30 +15,36 @@ |
| 15 | 15 | <div class="row margin-top"> |
| 16 | 16 | <div class="col-sm-12"> |
| 17 | 17 | <div class="panel panel-default"> |
| 18 | - <div class="panel-heading clearfix"> | |
| 19 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 20 | - ng-click="openModalSolucao();"> | |
| 21 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 22 | - <translate>LABEL.ADICIONAR</translate> | |
| 23 | - </button> | |
| 24 | - | |
| 25 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaAlternativa.length == 1" | |
| 26 | - ng-click="abrirSolucao(false);"> | |
| 27 | - <i class="fa fa-search blue"></i> | |
| 28 | - <translate>LABEL.VISUALIZAR</translate> | |
| 29 | - </button> | |
| 30 | - | |
| 31 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaAlternativa.length == 1" class="btn btn-clear" type="button" | |
| 32 | - ng-click="abrirSolucao(true);"> | |
| 33 | - <i class="fa fa-pencil blue"></i> | |
| 34 | - <translate>LABEL.EDITAR</translate> | |
| 35 | - </button> | |
| 36 | - | |
| 37 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 38 | - ng-click="removerSolucao();"> | |
| 39 | - <i class="fa fa-times red"></i> | |
| 40 | - <translate>LABEL.REMOVER</translate> | |
| 41 | - </button> | |
| 18 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 19 | + | |
| 20 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 21 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 22 | + ng-click="openModalSolucao();"> | |
| 23 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 24 | + <translate>LABEL.ADICIONAR</translate> | |
| 25 | + </button> | |
| 26 | + </div> | |
| 27 | + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeSolucao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 28 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeSolucao != 1" | |
| 29 | + ng-click="abrirSolucao(false);"> | |
| 30 | + <i class="fa fa-search blue"></i> | |
| 31 | + <translate>LABEL.VISUALIZAR</translate> | |
| 32 | + </button> | |
| 33 | + </div> | |
| 34 | + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeSolucao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 35 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeSolucao != 1 || !edit" class="btn btn-clear" type="button" | |
| 36 | + ng-click="abrirSolucao(true);"> | |
| 37 | + <i class="fa fa-pencil blue"></i> | |
| 38 | + <translate>LABEL.EDITAR</translate> | |
| 39 | + </button> | |
| 40 | + </div> | |
| 41 | + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 42 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeSolucao == 0 || !edit" class="btn btn-clear" type="button" | |
| 43 | + ng-click="removerSolucao();"> | |
| 44 | + <i class="fa fa-times red"></i> | |
| 45 | + <translate>LABEL.REMOVER</translate> | |
| 46 | + </button> | |
| 47 | + </div> | |
| 42 | 48 | </div><!-- .panel-heading --> |
| 43 | 49 | <table class="table table-bordered table-striped"> |
| 44 | 50 | <thead> |
| ... | ... | @@ -60,7 +66,7 @@ |
| 60 | 66 | </tr> |
| 61 | 67 | <tr ng-repeat="alternativa in estudoTecnico.etLevantamentoAlternativas"> |
| 62 | 68 | <td class="text-center"> |
| 63 | - <input type="checkbox" name="alternativaChecked" ng-model="alternativa.$checked" ng-click="checkAlternativa(alternativa)"/> | |
| 69 | + <input type="checkbox" name="alternativaChecked" ng-model="alternativa.$checked" ng-click="checkAlternativa(alternativa); atualizarListaSizeSelectSolucao()"/> | |
| 64 | 70 | </td> |
| 65 | 71 | <td>{{ $index + 1 }}</td> |
| 66 | 72 | <td title="{{alternativa.descricaoAlternativa}}">{{ splitText(alternativa.descricaoAlternativa, 80) }}</td> |
| ... | ... | @@ -105,31 +111,39 @@ |
| 105 | 111 | <div class="row margin-top"> |
| 106 | 112 | <div class="col-sm-12"> |
| 107 | 113 | <div class="panel panel-default"> |
| 108 | - <div class="panel-heading clearfix"> | |
| 109 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 110 | - ng-click="openModalBensServico();"> | |
| 111 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 112 | - <translate>LABEL.ADICIONAR</translate> | |
| 113 | - </button> | |
| 114 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 115 | + | |
| 116 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 117 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 118 | + ng-click="openModalBensServico();"> | |
| 119 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 120 | + <translate>LABEL.ADICIONAR</translate> | |
| 121 | + </button> | |
| 122 | + </div> | |
| 123 | + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 124 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeServicoSolucao != 1" | |
| 125 | + ng-click="abrirBensServico(false);"> | |
| 126 | + <i class="fa fa-search blue"></i> | |
| 127 | + <translate>LABEL.VISUALIZAR</translate> | |
| 128 | + </button> | |
| 129 | + </div> | |
| 130 | + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 131 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeServicoSolucao != 1 || !edit" class="btn btn-clear" type="button" | |
| 132 | + ng-click="abrirBensServico(true);"> | |
| 133 | + <i class="fa fa-pencil blue"></i> | |
| 134 | + <translate>LABEL.EDITAR</translate> | |
| 135 | + </button> | |
| 136 | + </div> | |
| 137 | + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 138 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeServicoSolucao == 0 || !edit" class="btn btn-clear" type="button" | |
| 139 | + ng-click="removerBensServico();"> | |
| 140 | + <i class="fa fa-times red"></i> | |
| 141 | + <translate>LABEL.REMOVER</translate> | |
| 142 | + </button> | |
| 143 | + </div> | |
| 114 | 144 | |
| 115 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaServicoSolucao.length == 1" | |
| 116 | - ng-click="abrirBensServico(false);"> | |
| 117 | - <i class="fa fa-search blue"></i> | |
| 118 | - <translate>LABEL.VISUALIZAR</translate> | |
| 119 | - </button> | |
| 120 | - | |
| 121 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaServicoSolucao.length == 1" class="btn btn-clear" type="button" | |
| 122 | - ng-click="abrirBensServico(true);"> | |
| 123 | - <i class="fa fa-pencil blue"></i> | |
| 124 | - <translate>LABEL.EDITAR</translate> | |
| 125 | - </button> | |
| 126 | - | |
| 127 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 128 | - ng-click="removerBensServico();"> | |
| 129 | - <i class="fa fa-times red"></i> | |
| 130 | - <translate>LABEL.REMOVER</translate> | |
| 131 | - </button> | |
| 132 | 145 | </div><!-- .panel-heading --> |
| 146 | + | |
| 133 | 147 | <table class="table table-bordered table-striped"> |
| 134 | 148 | <thead> |
| 135 | 149 | <tr> |
| ... | ... | @@ -147,7 +161,7 @@ |
| 147 | 161 | </tr> |
| 148 | 162 | <tr ng-repeat="bemServico in estudoTecnico.etBensServicosSolucoes"> |
| 149 | 163 | <td class="text-center"> |
| 150 | - <input type="checkbox" name="bemServicoChecked" ng-model="bemServico.$checked" ng-click="checkBemServico(bemServico)"/> | |
| 164 | + <input type="checkbox" name="bemServicoChecked" ng-model="bemServico.$checked" ng-click="checkBemServico(bemServico); atualizarListaSizeSelectServicoSolucao()"/> | |
| 151 | 165 | </td> |
| 152 | 166 | <td>{{ $index + 1 }}</td> |
| 153 | 167 | <td title="{{bemServico.nomeBemServicoSolucao}}">{{ splitText(bemServico.nomeBemServicoSolucao, 70) }}</td> | ... | ... |
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg4.html
| ... | ... | @@ -18,30 +18,37 @@ |
| 18 | 18 | <div class="row margin-top"> |
| 19 | 19 | <div class="col-sm-12"> |
| 20 | 20 | <div class="panel panel-default"> |
| 21 | - <div class="panel-heading clearfix"> | |
| 22 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 21 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 22 | + | |
| 23 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 24 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 23 | 25 | ng-click="openModalBeneficioEsperado();"> |
| 24 | 26 | <i class="fa fa-plus-circle yellow-dark"></i> |
| 25 | 27 | <translate>LABEL.ADICIONAR</translate> |
| 26 | 28 | </button> |
| 27 | - | |
| 28 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaBeneficio.length == 1" | |
| 29 | + </div> | |
| 30 | + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 31 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeBeneficio != 1" | |
| 29 | 32 | ng-click="abrirBeneficioEsperado(false)"> |
| 30 | 33 | <i class="fa fa-search blue"></i> |
| 31 | 34 | <translate>LABEL.VISUALIZAR</translate> |
| 32 | 35 | </button> |
| 33 | - | |
| 34 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaBeneficio.length == 1" class="btn btn-clear" type="button" | |
| 36 | + </div> | |
| 37 | + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 38 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeBeneficio != 1 || !edit" class="btn btn-clear" type="button" | |
| 35 | 39 | ng-click="abrirBeneficioEsperado(true)"> |
| 36 | 40 | <i class="fa fa-pencil blue"></i> |
| 37 | 41 | <translate>LABEL.EDITAR</translate> |
| 38 | 42 | </button> |
| 39 | - | |
| 40 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 43 | + </div> | |
| 44 | + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 45 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeBeneficio == 0 || !edit" class="btn btn-clear" type="button" | |
| 41 | 46 | ng-click="removerBeneficioEsperado()"> |
| 42 | 47 | <i class="fa fa-times red"></i> |
| 43 | 48 | <translate>LABEL.REMOVER</translate> |
| 44 | 49 | </button> |
| 50 | + </div> | |
| 51 | + | |
| 45 | 52 | </div><!-- .panel-heading --> |
| 46 | 53 | <table class="table table-bordered table-striped"> |
| 47 | 54 | <thead> |
| ... | ... | @@ -60,7 +67,7 @@ |
| 60 | 67 | </tr> |
| 61 | 68 | <tr ng-repeat="beneficioEsperado in estudoTecnico.etBeneficiosEsperados"> |
| 62 | 69 | <td class="text-center"> |
| 63 | - <input type="checkbox" name="beneficioEsperadoChecked" ng-model="beneficioEsperado.$checked" ng-click="checkBeneficio(beneficioEsperado)"/> | |
| 70 | + <input type="checkbox" name="beneficioEsperadoChecked" ng-model="beneficioEsperado.$checked" ng-click="checkBeneficio(beneficioEsperado); atualizarListaSizeSelectBeneficio()"/> | |
| 64 | 71 | </td> |
| 65 | 72 | <td>{{ $index + 1 }}</td> |
| 66 | 73 | <td title="{{beneficioEsperado.beneficioEsperado}}">{{ splitText(beneficioEsperado.beneficioEsperado, 100)}}</td> | ... | ... |
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg5.html
| ... | ... | @@ -11,31 +11,40 @@ |
| 11 | 11 | <div class="row margin-top"> |
| 12 | 12 | <div class="col-sm-12"> |
| 13 | 13 | <div class="panel panel-default"> |
| 14 | - <div class="panel-heading clearfix"> | |
| 15 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 16 | - ng-click="openModalRecursoMaterial();"> | |
| 17 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 18 | - <translate>LABEL.ADICIONAR</translate> | |
| 19 | - </button> | |
| 14 | + | |
| 15 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 20 | 16 | |
| 21 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRecursoMateriais.length == 1" | |
| 22 | - ng-click="abrirRecursoMaterial(false);" ng-if="!acaoEmMassaRecursosMateriais"> | |
| 23 | - <i class="fa fa-search blue"></i> | |
| 24 | - <translate>LABEL.VISUALIZAR</translate> | |
| 25 | - </button> | |
| 26 | - | |
| 27 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRecursoMateriais.length == 1" class="btn btn-clear" type="button" | |
| 28 | - ng-click="abrirRecursoMaterial(true);" ng-if="!acaoEmMassaRecursosMateriais"> | |
| 29 | - <i class="fa fa-pencil blue"></i> | |
| 30 | - <translate>LABEL.EDITAR</translate> | |
| 31 | - </button> | |
| 32 | - | |
| 33 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 34 | - ng-click="removerRecursoMaterial();"> | |
| 35 | - <i class="fa fa-times red"></i> | |
| 36 | - <translate>LABEL.REMOVER</translate> | |
| 37 | - </button> | |
| 17 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 18 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 19 | + ng-click="openModalRecursoMaterial();"> | |
| 20 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 21 | + <translate>LABEL.ADICIONAR</translate> | |
| 22 | + </button> | |
| 23 | + </div> | |
| 24 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 25 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeRecursoMaterial != 1" | |
| 26 | + ng-click="abrirRecursoMaterial(false);" ng-if="!acaoEmMassaRecursosMateriais"> | |
| 27 | + <i class="fa fa-search blue"></i> | |
| 28 | + <translate>LABEL.VISUALIZAR</translate> | |
| 29 | + </button> | |
| 30 | + </div> | |
| 31 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 32 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeRecursoMaterial != 1 || !edit" class="btn btn-clear" type="button" | |
| 33 | + ng-click="abrirRecursoMaterial(true);" ng-if="!acaoEmMassaRecursosMateriais"> | |
| 34 | + <i class="fa fa-pencil blue"></i> | |
| 35 | + <translate>LABEL.EDITAR</translate> | |
| 36 | + </button> | |
| 37 | + </div> | |
| 38 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 39 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoMaterial == 0 || !edit" class="btn btn-clear" type="button" | |
| 40 | + ng-click="removerRecursoMaterial();"> | |
| 41 | + <i class="fa fa-times red"></i> | |
| 42 | + <translate>LABEL.REMOVER</translate> | |
| 43 | + </button> | |
| 44 | + </div> | |
| 45 | + | |
| 38 | 46 | </div><!-- .panel-heading --> |
| 47 | + | |
| 39 | 48 | <table class="table table-bordered table-striped"> |
| 40 | 49 | <thead> |
| 41 | 50 | <tr> |
| ... | ... | @@ -55,7 +64,7 @@ |
| 55 | 64 | </tr> |
| 56 | 65 | <tr ng-repeat="recursoMaterial in estudoTecnico.etRecursosMateriais"> |
| 57 | 66 | <td class="text-center"> |
| 58 | - <input type="checkbox" name="recursoMaterialChecked" ng-model="recursoMaterial.$checked" ng-click="checkRecursoMaterial(recursoMaterial)"/> | |
| 67 | + <input type="checkbox" name="recursoMaterialChecked" ng-model="recursoMaterial.$checked" ng-click="checkRecursoMaterial(recursoMaterial); atualizarListaSizeSelectRecursoMaterial()"/> | |
| 59 | 68 | </td> |
| 60 | 69 | <td>{{ $index + 1 }}</td> |
| 61 | 70 | <td title="{{recursoMaterial.descricaoRecursoMaterial}}">{{ splitText(recursoMaterial.descricaoRecursoMaterial) }}</td> |
| ... | ... | @@ -81,31 +90,38 @@ |
| 81 | 90 | <div class="row margin-top"> |
| 82 | 91 | <div class="col-sm-12"> |
| 83 | 92 | <div class="panel panel-default"> |
| 84 | - <div class="panel-heading clearfix"> | |
| 85 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 86 | - ng-click="openModalRecursoHumano();"> | |
| 87 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 88 | - <translate>LABEL.ADICIONAR</translate> | |
| 89 | - </button> | |
| 93 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 90 | 94 | |
| 91 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRecursoHumanos.length == 1" | |
| 92 | - ng-click="abrirRecursoHumano(false);" ng-if="!acaoEmMassaRecursosHumanos"> | |
| 93 | - <i class="fa fa-search blue"></i> | |
| 94 | - <translate>LABEL.VISUALIZAR</translate> | |
| 95 | - </button> | |
| 96 | - | |
| 97 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRecursoHumanos.length == 1" class="btn btn-clear" type="button" | |
| 98 | - ng-click="abrirRecursoHumano(true);" ng-if="!acaoEmMassaRecursosHumanos"> | |
| 99 | - <i class="fa fa-pencil blue"></i> | |
| 100 | - <translate>LABEL.EDITAR</translate> | |
| 101 | - </button> | |
| 102 | - | |
| 103 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 104 | - ng-click="removerRecursoHumano();"> | |
| 105 | - <i class="fa fa-times red"></i> | |
| 106 | - <translate>LABEL.REMOVER</translate> | |
| 107 | - </button> | |
| 95 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 96 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 97 | + ng-click="openModalRecursoHumano();"> | |
| 98 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 99 | + <translate>LABEL.ADICIONAR</translate> | |
| 100 | + </button> | |
| 101 | + </div> | |
| 102 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 103 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeRecursoHumano != 1" | |
| 104 | + ng-click="abrirRecursoHumano(false);" ng-if="!acaoEmMassaRecursosHumanos"> | |
| 105 | + <i class="fa fa-search blue"></i> | |
| 106 | + <translate>LABEL.VISUALIZAR</translate> | |
| 107 | + </button> | |
| 108 | + </div> | |
| 109 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 110 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeRecursoHumano != 1 || !edit" class="btn btn-clear" type="button" | |
| 111 | + ng-click="abrirRecursoHumano(true);" ng-if="!acaoEmMassaRecursosHumanos"> | |
| 112 | + <i class="fa fa-pencil blue"></i> | |
| 113 | + <translate>LABEL.EDITAR</translate> | |
| 114 | + </button> | |
| 115 | + </div> | |
| 116 | + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 117 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoHumano == 0 || !edit" class="btn btn-clear" type="button" | |
| 118 | + ng-click="removerRecursoHumano();"> | |
| 119 | + <i class="fa fa-times red"></i> | |
| 120 | + <translate>LABEL.REMOVER</translate> | |
| 121 | + </button> | |
| 122 | + </div> | |
| 108 | 123 | </div><!-- .panel-heading --> |
| 124 | + | |
| 109 | 125 | <table class="table table-bordered table-striped"> |
| 110 | 126 | <thead> |
| 111 | 127 | <tr> |
| ... | ... | @@ -123,7 +139,7 @@ |
| 123 | 139 | </tr> |
| 124 | 140 | <tr ng-repeat="recursoHumano in estudoTecnico.etRecursosHumanos"> |
| 125 | 141 | <td class="text-center"> |
| 126 | - <input type="checkbox" name="recursoHumanoChecked" ng-model="recursoHumano.$checked" ng-click="checkRecursoHumano(recursoHumano)"/> | |
| 142 | + <input type="checkbox" name="recursoHumanoChecked" ng-model="recursoHumano.$checked" ng-click="checkRecursoHumano(recursoHumano); atualizarListaSizeSelectRecursoHumano()"/> | |
| 127 | 143 | </td> |
| 128 | 144 | <td>{{ $index + 1 }}</td> |
| 129 | 145 | <td title="{{recursoHumano.formacao}}">{{ splitText(recursoHumano.formacao) }}</td> | ... | ... |
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg6.html
| ... | ... | @@ -15,31 +15,37 @@ |
| 15 | 15 | <div class="row margin-top"> |
| 16 | 16 | <div class="col-sm-12"> |
| 17 | 17 | <div class="panel panel-default"> |
| 18 | - <div class="panel-heading clearfix"> | |
| 19 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" | |
| 20 | - ng-click="openModalAcaoContingencia();"> | |
| 21 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 22 | - <translate>LABEL.ADICIONAR</translate> | |
| 23 | - </button> | |
| 24 | - | |
| 25 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaAcoesContigencia.length == 1" | |
| 26 | - ng-click="abrirAcaoContingencia(false);"> | |
| 27 | - <i class="fa fa-search blue"></i> | |
| 28 | - <translate>LABEL.VISUALIZAR</translate> | |
| 29 | - </button> | |
| 30 | - | |
| 31 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaAcoesContigencia.length == 1" class="btn btn-clear" type="button" | |
| 32 | - ng-click="abrirAcaoContingencia(true);"> | |
| 33 | - <i class="fa fa-pencil blue"></i> | |
| 34 | - <translate>LABEL.EDITAR</translate> | |
| 35 | - </button> | |
| 36 | - | |
| 37 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | |
| 38 | - ng-click="removerAcaoContingencia();"> | |
| 39 | - <i class="fa fa-times red"></i> | |
| 40 | - <translate>LABEL.REMOVER</translate> | |
| 41 | - </button> | |
| 18 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 19 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 20 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit" | |
| 21 | + ng-click="openModalAcaoContingencia();"> | |
| 22 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 23 | + <translate>LABEL.ADICIONAR</translate> | |
| 24 | + </button> | |
| 25 | + </div> | |
| 26 | + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 27 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeAcaoContigencia != 1" | |
| 28 | + ng-click="abrirAcaoContingencia(false);"> | |
| 29 | + <i class="fa fa-search blue"></i> | |
| 30 | + <translate>LABEL.VISUALIZAR</translate> | |
| 31 | + </button> | |
| 32 | + </div> | |
| 33 | + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 34 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeAcaoContigencia != 1 || !edit" class="btn btn-clear" type="button" | |
| 35 | + ng-click="abrirAcaoContingencia(true);"> | |
| 36 | + <i class="fa fa-pencil blue"></i> | |
| 37 | + <translate>LABEL.EDITAR</translate> | |
| 38 | + </button> | |
| 39 | + </div> | |
| 40 | + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 41 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeAcaoContigencia == 0 || !edit" class="btn btn-clear" type="button" | |
| 42 | + ng-click="removerAcaoContingencia();"> | |
| 43 | + <i class="fa fa-times red"></i> | |
| 44 | + <translate>LABEL.REMOVER</translate> | |
| 45 | + </button> | |
| 46 | + </div> | |
| 42 | 47 | </div><!-- .panel-heading --> |
| 48 | + | |
| 43 | 49 | <table class="table table-bordered table-striped"> |
| 44 | 50 | <thead> |
| 45 | 51 | <tr> |
| ... | ... | @@ -57,7 +63,7 @@ |
| 57 | 63 | </tr> |
| 58 | 64 | <tr ng-repeat="acaoCont in estudoTecnico.etAcoesContingencia"> |
| 59 | 65 | <td class="text-center"> |
| 60 | - <input type="checkbox" name="acaoContChecked" ng-model="acaoCont.$checked" ng-click="checkAcaoContigencia(acaoCont)"/> | |
| 66 | + <input type="checkbox" name="acaoContChecked" ng-model="acaoCont.$checked" ng-click="checkAcaoContigencia(acaoCont); atualizarListaSizeSelectAcaoContigencia()"/> | |
| 61 | 67 | </td> |
| 62 | 68 | <td>{{ $index + 1 }}</td> |
| 63 | 69 | <td title="{{acaoCont.acaoContigencia}}">{{ splitText(acaoCont.acaoContigencia, 185) }}</td> | ... | ... |
cit-contratos-web/src/main/webapp/html/objetivoEstrategico/objetivoEstrategicoEdit.html
| ... | ... | @@ -108,32 +108,41 @@ |
| 108 | 108 | |
| 109 | 109 | <div class="row margin-top"> |
| 110 | 110 | <div class="panel panel-default"> |
| 111 | - <div class="panel-heading clearfix"> | |
| 112 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" | |
| 113 | - ng-show="edit" ng-click="openModalNecessidade()"> | |
| 114 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 115 | - <translate>LABEL.ADICIONAR</translate> </a> | |
| 116 | - </button> | |
| 117 | - | |
| 118 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | |
| 119 | - ng-show="objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="editarNecessidade(false)"> | |
| 120 | - <i class="fa fa-search blue"></i> | |
| 121 | - <translate>LABEL.VISUALIZAR</translate> | |
| 122 | - </button> | |
| 123 | - | |
| 124 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button" | |
| 125 | - ng-show="edit && objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="editarNecessidade(true)"> | |
| 126 | - <i class="fa fa-pencil blue"></i> | |
| 127 | - <translate>LABEL.EDITAR</translate> | |
| 128 | - </button> | |
| 129 | - | |
| 130 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button" | |
| 131 | - ng-show="edit && objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="excluirNecessidadesSelecionados()"> | |
| 132 | - <i class="fa fa-times red"></i> | |
| 133 | - <translate>LABEL.REMOVER</translate> | |
| 134 | - </button> | |
| 111 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 112 | + | |
| 113 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 114 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" | |
| 115 | + ng-disabled="!edit" ng-click="openModalNecessidade()"> | |
| 116 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 117 | + <translate>LABEL.ADICIONAR</translate> </a> | |
| 118 | + </button> | |
| 119 | + </div> | |
| 120 | + | |
| 121 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 122 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | |
| 123 | + ng-disabled="listaSize != 1" ng-click="editarNecessidade(false)"> | |
| 124 | + <i class="fa fa-search blue"></i> | |
| 125 | + <translate>LABEL.VISUALIZAR</translate> | |
| 126 | + </button> | |
| 127 | + </div> | |
| 128 | + | |
| 129 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 130 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button" | |
| 131 | + ng-disabled="listaSize != 1 || !edit" ng-click="editarNecessidade(true)"> | |
| 132 | + <i class="fa fa-pencil blue"></i> | |
| 133 | + <translate>LABEL.EDITAR</translate> | |
| 134 | + </button> | |
| 135 | + </div> | |
| 136 | + | |
| 137 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 138 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button" | |
| 139 | + ng-disabled="listaSize == 0 || !edit" ng-click="excluirNecessidadesSelecionados()"> | |
| 140 | + <i class="fa fa-times red"></i> | |
| 141 | + <translate>LABEL.REMOVER</translate> | |
| 142 | + </button> | |
| 143 | + </div> | |
| 144 | + | |
| 135 | 145 | </div> |
| 136 | - | |
| 137 | 146 | <table class="table table-striped table-bordered table-hover"> |
| 138 | 147 | <thead> |
| 139 | 148 | <tr> |
| ... | ... | @@ -148,7 +157,7 @@ |
| 148 | 157 | <tbody> |
| 149 | 158 | <tr ng-repeat="necessidade in objetivoEstrategico.necessidadesElencadas" ng-show="objetivoEstrategico.necessidadesElencadas.length > 0"> |
| 150 | 159 | <td class="text-center"> |
| 151 | - <input type="checkbox" ng-click="necessidade.$index = $index; checkNecessidade(necessidade)" ng-checked="necessidade.$selected" ng-model="necessidade.$selected" /> | |
| 160 | + <input type="checkbox" ng-click="necessidade.$index = $index; checkNecessidade(necessidade); atualizarListaSizeSelect()" ng-checked="necessidade.$selected" ng-model="necessidade.$selected" /> | |
| 152 | 161 | </td> |
| 153 | 162 | <td class="text-justify" title="{{necessidade.descricao}}"> |
| 154 | 163 | {{ splitText(necessidade.descricao, 280) }} | ... | ... |
cit-contratos-web/src/main/webapp/html/programa/programaEdit.html
| ... | ... | @@ -114,33 +114,33 @@ |
| 114 | 114 | <div class="panel panel-default"> |
| 115 | 115 | <div class="panel-heading clearfix col-sm-12 text-left"> |
| 116 | 116 | |
| 117 | - <div class="col-sm-1" tooltip="{{$translate.instant('LABEL.ADICIONAR')}}"> | |
| 118 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" | |
| 119 | - ng-show="edit" ng-click="openModalProgramaAcao();"> | |
| 117 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 118 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" | |
| 119 | + ng-disabled="!edit" ng-click="openModalProgramaAcao();"> | |
| 120 | 120 | <i class="fa fa-plus-circle yellow-dark"></i> |
| 121 | 121 | <translate>LABEL.ADICIONAR</translate> </a> |
| 122 | 122 | </button> |
| 123 | 123 | </div> |
| 124 | 124 | |
| 125 | - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize == 1 ? $translate.instant('LABEL.VISUALIZAR') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 126 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | |
| 125 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 126 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | |
| 127 | 127 | ng-disabled="listaSize != 1" ng-click="editAcao(false)"> |
| 128 | 128 | <i class="fa fa-search blue"></i> |
| 129 | 129 | <translate>LABEL.VISUALIZAR</translate> |
| 130 | 130 | </button> |
| 131 | 131 | </div> |
| 132 | 132 | |
| 133 | - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize == 1 ? $translate.instant('LABEL.EDITAR') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 134 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button" | |
| 135 | - ng-disabled="listaSize != 1" ng-click="editAcao(true)" > | |
| 133 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 134 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button" | |
| 135 | + ng-disabled="listaSize != 1 || !edit" ng-click="editAcao(true)" > | |
| 136 | 136 | <i class="fa fa-pencil blue"></i> |
| 137 | 137 | <translate>LABEL.EDITAR</translate> |
| 138 | 138 | </button> |
| 139 | 139 | </div> |
| 140 | 140 | |
| 141 | - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : listaSize >= 1 ? $translate.instant('LABEL.REMOVER') : '' }}"> | |
| 142 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button" | |
| 143 | - ng-disabled="listaSize == 0" ng-click="excluirAcoesSelecionados()"> | |
| 141 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 142 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button" | |
| 143 | + ng-disabled="listaSize == 0 || !edit" ng-click="excluirAcoesSelecionados()"> | |
| 144 | 144 | <i class="fa fa-times red"></i> |
| 145 | 145 | <translate>LABEL.REMOVER</translate> |
| 146 | 146 | </button> | ... | ... |
cit-contratos-web/src/main/webapp/html/termoReferencia/termoReferenciaPg2.html
| ... | ... | @@ -88,46 +88,54 @@ |
| 88 | 88 | <div class="row margin-top"> |
| 89 | 89 | <div class="col-sm-12"> |
| 90 | 90 | <div class="panel panel-default"> |
| 91 | - <div class="panel-heading clearfix"> | |
| 92 | - <button | |
| 93 | - title="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 94 | - alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 95 | - class="btn btn-clear" | |
| 96 | - type="button" | |
| 97 | - ng-show="edit" | |
| 98 | - ng-disabled="!termoReferencia.estudoTecnico || termoReferencia.estudoTecnico == null" | |
| 99 | - ng-click="openModalDetalhamentoSolucao();"> | |
| 100 | - <i class="fa fa-plus-circle yellow-dark"/> | |
| 101 | - <translate>LABEL.ADICIONAR</translate> | |
| 102 | - </button> | |
| 103 | - <button | |
| 104 | - title="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 105 | - alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 106 | - class="btn btn-clear" | |
| 107 | - type="button" | |
| 108 | - ng-click="abrirDetalhamentoSolucao(false)"> | |
| 109 | - <i class="fa fa-search blue"/> | |
| 110 | - <translate>LABEL.VISUALIZAR</translate> | |
| 111 | - </button> | |
| 112 | - <button | |
| 113 | - title="{{$translate.instant('LABEL.EDITAR')}}" | |
| 114 | - alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 115 | - class="btn btn-clear" | |
| 116 | - ng-show="edit" | |
| 117 | - ng-click="abrirDetalhamentoSolucao(true)"> | |
| 118 | - <i class="fa fa-pencil blue"/> | |
| 119 | - <translate>LABEL.EDITAR</translate> | |
| 120 | - </button> | |
| 121 | - <button | |
| 122 | - title="{{$translate.instant('LABEL.REMOVER')}}" | |
| 123 | - alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 124 | - class="btn btn-clear" | |
| 125 | - type="button" | |
| 126 | - ng-click="removerDetalhamentoSolucao()" | |
| 127 | - ng-show="edit"> | |
| 128 | - <i class="fa fa-times red"/> | |
| 129 | - <translate>LABEL.REMOVER</translate> | |
| 130 | - </button> | |
| 91 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 92 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 93 | + <button | |
| 94 | + title="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 95 | + alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 96 | + class="btn btn-clear" | |
| 97 | + type="button" | |
| 98 | + ng-disabled="!termoReferencia.estudoTecnico && edit || termoReferencia.estudoTecnico == null && edit || !edit" | |
| 99 | + ng-click="openModalDetalhamentoSolucao();"> | |
| 100 | + <i class="fa fa-plus-circle yellow-dark"/> | |
| 101 | + <translate>LABEL.ADICIONAR</translate> | |
| 102 | + </button> | |
| 103 | + </div> | |
| 104 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 105 | + <button | |
| 106 | + title="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 107 | + alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 108 | + class="btn btn-clear" | |
| 109 | + type="button" | |
| 110 | + ng-disabled="listaSize != 1" | |
| 111 | + ng-click="abrirDetalhamentoSolucao(false)"> | |
| 112 | + <i class="fa fa-search blue"/> | |
| 113 | + <translate>LABEL.VISUALIZAR</translate> | |
| 114 | + </button> | |
| 115 | + </div> | |
| 116 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 117 | + <button | |
| 118 | + title="{{$translate.instant('LABEL.EDITAR')}}" | |
| 119 | + alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 120 | + class="btn btn-clear" | |
| 121 | + ng-disabled="listaSize != 1 || !edit" | |
| 122 | + ng-click="abrirDetalhamentoSolucao(true)"> | |
| 123 | + <i class="fa fa-pencil blue"/> | |
| 124 | + <translate>LABEL.EDITAR</translate> | |
| 125 | + </button> | |
| 126 | + </div> | |
| 127 | + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 128 | + <button | |
| 129 | + title="{{$translate.instant('LABEL.REMOVER')}}" | |
| 130 | + alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 131 | + class="btn btn-clear" | |
| 132 | + type="button" | |
| 133 | + ng-click="removerDetalhamentoSolucao()" | |
| 134 | + ng-disabled="listaSize == 0 || !edit"> | |
| 135 | + <i class="fa fa-times red"/> | |
| 136 | + <translate>LABEL.REMOVER</translate> | |
| 137 | + </button> | |
| 138 | + </div> | |
| 131 | 139 | </div><!-- /.panel-heading --> |
| 132 | 140 | <table class="table table-bordered table-striped"> |
| 133 | 141 | <thead> | ... | ... |
cit-contratos-web/src/main/webapp/html/termoReferencia/termoReferenciaPg5.html
| ... | ... | @@ -21,30 +21,37 @@ |
| 21 | 21 | <div class="row margin-top"> |
| 22 | 22 | <div class="col-sm-12"> |
| 23 | 23 | <div class="panel panel-default"> |
| 24 | - <div class="panel-heading clearfix"> | |
| 25 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 26 | - class="btn btn-clear" type="button" ng-show="edit" ng-click="openModalPenalidade();"> | |
| 27 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 28 | - <translate>LABEL.ADICIONAR</translate> | |
| 29 | - </button> | |
| 30 | - | |
| 31 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 32 | - class="btn btn-clear" type="button" ng-click="abrirPenalidade(false)"> | |
| 33 | - <i class="fa fa-search blue"></i> | |
| 34 | - <translate>LABEL.VISUALIZAR</translate> | |
| 35 | - </button> | |
| 36 | - | |
| 37 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 38 | - class="btn btn-clear" ng-show="edit" ng-click="abrirPenalidade(true)"> | |
| 39 | - <i class="fa fa-pencil blue"></i> | |
| 40 | - <translate>LABEL.EDITAR</translate> | |
| 41 | - </button> | |
| 42 | - | |
| 43 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 44 | - class="btn btn-clear" type="button" ng-click="removerPenalidade()" ng-show="edit"> | |
| 45 | - <i class="fa fa-times red"></i> | |
| 46 | - <translate>LABEL.REMOVER</translate> | |
| 47 | - </button> | |
| 24 | + <div class="panel-heading clearfix col-sm-12 text-left"> | |
| 25 | + | |
| 26 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 27 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 28 | + class="btn btn-clear" type="button" ng-disabled="!edit" ng-click="openModalPenalidade();"> | |
| 29 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 30 | + <translate>LABEL.ADICIONAR</translate> | |
| 31 | + </button> | |
| 32 | + </div> | |
| 33 | + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizePenalidade > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 34 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 35 | + ng-disabled="listaSizePenalidade != 1" | |
| 36 | + class="btn btn-clear" type="button" ng-click="abrirPenalidade(false)"> | |
| 37 | + <i class="fa fa-search blue"></i> | |
| 38 | + <translate>LABEL.VISUALIZAR</translate> | |
| 39 | + </button> | |
| 40 | + </div> | |
| 41 | + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizePenalidade > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 42 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 43 | + class="btn btn-clear" ng-disabled="listaSizePenalidade != 1 || !edit" ng-click="abrirPenalidade(true)"> | |
| 44 | + <i class="fa fa-pencil blue"></i> | |
| 45 | + <translate>LABEL.EDITAR</translate> | |
| 46 | + </button> | |
| 47 | + </div> | |
| 48 | + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 49 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 50 | + class="btn btn-clear" type="button" ng-click="removerPenalidade()" ng-disabled="listaSizePenalidade == 0 || !edit"> | |
| 51 | + <i class="fa fa-times red"></i> | |
| 52 | + <translate>LABEL.REMOVER</translate> | |
| 53 | + </button> | |
| 54 | + </div> | |
| 48 | 55 | |
| 49 | 56 | </div><!-- .panel-heading --> |
| 50 | 57 | <table class="table table-bordered table-striped"> |
| ... | ... | @@ -91,30 +98,40 @@ |
| 91 | 98 | <div class="row margin-top"> |
| 92 | 99 | <div class="col-sm-12"> |
| 93 | 100 | <div class="panel panel-default"> |
| 94 | - <div class="panel-heading clearfix"> | |
| 95 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 96 | - class="btn btn-clear" type="button" ng-show="edit" ng-click="openModalSancao();"> | |
| 97 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
| 98 | - <translate>LABEL.ADICIONAR</translate> | |
| 99 | - </button> | |
| 101 | + <div class="panel-heading clearfix col-sm-12 text-left col-sm-12 text-left"> | |
| 102 | + | |
| 103 | + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 104 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" | |
| 105 | + class="btn btn-clear" type="button" ng-disabled="!edit" ng-click="openModalSancao();"> | |
| 106 | + <i class="fa fa-plus-circle yellow-dark"></i> | |
| 107 | + <translate>LABEL.ADICIONAR</translate> | |
| 108 | + </button> | |
| 109 | + </div> | |
| 110 | + | |
| 111 | + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeSancao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}"> | |
| 112 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 113 | + class="btn btn-clear" ng-disabled="listaSizeSancao != 1" type="button" ng-click="abrirSancao(false)"> | |
| 114 | + <i class="fa fa-search blue"></i> | |
| 115 | + <translate>LABEL.VISUALIZAR</translate> | |
| 116 | + </button> | |
| 117 | + </div> | |
| 100 | 118 | |
| 101 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" | |
| 102 | - class="btn btn-clear" type="button" ng-click="abrirSancao(false)"> | |
| 103 | - <i class="fa fa-search blue"></i> | |
| 104 | - <translate>LABEL.VISUALIZAR</translate> | |
| 105 | - </button> | |
| 119 | + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeSancao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 120 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 121 | + class="btn btn-clear" ng-disabled="listaSizeSancao != 1 || !edit" ng-click="abrirSancao(true)"> | |
| 122 | + <i class="fa fa-pencil blue"></i> | |
| 123 | + <translate>LABEL.EDITAR</translate> | |
| 124 | + </button> | |
| 125 | + </div> | |
| 106 | 126 | |
| 107 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" | |
| 108 | - class="btn btn-clear" ng-show="edit" ng-click="abrirSancao(true)"> | |
| 109 | - <i class="fa fa-pencil blue"></i> | |
| 110 | - <translate>LABEL.EDITAR</translate> | |
| 111 | - </button> | |
| 127 | + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}"> | |
| 128 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 129 | + class="btn btn-clear" type="button" ng-click="removerSancao()" ng-disabled="listaSizeSancao == 0 || !edit"> | |
| 130 | + <i class="fa fa-times red"></i> | |
| 131 | + <translate>LABEL.REMOVER</translate> | |
| 132 | + </button> | |
| 133 | + </div> | |
| 112 | 134 | |
| 113 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" | |
| 114 | - class="btn btn-clear" type="button" ng-click="removerSancao()" ng-show="edit"> | |
| 115 | - <i class="fa fa-times red"></i> | |
| 116 | - <translate>LABEL.REMOVER</translate> | |
| 117 | - </button> | |
| 118 | 135 | </div><!-- .panel-heading --> |
| 119 | 136 | <table class="table table-bordered table-striped"> |
| 120 | 137 | <thead> | ... | ... |