You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
6.1 KiB
103 lines
6.1 KiB
<?xml version='1.0' encoding='UTF-8' ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
|
xmlns:p="http://primefaces.org/ui">
|
|
|
|
<body>
|
|
|
|
<ui:composition template="./template/principal.xhtml">
|
|
|
|
<ui:define name="top">
|
|
<center> <H2> U S U A R I O S </H2></center>
|
|
</ui:define>
|
|
|
|
<ui:define name="left">
|
|
<h:form >
|
|
<p:menu style="border-color: gray; margin: 1px; width: 163px; height: 600px;">
|
|
|
|
<p:menuitem action="ProductoLista.xhtml" value="Productos" ajax="false" icon="pi pi-database" iconPos="left" style="background-color: lightgray" styleClass="botonMenu" />
|
|
<p:menuitem action="proveedorLista.xhtml" value="Proveedores" ajax="false" icon="pi pi-id-card" iconPos="left" style="background-color: white " styleClass="botonMenu"/>
|
|
<p:menuitem action="marcaLista.xhtml" value="Marcas" ajax="false" icon="pi pi-tag" iconPos="left" style="background-color: lightgray" styleClass="botonMenu" />
|
|
<p:menuitem action="categoriaLista.xhtml" value="Categorias" ajax="false" icon="pi pi-star" iconPos="left" style="background-color: white" styleClass="botonMenu" />
|
|
<p:menuitem action="UbicacionAlmacenLista.xhtml" value="Almacen" ajax="false" icon="pi pi-map-marker" iconPos="left" style="background-color: lightgray" styleClass="botonMenu"/>
|
|
<p:menuitem action="usuariosLista.xhtml" value="Usuarios" ajax="false" icon="pi pi-users" iconPos="left" style="background-color: white" styleClass="botonMenu" />
|
|
</p:menu>
|
|
</h:form>
|
|
</ui:define>
|
|
|
|
<ui:define name="content">
|
|
<f:view>
|
|
<h:form style="width: 100%">
|
|
<p:growl id="growl" showDetail="true" />
|
|
|
|
<p:dataTable value="#{demoBeanUsuarios.all}" var="item"
|
|
widgetVar="Usuarios" emptyMessage="No se han encontrado el usuario"
|
|
filteredValue="#{demoBeanUsuarios.filteredCustomers3}"
|
|
globalFilterFunction="#{demoBeanUsuarios.globalFilterFunction}"
|
|
scrollable="true" scrollHeight="480" >
|
|
<f:facet name="header">
|
|
<div class="flex justify-content-end" style="height: 30px;" >
|
|
<div>
|
|
<p:commandButton action="usuariosCrearEditar.xhtml" actionListener="#{demoBeanUsuarios.prepararNuevo()}" icon="pi pi-plus" value="Nuevo" ajax="false"/>
|
|
|
|
<i class="pi pi-search" style="margin-left: 765px; margin-top: 10px;"></i>
|
|
<p:inputText id="globalFilter" onkeyup="PF('usuario').filter()" style="width:300px; margin-left: 10px; margin-top: -40px; float: right;"
|
|
placeholder="Buscar usuarios" />
|
|
|
|
</div>
|
|
</div>
|
|
</f:facet>
|
|
|
|
<p:column styleClass="columnaOpc">
|
|
<f:facet name="header">
|
|
<h:outputText value="Id"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.id}"/>
|
|
</p:column>
|
|
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Usuario" style=" font-weight:bolder; float: left"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.usuario}"/>
|
|
</p:column>
|
|
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Contraseña" style=" font-weight:bolder; float: left"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.contrasenia}"/>
|
|
</p:column>
|
|
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Status" style=" font-weight:bolder; float: left" />
|
|
</f:facet>
|
|
<h:outputText value="#{item.status==1?'Activo':'inactivo'}"/>
|
|
</p:column>
|
|
|
|
<p:column styleClass="columnaOpc">
|
|
<f:facet name="header">
|
|
<h:outputText value="Opciones" style=" font-weight:bolder;"/>
|
|
</f:facet>
|
|
|
|
<p:commandButton action="usuariosCrearEditar.xhtml" actionListener="#{demoBeanUsuarios.prepararEditar(item)}" ajax="false" style="margin-right: 10px; " icon="pi pi-file-edit" />
|
|
<p:commandButton action="usuarioEliminar.xhtml" actionListener="#{demoBeanUsuarios.prepararEliminar(item)}" ajax="false" style="background-color: red; color:white; border-color: red; " icon="pi pi-trash" />
|
|
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:form>
|
|
</f:view>
|
|
|
|
|
|
|
|
|
|
</ui:define>
|
|
|
|
</ui:composition>
|
|
|
|
</body>
|
|
</html>
|
|
|