-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.xhtml
47 lines (42 loc) · 1.85 KB
/
login.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
template="resources/template.xhtml">
<ui:define name="title">
<title>Login</title>
</ui:define>
<ui:define name="body">
<div class="grid">
<div class="col-12">
<h:graphicImage library="img" name="logo.png"/>
</div>
<div class="col-12">
<div class="col-12 md:col-12 sm:col-12">
<p:inputText id="email"
value="#{loginBean.loginDto.email}"
required="true"
a:autofocus="true"
requiredMessage="Insira seu e-mail"
placeholder="E-mail"/>
</div>
<div class="col-12 md:col-12 sm:col-12">
<p:password id="senha"
value="#{loginBean.loginDto.senha}"
required="true"
requiredMessage="A senha não pode ser em branco"
placeholder="Senha"/>
</div>
<div class="col-12 md:col-12 sm:col-12">
<p:commandButton id="loginButton"
action="#{loginBean.login()}"
value="ENTRAR"/>
</div>
<div class="col-12 md:col-12 sm:col-12">
ou <p:link href="registrar.xhtml">registre-se</p:link>
</div>
</div>
</div>
</ui:define>
</ui:composition>