Browse Source

correccion de botones

master
Alejandro121102 7 months ago
parent
commit
1f5e6ec796
  1. 4
      Inventario-war/web/GeneroEliminar.xhtml
  2. 6
      Inventario-war/web/categoriaCrear.xhtml
  3. 4
      Inventario-war/web/categoriaEliminar.xhtml
  4. 6
      Inventario-war/web/colorCrear.xhtml
  5. 4
      Inventario-war/web/colorEliminar.xhtml
  6. 6
      Inventario-war/web/generoCrear.xhtml
  7. 6
      Inventario-war/web/marcaCrear.xhtml
  8. 4
      Inventario-war/web/marcaEliminar.xhtml
  9. 2
      Inventario-war/web/resources/css/cssLayout.css
  10. 6
      Inventario-war/web/rolCrear.xhtml
  11. 4
      Inventario-war/web/rolEliminar.xhtml
  12. 6
      Inventario-war/web/tallaCrear.xhtml
  13. 4
      Inventario-war/web/tallaEliminar.xhtml
  14. 6
      Inventario-war/web/ubicacionCrear.xhtml
  15. 4
      Inventario-war/web/ubicacionEliminar.xhtml
  16. 41
      Inventario-war/web/usuarioCrear.xhtml
  17. 29
      Inventario-war/web/usuariosEliminar.xhtml

4
Inventario-war/web/GeneroEliminar.xhtml

@ -69,7 +69,7 @@
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Genero"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanGenero.generos.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -77,7 +77,7 @@
<h:outputText value="Nombre:"/>
<p:inputText value="#{demoBeanGenero.generos.genero}" style="margin-right: 45px; margin-left: 10px; margin-top: 10px; margin-bottom: 20px" title="Nombre" disabled="true" />
</div>
<p:commandButton action="vistaGenero.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanGenero.eliminarGenero()}" value="Eliminar" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanGenero.eliminarGenero()}" value="Eliminar" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

6
Inventario-war/web/categoriaCrear.xhtml

@ -70,15 +70,15 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanCategoria.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Categoria" for="categoria" />
<p:inputText id="categoria" value="#{demoBeanCategoria.categorias.categoria}" style="margin: 20px" title="Categoria" required="true" validatorMessage="ingresa un valor valido" requiredMessage="Se requiere el campo categoria.">
<f:validateRegex pattern = "^[A-Za-z]{1,15}$" for="categoria"/>
</p:inputText>
</div>
<p:commandButton action="#{demoBeanCategoria.agregar()}" value="Guardar" update="growl" style="margin-left: 90px" styleClass="rounded-button ui-button-success" rendered="#{demoBeanCategoria.nuevo}" ajax="false"/>
<p:commandButton action="categoriaLista.xhtml" actionListener="#{demoBeanCategoria.editarCategoria()}" style="margin-left: 110px" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanCategoria.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanCategoria.agregar()}" value="Guardar" update="growl" style="margin-left: 90px; margin-top: 30px" styleClass="rounded-button ui-button-success" rendered="#{demoBeanCategoria.nuevo}" ajax="false"/>
<p:commandButton action="categoriaLista.xhtml" actionListener="#{demoBeanCategoria.editarCategoria()}" style="margin-left: 110px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanCategoria.nuevo}" ajax="false"/>
<p:commandButton action="categoriaLista.xhtml" value="Cancelar" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" immediate="true" ajax="false"/>
</h:form>
</center>

4
Inventario-war/web/categoriaEliminar.xhtml

@ -69,7 +69,7 @@
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminar Categoria"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanCategoria.categorias.id}" style="margin: 10px" title="Id" disabled="true" />
</div>
@ -78,7 +78,7 @@
<p:inputText value="#{demoBeanCategoria.categorias.categoria}" style="margin-right: 53px; margin-left: 10px; margin-top: 10px; margin-bottom: 20px" title="Categoria" disabled="true" />
</div>
<p:commandButton action="categoriaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanCategoria.eliminarCategoria()}" value="Eliminar" ajax="false"/>
<p:commandButton action="categoriaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanCategoria.eliminarCategoria()}" value="Eliminar" ajax="false"/>
<p:commandButton action="categoriaLista.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

6
Inventario-war/web/colorCrear.xhtml

@ -70,7 +70,7 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanColor.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Color:" for="color" />
<p:inputText id="color" value="#{demoBeanColor.rol.color}" style="margin: 20px" title="Color"
required="true" requiredMessage="Se requiere campo Color."
@ -80,8 +80,8 @@
</div>
<p:commandButton action="#{demoBeanColor.agregarRol()}" style="margin-left: 50px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanColor.nuevo}" ajax="false" />
<p:commandButton action="colorLista.xhtml" style="margin-left: 70px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanColor.editarRoles()}" value="Editar" update="growl" rendered="#{!demoBeanColor.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanColor.agregarRol()}" style="margin-left: 50px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanColor.nuevo}" ajax="false" />
<p:commandButton action="colorLista.xhtml" style="margin-left: 70px; margin-top: 30px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanColor.editarRoles()}" value="Editar" update="growl" rendered="#{!demoBeanColor.nuevo}" ajax="false"/>
<p:commandButton action="colorLista.xhtml" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" value="Cancelar" immediate="true" ajax="false"/>

4
Inventario-war/web/colorEliminar.xhtml

@ -70,7 +70,7 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Color"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanColor.rol.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -78,7 +78,7 @@
<h:outputText value="Color:"/>
<p:inputText value="#{demoBeanColor.rol.color}" style="margin-left: 10px; margin-right: 15px; margin-top: 10px; margin-bottom: 20px" disabled="true" title="Color" />
</div>
<p:commandButton action="colorLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanColor.eliminarRoles()}" value="Eliminar" ajax="false"/>
<p:commandButton action="colorLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanColor.eliminarRoles()}" value="Eliminar" ajax="false"/>
<p:commandButton action="colorLista.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>

6
Inventario-war/web/generoCrear.xhtml

@ -69,15 +69,15 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanGenero.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 30px">
<h:outputText value="Genero *"/>
<p:selectOneMenu id="generos" value="#{demoBeanGenero.gen}" style="margin: 20px" converter="selectOneMenuConverter" title="genero" required="true" requiredMessage="El campo genero es requerido.">
<!-- TODO: update below reference to list of available items-->
<f:selectItems id="genero" value="#{demoBeanGenero.Seleccionar()}"/>
</p:selectOneMenu>
</div>
<p:commandButton action="vistaGenero.xhtml" actionListener="#{demoBeanGenero.agregarGenero()}" style="margin-left: -30px" value="Guardar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{demoBeanGenero.nuevo}" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" actionListener="#{demoBeanGenero.editarGenero()}" style="margin-left: -20px" value="Editar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{!demoBeanGenero.nuevo}" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" actionListener="#{demoBeanGenero.agregarGenero()}" style="margin-left: -30px; margin-top: 30px" value="Guardar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{demoBeanGenero.nuevo}" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" actionListener="#{demoBeanGenero.editarGenero()}" style="margin-left: -20px; margin-top: 30px" value="Editar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{!demoBeanGenero.nuevo}" ajax="false"/>
<p:commandButton action="vistaGenero.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

6
Inventario-war/web/marcaCrear.xhtml

@ -70,14 +70,14 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanMarca.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Marca" for="marca" />
<p:inputText id="marca" value="#{demoBeanMarca.marcas.marca}" style="margin: 20px" title="Marca" required="true" validatorMessage="ingresa un valor valido" requiredMessage="Se requiere el campo de marca.">
<f:validateRegex pattern = "^[A-Za-z0-9]{1,15}$" for="categoria"/>
</p:inputText>
</div>
<p:commandButton action="#{demoBeanMarca.agregar()}" style="margin-left: 70px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanMarca.nuevo}" ajax="false"/>
<p:commandButton action="marcaLista.xhtml" style="margin-left: 80px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanMarca.editarMarca()}" value="Editar" update="growl" rendered="#{!demoBeanMarca.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanMarca.agregar()}" style="margin-left: 70px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanMarca.nuevo}" ajax="false"/>
<p:commandButton action="marcaLista.xhtml" style="margin-left: 80px; margin-top: 30px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanMarca.editarMarca()}" value="Editar" update="growl" rendered="#{!demoBeanMarca.nuevo}" ajax="false"/>
<p:commandButton action="marcaLista.xhtml" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

