|
@ -19,7 +19,7 @@ |
|
|
|
|
|
|
|
|
<f:metadata> |
|
|
<f:metadata> |
|
|
<f:viewParam name="rol" value="#{demoBeanLogin.rol}" /> |
|
|
<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> |
|
|
</f:metadata> |
|
|
<div> |
|
|
<div> |
|
|
<h:form> |
|
|
<h:form> |
|
@ -36,15 +36,23 @@ |
|
|
icon="pi pi-globe" |
|
|
icon="pi pi-globe" |
|
|
oncomplete="PF('pais').show()" |
|
|
oncomplete="PF('pais').show()" |
|
|
update="paisDialog" |
|
|
update="paisDialog" |
|
|
actionListener="#{demoBeanPaises.prepararNuevo()}"/> |
|
|
actionListener="#{demoBeanPaises.prepararNuevo()}" |
|
|
|
|
|
rendered="#{demoBeanLogin.agregaciones == true}"/> |
|
|
|
|
|
|
|
|
<p:menuitem value="Estados" |
|
|
<p:menuitem value="Estados" |
|
|
icon="pi pi-map" |
|
|
icon="pi pi-map" |
|
|
oncomplete="PF('estado').show()" |
|
|
oncomplete="PF('estado').show()" |
|
|
update="estadosDialog" |
|
|
update="estadosDialog" |
|
|
actionListener="#{demoBeanEstados.prepararNuevo()}"/> |
|
|
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:menuitem value="Tipos" icon="pi pi-tags"/> |
|
|
|
|
|
<!-- <p:divider />--> |
|
|
<!-- <p:divider />--> |
|
|
</p:submenu> |
|
|
</p:submenu> |
|
|
</p:menubar> |
|
|
</p:menubar> |
|
@ -54,14 +62,21 @@ |
|
|
<ui:include src="roles.xhtml"/> |
|
|
<ui:include src="roles.xhtml"/> |
|
|
</p:dialog> |
|
|
</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"/> |
|
|
<ui:include src="paises.xhtml"/> |
|
|
</p:dialog> |
|
|
</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"/> |
|
|
<ui:include src="estados.xhtml"/> |
|
|
</p:dialog> |
|
|
</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> |
|
|
</div> |
|
|
|
|
|
|
|
@ -81,7 +96,9 @@ |
|
|
<div style="display: flex; align-items: center;"> |
|
|
<div style="display: flex; align-items: center;"> |
|
|
|
|
|
|
|
|
<div style="flex: 1;"> |
|
|
<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> |
|
|
|
|
|
|
|
|
<div style="flex: 1; text-align: center;"> <!-- Div para el texto centrado --> |
|
|
<div style="flex: 1; text-align: center;"> <!-- Div para el texto centrado --> |
|
@ -167,8 +184,13 @@ |
|
|
<f:facet name="header"> |
|
|
<f:facet name="header"> |
|
|
<h:outputText value="Opciones"/> |
|
|
<h:outputText value="Opciones"/> |
|
|
</f:facet> |
|
|
</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.rellenarEditar(item)}" oncomplete="PF('user').show()" |
|
|
<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"/> |
|
|
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:column> |
|
|
</p:dataTable> |
|
|
</p:dataTable> |
|
|
</h:form> |
|
|
</h:form> |
|
|