Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3.        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml"
  6.      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
  7.      xmlns:h="http://xmlns.jcp.org/jsf/html"
  8.      xmlns:f="http://xmlns.jcp.org/jsf/core"
  9.      xmlns:a="http://xmlns.jcp.org/jsf/passthrough" xmlns:p="http://primefaces.org/ui">
  10.     <h:head>
  11.         <title>Login</title>
  12.     </h:head>
  13.     <h:body>
  14.         <p:messages id="messages" showDetail="true" closable="true" showIcon="false">
  15.             <p:autoUpdate />
  16.         </p:messages>
  17.         <p:ajaxStatus oncomplete="setTimeout(function() { $('.ui-messages').slideUp(); }, 5000)" />
  18.  
  19.         <div class="login-form-container">
  20.             <h:graphicImage library="img" name="login-logo.jpg" class="login-logo" width="30%"/>
  21.             <h:form class="login-form">
  22.                 <h:inputText class="login-form-input"
  23.                             value="#{loginBean.username}"
  24.                             required="true"
  25.                             requiredMessage="Insira seu usuário"
  26.                             a:autofocus="true"
  27.                             a:placeholder="Usuário"/>
  28.                 <h:inputSecret class="password-form-input"
  29.                               value="#{loginBean.senha}"
  30.                               required="true"
  31.                               requiredMessage="A senha não pode ser em branco"
  32.                               a:placeholder="Senha"/>
  33.                 <div class="remember-forgot-password">
  34.                     <div class="keep-connected-checkbox">
  35.                         <h:selectBooleanCheckbox/> Manter conectado
  36.                     </div>
  37.                     <h:link outcome="password-reset.xhtml" value="Esqueceu sua senha?" class="forgot-password"/>
  38.                 </div>
  39.                 <div class="login-buttons">
  40.                     <h:commandButton action="#{loginBean.login}" type="submit" value="ENTRAR">
  41.                         <f:ajax execute="@form" render="@form"/>
  42.                     </h:commandButton>
  43.                     <h:button onclick="" value="CADASTRE-SE"/>
  44.                 </div>
  45.             </h:form>
  46.         </div>
  47.         <ui:insert>
  48.             <ui:include src="resources/base.xhtml"/>
  49.         </ui:insert>
  50.     </h:body>
  51.     <h:outputStylesheet library="css" name="login.css"/>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement