Commit f472faf3d14266fad0ccd0f7d18c8002efd2aa54
1 parent
2b6c5877
Exists in
master
redmine #4738 Adicionado o 'Quandidade Padrao'.
Showing
1 changed file
with
32 additions
and
35 deletions
Show diff stats
cit-tabelas-corp-web/src/main/webapp/html/unidadeMedida/unidadeMedidaEdit.html
... | ... | @@ -2,26 +2,26 @@ |
2 | 2 | <div class="bar-buttons-action fixed"> |
3 | 3 | <div class="row"> |
4 | 4 | <div class="col-sm-8 text-left"> |
5 | - | |
5 | + | |
6 | 6 | <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> |
7 | 7 | <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> |
8 | 8 | </button> |
9 | - | |
9 | + | |
10 | 10 | <button class="btn btn-clear" ng-click="limparUnidadeMedida()" ng-show="unidadeMedida.id === undefined"> |
11 | 11 | <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> |
12 | 12 | </button> |
13 | - | |
13 | + | |
14 | 14 | <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> |
15 | 15 | <i class="fa fa-pencil blue"></i> |
16 | 16 | <translate>LABEL.EDITAR</translate> |
17 | 17 | </button> |
18 | - | |
18 | + | |
19 | 19 | <button class="btn btn-clear" ng-click="remove(unidadeMedida);" ng-show="unidadeMedida.id !== undefined"> |
20 | 20 | <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> |
21 | 21 | </button> |
22 | - | |
22 | + | |
23 | 23 | <bloquear-desbloquear ng-model="unidadeMedida" ng-repository="UnidadeMedidaRepository" ng-edit="edit" form="unidadeMedidaForm"></bloquear-desbloquear> |
24 | - | |
24 | + | |
25 | 25 | <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> |
26 | 26 | <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> |
27 | 27 | </button> |
... | ... | @@ -29,17 +29,17 @@ |
29 | 29 | </div><!-- .col --> |
30 | 30 | |
31 | 31 | <div class="col-sm-4 text-right"> |
32 | - | |
32 | + | |
33 | 33 | <favorito/> |
34 | - | |
34 | + | |
35 | 35 | <help-button workspace="workspace" /> |
36 | - | |
36 | + | |
37 | 37 | </div><!-- .col --> |
38 | 38 | </div><!-- .row --> |
39 | 39 | </div><!-- .bar-buttons-action --> |
40 | - | |
40 | + | |
41 | 41 | <breadcrumb ng-workspace="workspace"></breadcrumb> |
42 | - | |
42 | + | |
43 | 43 | <form name="unidadeMedidaForm"> |
44 | 44 | <p> |
45 | 45 | <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> |
... | ... | @@ -48,44 +48,41 @@ |
48 | 48 | <fieldset> |
49 | 49 | |
50 | 50 | <legend><translate>CORPORATIVO.LABEL.DADOS_UNIDADE_MEDIDA</translate></legend> |
51 | - | |
51 | + | |
52 | 52 | <div class="row"> |
53 | - | |
53 | + | |
54 | 54 | <div class="col-md-6"> |
55 | - | |
55 | + | |
56 | 56 | <label-input-number ng-id="unidadeMedida.codigo" ng-label="LABEL.CODIGO" ng-obrigatorio="true" ng-disabled="!edit" form="unidadeMedidaForm" ng-model="unidadeMedida.codigo" ng-custom-maxlength="5"/> |
57 | - | |
57 | + | |
58 | 58 | </div> |
59 | - | |
59 | + | |
60 | 60 | <div class="col-md-6"> |
61 | - | |
61 | + | |
62 | 62 | <label-input ng-id="unidadeMedida.descricao" ng-label="LABEL.DESCRICAO" ng-obrigatorio="true" ng-disabled="!edit" form="unidadeMedidaForm" ng-model="unidadeMedida.descricao" ng-custom-maxlength="100" /> |
63 | - | |
63 | + | |
64 | 64 | </div> |
65 | - </div> | |
66 | - <div class="row"> | |
65 | + </div> | |
66 | + <div class="row"> | |
67 | 67 | <div class="col-md-4"> |
68 | - | |
69 | - <label-select ng-id="unidadeMedida.tipoNumerico" ng-label="CORPORATIVO.LABEL.TIPO_NUMERICO" ng-model="unidadeMedida.tipoNumerico" form="unidadeMedidaForm" ng-obrigatorio="true" ng-disabled="!edit" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" ng-list="tipoNumericoList" /> | |
70 | - | |
68 | + | |
69 | + <label-select ng-id="unidadeMedida.tipoNumerico" ng-custom-change="alternaTipoNumerico()" ng-label="CORPORATIVO.LABEL.TIPO_NUMERICO" ng-model="unidadeMedida.tipoNumerico" form="unidadeMedidaForm" ng-obrigatorio="true" ng-disabled="!edit" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" ng-list="tipoNumericoList" /> | |
70 | + | |
71 | 71 | </div> |
72 | - | |
72 | + | |
73 | 73 | <div class="col-md-4"> |
74 | - | |
74 | + | |
75 | 75 | <label-input ng-id="unidadeMedida.sigla" ng-label="LABEL.SIGLA" ng-model="unidadeMedida.sigla" form="unidadeMedidaForm" ng-obrigatorio="true" ng-custom-maxlength="3" ng-type="text" ng-disabled="!edit" /> |
76 | - | |
77 | 76 | </div> |
78 | - | |
79 | - <div class="col-md-4"> | |
80 | - | |
81 | - <i tooltip="{{$translate.instant('MSG.ALTERACAO_QUANTIDADE_PADRAO')}}"> | |
82 | - <label-input-number ng-id="unidadeMedida.quantidadePadrao" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-model="unidadeMedida.quantidadePadrao" form="unidadeMedidaForm" ng-obrigatorio="false" ng-custom-maxlength="3" ng-type="text" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/> | |
83 | - </i> | |
77 | + | |
78 | + <div class="col-md-4" ng-show="showInteiro"> | |
79 | + <label-input-number ng-id="unidadeMedida.quantidadeInteiro" ng-model="unidadeMedida.quantidadeInteiro" ng-custom-maxlength="4" ng-type="text" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-obrigatorio="showInteiro" form="unidadeMedidaForm" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/> | |
80 | + </div> | |
81 | + <div class="col-md-4" ng-show="showDecimal"> | |
82 | + <label-input-decimal ng-precisao="decimal" ng-custom-maxlength="11" ng-evento-blur="aplicarValidacaoDecimal" ng-id="unidadeMedida.quantidadeDecimal" ng-model="unidadeMedida.quantidadeDecimal" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-obrigatorio="showDecimal" form="unidadeMedidaForm" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/> | |
84 | 83 | </div> |
85 | - | |
86 | 84 | </div> |
87 | - | |
88 | - </fieldset> | |
85 | + </fieldset> | |
89 | 86 | </form> |
90 | 87 | </div><!-- .page-content --> |
91 | 88 | ... | ... |