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.
81 lines
3.9 KiB
81 lines
3.9 KiB
7 months ago
|
<?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>
|
||
|
<center>
|
||
|
|
||
|
<ui:composition template="./template/Principal.xhtml">
|
||
|
|
||
|
<ui:define name="top">
|
||
|
SISTEMA DE INVENTARIO
|
||
|
</ui:define>
|
||
|
|
||
|
<ui:define name="left">
|
||
|
|
||
|
</ui:define>
|
||
|
|
||
|
<ui:define name="right">
|
||
|
|
||
|
</ui:define>
|
||
|
|
||
|
<ui:define name="content">
|
||
|
<f:view>
|
||
|
|
||
|
|
||
|
<h:form>
|
||
|
<h1><h:outputText value="Create/Edit"/></h1>
|
||
|
<p:panelGrid columns="4">
|
||
|
|
||
|
<p:outputLabel value="Nombre:" for="nombre" />
|
||
|
<p:inputText id="nombre" value="#{demoBeanMarca.marca.nombre}"
|
||
|
title="Nombre"
|
||
|
required="true"/>
|
||
|
<p:message for="nombre"/>
|
||
|
|
||
|
</p:panelGrid>
|
||
|
|
||
|
<p:commandButton action="#{demoBeanMarca.agregarMarca()}"
|
||
|
icon="pi pi-fw pi-check"
|
||
|
style="padding: 2px 8px; font-size: 13px; font-weight: bold; color: #3366FF; background-color: #fff; border: 2px solid #3366FF; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease ; margin-right: 6px;"
|
||
|
rendered="#{demoBeanMarca.nuevo}"
|
||
|
value="Agregar"
|
||
|
ajax="false"
|
||
|
/>
|
||
|
|
||
|
|
||
|
|
||
|
<p:commandButton action="Marca.xhtml"
|
||
|
actionListener="#{demoBeanMarca.editarMarca()}"
|
||
|
icon="pi pi-fw pi-pencil"
|
||
|
style="padding: 2px 8px; font-size: 13px; font-weight: bold; color: #3366FF; background-color: #fff; border: 2px solid #3366FF; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease ; margin-right: 6px;"
|
||
|
rendered="#{!demoBeanMarca.nuevo}"
|
||
|
value="Editar"
|
||
|
ajax="false"
|
||
|
/>
|
||
|
|
||
|
<p:commandButton action="Marca.xhtml"
|
||
|
icon="pi pi-fw pi-times"
|
||
|
style=" padding: 2px 8px; font-size: 13px; font-weight: bold; color: #990000; background-color: #fff; border: 2px solid #FF0000; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; margin-right: 6px;"
|
||
|
value="Cancelar"
|
||
|
immediate="true"
|
||
|
ajax="false"/>
|
||
|
|
||
|
</h:form>
|
||
|
</f:view>
|
||
|
|
||
|
</ui:define>
|
||
|
|
||
|
<ui:define name="bottom">
|
||
|
|
||
|
</ui:define>
|
||
|
|
||
|
</ui:composition>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|