4
Inventario-war/web/marcaEliminar.xhtml

@ -69,7 +69,7 @@
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Marca"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanMarca.marcas.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -77,7 +77,7 @@
<h:outputText value="Marca:"/>
<p:inputText value="#{demoBeanMarca.marcas.marca}" style="margin-left: 10px; margin-right: 35px; margin-top: 10px; margin-bottom: 20px" title="Marca" disabled="true" />
</div>
<p:commandButton action="marcaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanMarca.eliminarMarca()}" value="Eliminar" ajax="false"/>
<p:commandButton action="marcaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanMarca.eliminarMarca()}" value="Eliminar" ajax="false"/>
<p:commandButton action="marcaLista.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

2
Inventario-war/web/resources/css/cssLayout.css

@ -77,6 +77,8 @@
justify-content: center;
align-items: center;
height: 100%;
margin: auto;
width: 50%;
}
.content {

6
Inventario-war/web/rolCrear.xhtml

@ -70,7 +70,7 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanRol.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Rol:" for="rol" />
@ -80,8 +80,8 @@
</p:selectOneMenu>
</div>
<p:commandButton action="#{demoBeanRol.agregarRol()}" style="margin-left: 50px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanRol.nuevo}" ajax="false" />
<p:commandButton action="rolLista.xhtml" style="margin-left: 70px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanRol.editarRoles()}" value="Editar" update="growl" rendered="#{!demoBeanRol.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanRol.agregarRol()}" style="margin-left: 70px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanRol.nuevo}" ajax="false" />
<p:commandButton action="rolLista.xhtml" style="margin-left: 70px; margin-top: 30px" styleClass="rounded-button ui-button-success" actionListener="#{demoBeanRol.editarRoles()}" value="Editar" update="growl" rendered="#{!demoBeanRol.nuevo}" ajax="false"/>
<p:commandButton action="rolLista.xhtml" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" value="Cancelar" immediate="true" ajax="false"/>

4
Inventario-war/web/rolEliminar.xhtml

@ -70,7 +70,7 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Rol"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanRol.rol.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -78,7 +78,7 @@
<h:outputText value="Rol:"/>
<p:inputText value="#{demoBeanRol.rol.rolUsuario}" style="margin-left: 10px; margin-right: 15px; margin-top: 10px; margin-bottom: 20px" disabled="true" title="RolUsuario" />
</div>
<p:commandButton action="rolLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanRol.eliminarRoles()}" value="Eliminar" ajax="false"/>
<p:commandButton action="rolLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanRol.eliminarRoles()}" value="Eliminar" ajax="false"/>
<p:commandButton action="rolLista.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>

6
Inventario-war/web/tallaCrear.xhtml

@ -69,7 +69,7 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanTalla.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Talla" for="talla" />
<p:inputText id="talla" value="#{demoBeanTalla.tallas.talla}" style="margin: 20px" title="Talla" required="true" validatorMessage="ingresa una talla valida" requiredMessage="Se requiere el campo talla.">
@ -77,8 +77,8 @@
</p:inputText>
</div>
<p:commandButton action="#{demoBeanTalla.agregar()}" style="margin-left: 50px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanTalla.nuevo}" ajax="false"/>
<p:commandButton action="tallaLista.xhtml" actionListener="#{demoBeanTalla.editarTalla()}" style="margin-left: 70px" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanTalla.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanTalla.agregar()}" style="margin-left: 50px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanTalla.nuevo}" ajax="false"/>
<p:commandButton action="tallaLista.xhtml" actionListener="#{demoBeanTalla.editarTalla()}" style="margin-left: 70px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanTalla.nuevo}" ajax="false"/>
<p:commandButton action="tallaLista.xhtml" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" value="Cancelar" immediate="true" ajax="false"/>

4
Inventario-war/web/tallaEliminar.xhtml

