Commit e74206452fc7069edc31b8768aca382a52e03c66
1 parent
b4e5ff3a
Exists in
master
Ajustes no parametro de calculo
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/e-selo@9857 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
2 changed files
with
13 additions
and
7 deletions
Show diff stats
Desenvolvimento/Codificacao/e-Selo/WebContent/WEB-INF/jsp/parametroCalculo/form.jsp
... | ... | @@ -59,12 +59,18 @@ |
59 | 59 | <input id="inputNomeUsuario" name="parametroCalculo.usuario.nome" type="text" class="form-control" value="${parametroCalculo.usuario.nome}" disabled /> |
60 | 60 | </div> |
61 | 61 | </div> |
62 | - | |
63 | - <c:if test="${parametroCalculo.tsFim == null}"> | |
64 | - <div class="form-group"> | |
65 | - <a href="<c:url value="/recomendacao/novo/${parametroCalculo.id}" />" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span> Incluir Recomendação</a> | |
66 | - </div> | |
67 | - </c:if> | |
62 | + | |
63 | + <div class="form-group"> | |
64 | + <div class="col-lg-10 col-lg-offset-2"> | |
65 | + <c:if test="${parametroCalculo.tsFim == null}"> | |
66 | + <a href="<c:url value="/recomendacao/novo/${parametroCalculo.id}" />" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Incluir Recomendação</a> | |
67 | + </c:if> | |
68 | + <button class="btn btn-default btn-cancel">Cancelar</button> | |
69 | + <c:if test="${parametroCalculo.tsFim == null}"> | |
70 | + <button type="submit" class="btn btn-primary">Salvar</button> | |
71 | + </c:if> | |
72 | + </div> | |
73 | + </div> | |
68 | 74 | |
69 | 75 | <div class="form-group"> |
70 | 76 | <table id="diretrizTable" class="table table-striped table-bordered table-hover table-condensed"> | ... | ... |
Desenvolvimento/Codificacao/e-Selo/src/main/java/br/com/eselo/controller/ParametroCalculoController.java
... | ... | @@ -187,7 +187,7 @@ public class ParametroCalculoController { |
187 | 187 | dao.saveOrUpdate(parametroCalculoCadastrado); |
188 | 188 | |
189 | 189 | result.include("mensagem", Messages.getString("parametro_calculo.atualizado")); |
190 | - result.redirectTo(ParametroCalculoController.class).index(1); | |
190 | + result.redirectTo(ParametroCalculoController.class).form(parametroCalculo.getId()); | |
191 | 191 | } |
192 | 192 | |
193 | 193 | @Path("/parametrosCalculo/delete/{id}") | ... | ... |