estudoTecnicoPg6.html
4.85 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
77
78
79
<ng-form name="estrategiaContratualForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<label ng-class="{'has-error' : estrategiaContratualForm.$submitted && (!estudoTecnico.etAcoesContingencia || estudoTecnico.etAcoesContingencia.length < 1)}">
<translate>LABEL.ESTRATEGIA_CONTINUIDADE_CONTRATUAL</translate>
<span class='red'>*</span>
<i ng-show="estrategiaContratualForm.$submitted && (!estudoTecnico.etAcoesContingencia || estudoTecnico.etAcoesContingencia.length < 1)" class='fa fa-warning red'
tooltip="{{$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i>
</label>
</legend>
<script type="text/ng-template" id="modal-acao-contingencia.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_acao_contingencia.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="openModalAcaoContingencia();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 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-disabled="listaSizeAcaoContigencia != 1"
ng-click="abrirAcaoContingencia(false);">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 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="listaSizeAcaoContigencia != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirAcaoContingencia(true);">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeAcaoContigencia == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerAcaoContingencia();">
<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 class="text-center" width="20px">
<input type="checkbox" ng-model="selectedAllAcoes" ng-click="checkAllAcoes(selectedAllAcoes);" ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th style="width: 67%;" class="text-center"><translate>LABEL.ACAO_CONTINGENCIA</translate></th>
<th style="width: 28%;" class="text-center"><translate>LABEL.RESPONSAVEL</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etAcoesContingencia && estudoTecnico.etAcoesContingencia.length != 0)">
<td colspan="6" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="acaoCont in estudoTecnico.etAcoesContingencia">
<td class="text-center">
<input type="checkbox" name="acaoContChecked" ng-model="acaoCont.$checked" ng-click="checkAcaoContigencia(acaoCont); atualizarListaSizeSelectAcaoContigencia()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{acaoCont.acaoContigencia}}">{{ splitText(acaoCont.acaoContigencia, 185) }}</td>
<td title="{{acaoCont.responsavel.pessoa.nome}}">{{ splitText(acaoCont.responsavel.nome, 30) }}</td>
</tr>
</tbody>
</table>
</div>
</div><!-- .col -->
</div>
</fieldset>
</div> <!-- /.page-content -->
</ng-form>