@ -68,7 +68,7 @@
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminar talla"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanTalla.tallas.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -76,7 +76,7 @@
<h:outputText value="Talla:"/>
<p:inputText value="#{demoBeanTalla.tallas.talla}" style="margin-left: 10px; margin-right: 25px; margin-top: 10px; margin-bottom: 20px" title="Talla" disabled="true" />
</div>
<p:commandButton action="tallaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px" actionListener="#{demoBeanTalla.eliminarTalla()}" value="Eliminar" ajax="false"/>
<p:commandButton action="tallaLista.xhtml" styleClass="rounded-button ui-button-success" style="margin-left: 30px; margin-top: 30px" actionListener="#{demoBeanTalla.eliminarTalla()}" value="Eliminar" ajax="false"/>
<p:commandButton action="tallaLista.xhtml" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>

6
Inventario-war/web/ubicacionCrear.xhtml

@ -71,7 +71,7 @@
<h1><h:outputText style="color: black;" value="#{demoBeanUbicacion.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Nombre del Almacen:" for="almacen" />
<p:inputText id="almacen" value="#{demoBeanUbicacion.ubicacion.nombreAlmacen}" style="margin: 20px; margin-right: 130px" title="Almacen" required="true" requiredMessage="Se requiere campo Nombre del Almacen."/>
</div>
@ -86,8 +86,8 @@
</p:inputText>
</div>
<p:commandButton action="#{demoBeanUbicacion.agregarUbicacion()}" style="margin-left: 60px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanUbicacion.nuevo}" ajax="false"/>
<p:commandButton action="ubicacionLista.xhtml" actionListener="#{demoBeanUbicacion.editarUbicaciones()}" style="margin-left: 80px" value="Editar" styleClass="rounded-button ui-button-success" update="growl" rendered="#{!demoBeanUbicacion.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanUbicacion.agregarUbicacion()}" style="margin-left: 60px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Guardar" update="growl" rendered="#{demoBeanUbicacion.nuevo}" ajax="false"/>
<p:commandButton action="ubicacionLista.xhtml" actionListener="#{demoBeanUbicacion.editarUbicaciones()}" style="margin-left: 80px; margin-top: 30px" value="Editar" styleClass="rounded-button ui-button-success" update="growl" rendered="#{!demoBeanUbicacion.nuevo}" ajax="false"/>
<p:commandButton action="ubicacionLista.xhtml" value="Cancelar" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" immediate="true" ajax="false"/>

4
Inventario-war/web/ubicacionEliminar.xhtml

@ -68,7 +68,7 @@
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Almacenes"/></h1>
<div>
<div style="margin-top: 50px">
<h:outputText value="Id:"/>
<p:inputText value="#{demoBeanUbicacion.ubicacion.id}" style="margin: 10px" title="Id" disabled="true"/>
</div>
@ -84,7 +84,7 @@
<h:outputText value="Fila:"/>
<p:inputText value="#{demoBeanUbicacion.ubicacion.fila}" style="margin-left: 10px; margin-right: 20px; margin-top: 10px; margin-bottom: 20px" disabled="true" title="Fila"/>
</div>
<p:commandButton action="ubicacionLista.xhtml" actionListener="#{demoBeanUbicacion.eliminarUbicacion()}" style="margin-left: 30px" styleClass="rounded-button ui-button-success" value="Eliminar" ajax="false"/>
<p:commandButton action="ubicacionLista.xhtml" actionListener="#{demoBeanUbicacion.eliminarUbicacion()}" style="margin-left: 30px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Eliminar" ajax="false"/>
<p:commandButton action="ubicacionLista.xhtml" value="Cancelar" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" immediate="true" ajax="false"/>
</h:form>

41
Inventario-war/web/usuarioCrear.xhtml

