Guest User

Untitled

a guest
Mar 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. <p:dialog header="Editar IP Cadastrado" id="dialog" styleClass="borderless" widgetVar="dlgEditar" modal="true" showEffect="fade" hideEffect="fade" resizable="false" draggable="false" closable="false">
  2.  
  3. <p:growl id="growlInformacao" sticky="true" />
  4.  
  5. <p:panelGrid columns="2" rendered="#{not empty cadastrosIPsBean.selectedCadastro}" style="font-size: 14px">
  6.  
  7. <p:outputLabel value="Equipamento:"/>
  8. <p:selectOneMenu id="selecionadorEquipamento" value="#{cadastrosIPsBean.selectedCadastro.equipamento}" style="width: 92%">
  9. <f:selectItems value="#{cadastrosIPsBean.listaEquipamentosFormatada}"/>
  10. </p:selectOneMenu>
  11.  
  12. <br/>
  13. <br/>
  14.  
  15. <f:facet name="footer">
  16.  
  17. <p:commandButton value="Save" id="btConfirmar" oncomplete="PF('dlgConfirmar').show()" update=":form:tbl" style="width: 125px">
  18. <p:dialog appendTo="@(body)" header="Confirmar alterações" id="confirmar" widgetVar="dlgConfirmar" modal="true" showEffect="fade" hideEffect="fade" resizable="false" draggable="false">
  19. <br/>
  20. <p:outputLabel value="Tem certeza de que deseja salvar as alterações?" style="font-size: 14px"/>
  21. <br/>
  22. <br/>
  23. <f:facet name="footer">
  24. <p:commandButton id="confirmarSim" value="Yes" process="tbl" oncomplete="PF('dlgConfirmar').hide(); PF('dlgEditar').hide()" actionListener="#{cadastrosIPsBean.salvarAlteracoes()}" update=":form:growlInformacao" style="font-size: 14px; width: 100px"/>
  25. <p:spacer width="20"/>
  26. <p:commandButton id="confirmarCancelar" value="Cancel" process="tbl" oncomplete="PF('dlgConfirmar').hide()" actionListener="#{cadastrosIPsBean.atualizaListasUltimosCadastros()}" update=":form:tbl" style="font-size: 14px; width: 100px"/>
  27. </f:facet>
  28. </p:dialog>
  29. </p:commandButton>
  30.  
  31. <p:spacer width="20"/>
  32.  
  33. <p:commandButton value="Close" id="btFechar" oncomplete="PF('dlgDescartar').show()" action="#{cadastrosIPsBean.atualizaListasUltimosCadastros()}" update=":form:tbl" style="width: 125px">
  34. <p:dialog appendTo="@(body)" header="Descartar alterações" id="descartar" widgetVar="dlgDescartar" modal="true" showEffect="fade" hideEffect="fade" resizable="false" draggable="false">
  35. <br/>
  36. <p:outputLabel value="Tem certeza de que deseja descartar as alterações?" style="font-size: 14px"/>
  37. <br/>
  38. <br/>
  39. <f:facet name="footer">
  40. <p:commandButton id="fecharSim" value="Sim" process="tbl" oncomplete="PF('dlgDescartar').hide(); PF('dlgEditar').hide()" action="#{cadastrosIPsBean.atualizaListasUltimosCadastros()}" update=":form:tbl" style="font-size: 14px; width: 100px"/>
  41. <p:spacer width="20"/>
  42. <p:commandButton id="fecharCancelar" value="Cancelar" process="tbl" oncomplete="PF('dlgDescartar').hide()" action="#{cadastrosIPsBean.atualizaListasUltimosCadastros()}" update=":form:tbl" style="font-size: 14px; width: 100px"/>
  43. </f:facet>
  44. </p:dialog>
  45. </p:commandButton>
  46.  
  47. </f:facet>
  48.  
  49. </p:panelGrid>
  50.  
  51. </p:dialog>
Add Comment
Please, Sign In to add comment