|
|
@ -19,7 +19,7 @@ |
|
|
|
|
|
|
|
<f:metadata> |
|
|
|
<f:viewParam name="rol" value="#{demoBeanLogin.rol}" /> |
|
|
|
<f:event type="preRenderView" listener="#{demoBeanLogin.verificarAcceso('admin')}" /> |
|
|
|
<f:event type="preRenderView" listener="#{demoBeanLogin.verificarAcceso('admin','usuariosLista')}" /> |
|
|
|
</f:metadata> |
|
|
|
<div> |
|
|
|
<h:form> |
|
|
@ -36,15 +36,23 @@ |
|
|
|
icon="pi pi-globe" |
|
|
|
oncomplete="PF('pais').show()" |
|
|
|
update="paisDialog" |
|
|
|
actionListener="#{demoBeanPaises.prepararNuevo()}"/> |
|
|
|
actionListener="#{demoBeanPaises.prepararNuevo()}" |
|
|
|
rendered="#{demoBeanLogin.agregaciones == true}"/> |
|
|
|
|
|
|
|
<p:menuitem value="Estados" |
|
|
|
icon="pi pi-map" |
|
|
|
oncomplete="PF('estado').show()" |
|
|
|
update="estadosDialog" |
|
|
|
actionListener="#{demoBeanEstados.prepararNuevo()}"/> |
|
|
|
|
|
|
|
<p:menuitem value="Tipos" icon="pi pi-tags"/> |
|
|
|
actionListener="#{demoBeanEstados.prepararNuevo()}" |
|
|
|
rendered="#{demoBeanLogin.agregaciones == true}"/> |
|
|
|
|
|
|
|
<p:menuitem value="Tipos" |
|
|
|
icon="pi pi-tags" |
|
|
|
oncomplete="PF('tipo').show()" |
|
|
|
update="tip" |
|
|
|
actionListener="#{demoBeanTipo.prepararNuevo()}" |
|
|
|
rendered="#{demoBeanLogin.agregaciones == true}" /> |
|
|
|
|
|
|
|
<!-- <p:divider />--> |
|
|
|
</p:submenu> |
|
|
|
</p:menubar> |
|
|
@ -54,14 +62,21 @@ |
|
|
|
<ui:include src="roles.xhtml"/> |
|
|
|
</p:dialog> |
|
|
|
|
|
|
|
<p:dialog id="paisDialog" widgetVar="pais" responsive="true" showEffect="fade" modal="true" resizable="false"> |
|
|
|
<p:dialog id="paisDialog" widgetVar="pais" responsive="true" |
|
|
|
showEffect="fade" modal="true" resizable="false" style="height: auto"> |
|
|
|
<ui:include src="paises.xhtml"/> |
|
|
|
</p:dialog> |
|
|
|
|
|
|
|
<p:dialog id="estadosDialog" widgetVar="estado" responsive="true" showEffect="fade" modal="true" resizable="false"> |
|
|
|
<p:dialog id="estadosDialog" widgetVar="estado" responsive="true" |
|
|
|
showEffect="fade" modal="true" resizable="false" style="height: auto"> |
|
|
|
<ui:include src="estados.xhtml"/> |
|
|
|
</p:dialog> |
|
|
|
|
|
|
|
<p:dialog id="tip" widgetVar="tipo" responsive="true" |
|
|
|
showEffect="fade" modal="true" resizable="false" style="height: auto"> |
|
|
|
<ui:include src="tipos.xhtml"/> |
|
|
|
</p:dialog> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
@ -81,7 +96,9 @@ |
|
|
|
<div style="display: flex; align-items: center;"> |
|
|
|
|
|
|
|
<div style="flex: 1;"> |
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.prepararNuevo()}" oncomplete="PF('user').show()" update=":dialogForm" value="Nuevo" icon="pi pi-plus" style="margin-top: 5px;" ajax="true"/> |
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.prepararNuevo()}" oncomplete="PF('user').show()" |
|
|
|
update=":dialogForm" value="Nuevo" icon="pi pi-plus" style="margin-top: 5px;" ajax="true" |
|
|
|
disabled="#{!demoBeanLogin.permisos}"/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="flex: 1; text-align: center;"> <!-- Div para el texto centrado --> |
|
|
@ -167,8 +184,13 @@ |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Opciones"/> |
|
|
|
</f:facet> |
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.rellenarEditar(item)}" oncomplete="PF('user').show()" update=":dialogForm" icon="pi pi-fw pi-pencil" styleClass="ui-button-secondary" ajax="true"/> |
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.prepararEliminar(item)}" icon="pi pi-trash" style="margin-left: 5px" oncomplete="PF('userD').show()" update=":dialogDelete" styleClass="ui-button-danger" ajax="true"/> |
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.rellenarEditar(item)}" oncomplete="PF('user').show()" |
|
|
|
update=":dialogForm" icon="pi pi-fw pi-pencil" styleClass="ui-button-secondary" ajax="true" |
|
|
|
disabled="#{!demoBeanLogin.permisos}"/> |
|
|
|
|
|
|
|
<p:commandButton actionListener="#{demoBeanUsuarios.prepararEliminar(item)}" icon="pi pi-trash" style="margin-left: 5px" |
|
|
|
oncomplete="PF('userD').show()" update=":dialogDelete" styleClass="ui-button-danger" ajax="true" |
|
|
|
disabled="#{!demoBeanLogin.permisos}"/> |
|
|
|
</p:column> |
|
|
|
</p:dataTable> |
|
|
|
</h:form> |
|
|
|