@ -63,20 +63,21 @@
</ui:define>
<ui:define name="content">
<f:view>
<center>
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="#{demoBeanUsuarios.titulo}"/></h1>
<p:growl id="growl" showDetail="true" />
<div>
<div style="margin-top: 50px">
<p:outputLabel value="Usuario:" for="usuario" />
<p:inputText id="usuario" value="#{demoBeanUsuarios.usuario.usuario}" style="margin: 20px" title="Usuario" required="true" requiredMessage="Se requiere campo Usuario."/>
</div>
<div>
<p:outputLabel value="Contraseña:" for="password" />
<p:inputText id="password" value="#{demoBeanUsuarios.usuario.password}" style="margin-left: 20px; margin-right: 10px; margin-bottom: 20px" title="password" required="true" validatorMessage="La Contraseña no es valido" requiredMessage="Se requiere el campo Contraseña.">
<f:validateRegex pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$" for="password"/>
@ -84,34 +85,38 @@
</div>
<div>
<h:outputText value="Genero *"/>
<p:selectOneMenu id="generos" value="#{demoBeanUsuarios.usuario.sexo}" style="margin-left: 20px; margin-right: 10px; margin-bottom: 20px" converter="selectOneMenuConverter" title="genero" required="true" requiredMessage="Se requiere campo Genero.">
<h:outputText value="Genero *" style="margin-left: 30px;"/>
<p:selectOneMenu id="generos" value="#{demoBeanUsuarios.usuario.sexo}" style="margin-left: 20px; margin-right: 80px; margin-bottom: 20px" converter="selectOneMenuConverter" title="Genero" required="true" requiredMessage="Se requiere campo Genero.">
<f:selectItems id="genero" value="#{demoBeanUsuarios.Seleccionar()}"/>
<f:selectItems id="genero" value="#{demoBeanUsuarios.Seleccionar()}" />
</p:selectOneMenu>
</div>
<div>
<p:outputLabel value="Fecha de Registro:" for="fechaRegistro" />
<p:inputText id="fechaRegistro" value="#{demoBeanUsuarios.usuario.fechaRegistro}" style="margin-left: 20px; margin-right: 90px; margin-top: 20px; margin-bottom:20px " title="FechaRegistro" required="true" requiredMessage="Se requiere campo Fecha de Registro.">
<p:inputText id="fechaRegistro" value="#{demoBeanUsuarios.usuario.fechaRegistro}" style="margin-left: 20px; margin-right: 30px; margin-top: 20px; margin-bottom:20px " title="FechaRegistro" required="true" requiredMessage="Se requiere campo Fecha de Registro.">
<f:convertDateTime pattern="MM/dd/yyyy" />
</p:inputText>
</div>
<div>
<p:outputLabel value="Rol:" for="rolid" />
<p:selectOneMenu id="rolid" value="#{demoBeanUsuarios.usuario.rolid}" style="margin-left: 20px; margin-right: 45px; margin-bottom: 20px" converter="selectOneMenuConverter" required="true" requiredMessage="Se requiere campo Rol.">
<p:selectOneMenu id="rolid" value="#{demoBeanUsuarios.usuario.rolid}" style="margin-left: 20px; margin-right: 330px; margin-bottom: 20px" converter="selectOneMenuConverter" required="true" requiredMessage="Se requiere campo Rol.">
<!-- TODO: update below reference to list of available items-->
<f:selectItems value="#{demoBeanRol.listRolll}" var="item" itemLabel="#{item.rolUsuario}" itemValue="#{item}"/>
</p:selectOneMenu>
</div>
<p:commandButton action="#{demoBeanUsuarios.agregarUsuario()}" style="margin-left: 90px" value="Guardar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{demoBeanUsuarios.nuevo}" ajax="false" />
<p:commandButton action="marcaLista3.xhtml" actionListener="#{demoBeanUsuarios.editarUsuarios()}" style="margin-left: 90px" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanUsuarios.nuevo}" ajax="false"/>
<p:commandButton action="#{demoBeanUsuarios.agregarUsuario()}" style="margin-left: 430px; margin-top: 30px" value="Guardar" update="growl" styleClass="rounded-button ui-button-success" rendered="#{demoBeanUsuarios.nuevo}" ajax="false" />
<p:commandButton action="marcaLista3.xhtml" style="margin-left: 430px; margin-top: 30px" actionListener="#{demoBeanUsuarios.editarUsuarios()}" styleClass="rounded-button ui-button-success" value="Editar" update="growl" rendered="#{!demoBeanUsuarios.nuevo}" ajax="false"/>
<p:commandButton action="marcaLista3.xhtml" style="margin-left: 10px" styleClass="rounded-button ui-button-danger" value="Cancelar" immediate="true" ajax="false"/>
</h:form>
</center>
</f:view>
</ui:define>

