Commit e51520bbf02f6afec2b611418076927b1a37cc51
1 parent
e3c58f61
Exists in
master
Redmine #4783 Concluindo segunda página do wizard
Showing
1 changed file
with
81 additions
and
1 deletions
Show diff stats
cit-almoxarifado-web/src/main/webapp/html/entradaAlmoxarifado/entradaAlmoxarifadoPg2.html
@@ -2,9 +2,89 @@ | @@ -2,9 +2,89 @@ | ||
2 | <div class="page-content"> | 2 | <div class="page-content"> |
3 | <fieldset> | 3 | <fieldset> |
4 | <legend> | 4 | <legend> |
5 | - <translate>LABEL.MATERIAIS</translate> | 5 | + <label ng-class="{'has-error' : materiaisForm.$submitted && entradaAlmoxarifado.entradasIten && entradaAlmoxarifado.entradasIten.length < 1}"> |
6 | + <translate>ALMOXARIFADO.LABEL.MATERIAIS</translate> | ||
7 | + <span class='red' ng-if=" edit">*</span> | ||
8 | + <i ng-show="materiaisForm.$submitted && entradaAlmoxarifado.entradasIten && entradaAlmoxarifado.entradasIten.length < 1" class='fa fa-warning red' | ||
9 | + tooltip="{{$translate.instant('ALMOXARIFADO.LABEL.MATERIAIS') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i> | ||
10 | + </label> | ||
6 | </legend> | 11 | </legend> |
12 | + <script type="text/ng-template" id="modal-materiais-consumo.html"> | ||
13 | + <div ng-include src="'/cit-almoxarifado-web/html/entradaAlmoxarifado/dialog_add_materiais.html'" /> | ||
14 | + </script> | ||
7 | 15 | ||
16 | + <div class="row"> | ||
17 | + <div class="col-md-3"> | ||
18 | + <label-input-money ng-id="entradaAlmoxarifado.valorTotalNota" ng-label="ALMOXARIFADO.LABEL.VALOR_TOTAL_NOTA" ng-model="entradaAlmoxarifado.valorTotalNota" | ||
19 | + form="materiaisForm" ng-obrigatorio="edit" ng-precision="2" ng-disabled="!edit" ng-custom-maxlength="19" /> | ||
20 | + </div> | ||
21 | + | ||
22 | + <div class="col-md-3"> | ||
23 | + <label-input-money ng-id="valorTotalMateriais" ng-label="LABEL.VALOR_TOTAL_INCLUIDO" ng-model="valorTotalMateriais" form="materiaisForm" ng-precision="2" | ||
24 | + ng-disabled="true" ng-custom-maxlength="19"/> | ||
25 | + </div> | ||
26 | + | ||
27 | + </div> | ||
28 | + | ||
29 | + <div class="row margin-top"> | ||
30 | + <div class="col-sm-12"> | ||
31 | + <div class="panel panel-default"> | ||
32 | + <div class="panel-heading clearfix"> | ||
33 | + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" ng-show="edit" class="btn btn-clear" type="button" | ||
34 | + ng-click="inicializarModalMateriais();"> | ||
35 | + <i class="fa fa-plus-circle yellow-dark"></i> | ||
36 | + <translate>LABEL.ADICIONAR</translate> | ||
37 | + </button> | ||
38 | + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | ||
39 | + ng-click="abrirEntradaItem(false)" > | ||
40 | + <i class="fa fa-search blue"></i> | ||
41 | + <translate>LABEL.VISUALIZAR</translate> | ||
42 | + </button> | ||
43 | + | ||
44 | + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit" class="btn btn-clear" type="button" | ||
45 | + ng-click="abrirEntradaItem(true)" > | ||
46 | + <i class="fa fa-pencil blue"></i> | ||
47 | + <translate>LABEL.EDITAR</translate> | ||
48 | + </button> | ||
49 | + | ||
50 | + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" | ||
51 | + ng-click="removerEntradaItem()"> | ||
52 | + <i class="fa fa-times red"></i> | ||
53 | + <translate>LABEL.REMOVER</translate> | ||
54 | + </button> | ||
55 | + | ||
56 | + </div><!-- .panel-heading --> | ||
57 | + <table class="table table-bordered table-striped"> | ||
58 | + <thead> | ||
59 | + <tr> | ||
60 | + <th width="20px" class="text-center"></th> | ||
61 | + <th width="10%" class="text-center"><translate>LABEL.ITEM</translate></th> | ||
62 | + <th style="width: 25%;" class="text-center"><translate>LABEL.DESCRICAO_MATERIAL</translate></th> | ||
63 | + <th style="width: 15%;" class="text-center"><translate>LABEL.UNIDADE_MEDIDA</translate></th> | ||
64 | + <th style="width: 15%;" class="text-center"><translate>ALMOXARIFADO.LABEL.UNIDADES</translate></th> | ||
65 | + <th style="width: 15%;" class="text-center"><translate>LABEL.VALOR_UNITARIO</translate></th> | ||
66 | + <th style="width: 15%;" class="text-center"><translate>ALMOXARIFADO.LABEL.SUBTOTAL</translate></th> | ||
67 | + </tr> | ||
68 | + </thead> | ||
69 | + <tbody> | ||
70 | + <tr ng-hide="entradaAlmoxarifado.entradasIten.length != 0"> | ||
71 | + <td colspan="7" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td> | ||
72 | + </tr> | ||
73 | + <tr ng-repeat="entradaItemLista in entradaAlmoxarifado.entradasIten"> | ||
74 | + <td class="text-center"><input type="radio" name="entradaItemChecked" ng-value="entradaItemLista" ng-model="$parent.entradaItemSelecionado"/></td> | ||
75 | + <td class="text-center">{{$index +1}}</td> | ||
76 | + <td class="text-center">{{ entradaItemLista.material.descricao }}</td> | ||
77 | + <td class="text-center">{{ entradaItemLista.material.unidadeArmazenamento.descricao }}</td> | ||
78 | + <td class="text-center">{{ entradaItemLista.quantidade }}</td> | ||
79 | + <td class="text-center">{{ entradaItemLista.valorUnitario | currency:"R$":2}}</td> | ||
80 | + <td class="text-center">{{ entradaItemLista.valorTotal | currency}}</td> | ||
81 | + </tr> | ||
82 | + </tbody> | ||
83 | + </table> | ||
84 | + </div> | ||
85 | + </div> | ||
86 | + <!-- .col --> | ||
87 | + </div> | ||
8 | 88 | ||
9 | 89 | ||
10 | </fieldset> | 90 | </fieldset> |