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.

49 lines
2.5 KiB

6 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:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<ui:composition template="./template/newTemplate.xhtml">
<ui:define name="content">
<h:form>
<div class="form-container">
<p:growl id="growl" showDetail="true" />
<h5 style="text-align: center; font-size: 20px; margin-bottom: 20px; width: 100%; padding-bottom: 30px;">Bienvenido</h5>
<h:panelGrid columns="2" >
<h:outputLabel for="user"/>
<div class="ui-input-icon-left">
<span class="ui-input-icon-left" style="width: 370px; padding-top: 30px" >
<i class="pi pi-user" style="padding-top: 10px;"></i><input id="user" name="usuario" type="text" class="ui-inputfield
ui-inputtext ui-widget ui-state-default ui-corner-all"
placeholder="Usuario" required="true" requiredMessage="El usuario es requerido"/>
</span>
</div>
<h:outputLabel for="contra"/>
<div class="ui-input-icon-left">
<span class="ui-input-icon-left" style="width: 370px; padding-top: 15px; padding-bottom: 15px;" >
<i class="pi pi-angle-right" style="padding-bottom: 12px;"></i><input id="contra" name="contraseña" type="password"
class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all"
placeholder="Contraseña" required="true" requiredMessage="La contraseña es requerida"/>
</span>
</div>
</h:panelGrid>
<p:commandButton value="Entrar" update="growl" icon="pi pi-sign-in" styleClass="ui-button-raised ui-button-secondary" action="#{login.login()}"/>
<h:messages styleClass="error-message" />
</div>
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>