29
Inventario-war/web/usuariosEliminar.xhtml

@ -69,37 +69,36 @@
<h:form style="background-color: white; margin: -10px;">
<h1><h:outputText style="color: black;" value="Eliminando Usuario"/></h1>
<div>
<h:outputText value="Id:"/>
<div style="margin-top: 50px">
<h:outputText value="Id:" />
<p:inputText value="#{demoBeanUsuarios.usuario.id}" style="margin: 20px" title="Id" disabled="true"/>
</div>
<div>
<h:outputText value="Usuario:"/>
<p:inputText value="#{demoBeanUsuarios.usuario.usuario}" style="margin-left: 20px; margin-right: 50px; margin-bottom: 20px" title="Usuario" disabled="true"/>
</div>
<div>
<h:outputText value="Password:"/>
<h:outputText value="Password:" />
<p:inputText value="#{demoBeanUsuarios.usuario.password}" style="margin-left: 20px; margin-right: 60px; margin-bottom: 20px" disabled="true" title="Contraseña"/>
<h:outputText value="Genero:" style="margin-left: -40px; "/>
<p:inputText value="#{demoBeanUsuarios.usuario.sexo}" style="margin-left: 20px; margin-right: 90px; margin-bottom: 20px" disabled="true" title="Genero"/>
</div>
<div>
<h:outputText value="Password:"/>
<p:inputText value="#{demoBeanUsuarios.usuario.sexo}" style="margin-left: 20px; margin-right: 60px; margin-bottom: 20px" disabled="true" title="Genero"/>
</div>
<div>
<h:outputText value="FechaRegistro:"/>
<h:outputText value="FechaRegistro:" style="margin-left: -20px; "/>
<p:inputText value="#{demoBeanUsuarios.usuario.fechaRegistro}" style="margin-left: 20px; margin-right: 90px; margin-bottom: 20px" disabled="true" title="Fecha de Registro">
<f:convertDateTime pattern="MM/dd/yyyy" />
</p:inputText>
</div>
<div>
<h:outputText value="Status:"/>
<p:inputText value="#{demoBeanUsuarios.usuario.status ==1?'Activo':'Inactivo'}" style="margin-left: 20px; margin-right: 45px; margin-bottom: 20px" disabled="true" title="Status"/>
<h:outputText value="Status:" style="margin-left: -70px; "/>
<p:inputText value="#{demoBeanUsuarios.usuario.status ==1?'Activo':'Inactivo'}" style="margin-left: 20px; margin-right: 100px; margin-bottom: 20px" disabled="true" title="Status"/>
</div>
<div>
<h:outputText value="Rol:"/>
<p:inputText value="#{demoBeanUsuarios.usuario.rolid.rolUsuario}" style="margin-left: 20px; margin-right: 25px; margin-bottom: 20px" disabled="true" title="Rolid"/>
<p:inputText value="#{demoBeanUsuarios.usuario.rolid.rolUsuario}" style="margin-left: 20px; margin-right: 350px; margin-bottom: 20px" disabled="true" title="Rolid"/>
</div>
</div>
<p:commandButton action="marcaLista3.xhtml" actionListener="#{demoBeanUsuarios.eliminarUsuario()}" style="margin-left: 30px" styleClass="rounded-button ui-button-success" value="Eliminar" ajax="false"/>
<p:commandButton action="marcaLista3.xhtml" actionListener="#{demoBeanUsuarios.eliminarUsuario()}" style="margin-left: 290px; margin-top: 30px" styleClass="rounded-button ui-button-success" value="Eliminar" ajax="false"/>
<p:commandButton action="marcaLista3.xhtml" value="Cancelar" styleClass="rounded-button ui-button-danger" style="margin-left: 10px" immediate="true" ajax="false"/>
</h:form>
</center>

Loading…
Cancel
Save