contratoPg5.html
4.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<ng-form name="informacoesEnvolvidosContratoForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<label ng-class="{'has-error' : informacoesEnvolvidosContratoForm.$submitted && (!contrato.ctrtEnvolvidos || contrato.ctrtEnvolvidos.length < 3)}">
<translate>LABEL.INFORMACOES_ENVOLVIDOS</translate>
<span class='red' ng-show="edit">*</span>
<i ng-show="informacoesEnvolvidosContratoForm.$submitted && (!contrato.ctrtEnvolvidos || contrato.ctrtEnvolvidos.length < 3)" class='fa fa-warning red'
tooltip="{{$translate.instant('VALIDACAO.CONTRATO_EXIGE_MINIMO_TRES_ENVOLVIDOS')}}" tooltip-placement='top'/>
</label>
</legend>
<script type="text/ng-template" id="dialog_envolvido.html">
<div ng-include src="'/cit-contratos-web/html/contrato/dialog_envolvido.html'" />
</script>
<div class="row margin-top">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading clearfix col-sm-12 text-left">
<div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
<button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
ng-click="openModalContratoEnvolvido();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeEnvolvido == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeEnvolvido > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
<button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button"
ng-click="visualizarEditarContratoEnvolvido(false);" ng-disabled="listaSizeEnvolvido != 1">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeEnvolvido == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeEnvolvido > 1 && edit ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
<button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeEnvolvido != 1 || !edit " class="btn btn-clear" type="button"
ng-click="visualizarEditarContratoEnvolvido(true);" >
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeEnvolvido == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button"
ng-click="removerContratoEnvolvido();" ng-disabled="listaSizeEnvolvido == 0 || !edit || contrato.ctrtEnvolvidos.length <= 3">
<i class="fa fa-times red"></i>
<translate>LABEL.REMOVER</translate>
</button>
</div>
</div><!-- .panel-heading -->
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 20%;" class="text-center"><input type="checkbox" ng-model="selectedAllCtrtEnvolvidos" ng-checked="selectedAllCtrtEnvolvidos" ng-click="selectAllCtrtEnvolvidos();" /></th>
<th style="width: 40%;" class="text-center"><translate>LABEL.NOME_ENVOLVIDO</translate></th>
<th style="width: 40%;" class="text-center"><translate>LABEL.PAPEL</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(contrato.ctrtEnvolvidos && contrato.ctrtEnvolvidos.length != 0)">
<td colspan="3" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="contratoEnvolvido in contrato.ctrtEnvolvidos">
<td class="text-center"><input type="checkbox" ng-model="contratoEnvolvido.$checked" ng-checked="contratoEnvolvido.$checked" ng-click="checkContratoEnvolvido(); atualizarListaSizeSelectEnvolvido()"/></td>
<td>{{ contratoEnvolvido.envolvido.pessoa.nome }}</td>
<td>{{ contratoEnvolvido.dominioPapelEnvolvidoContrato.descricao }}</td>
</tr>
</tbody>
</table>
</div><!-- .painel -->
</div><!-- .col -->
</div> <!-- .row -->
</fieldset><!-- .fieldset -->
</div><!-- /.page-content -->
</ng-form>