/
loginpage.xhtml
89 lines (87 loc) · 4.57 KB
/
loginpage.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<f:metadata>
<f:viewAction action="#{LoginPage.init}"/>
</f:metadata>
<ui:composition template="/dataverse_template.xhtml">
<ui:param name="pageTitle" value="Log In - Dataverse"/>
<ui:param name="showDataverseHeader" value="false"/>
<ui:param name="showBreadcrumbs" value="false"/>
<ui:param name="showMessagePanel" value="#{true}"/>
<ui:define name="body">
<div class="row" style="margin-top:3em;">
<h:form id="loginForm" styleClass="form-horizontal">
<p:focus context="loginForm"/>
<<<<<<< HEAD
<div class="form-group">
<p:outputLabel value="Login System" for="loginSystemSelect" styleClass="col-sm-2 control-label"/>
<h:selectOneMenu id="loginSystemSelect" value="#{LoginPage.credentialsAuthProviderId}">
<f:selectItems value="#{LoginPage.listCredentialsAuthenticationProviders()}" var="ap"
itemLabel="#{ap.title}" itemValue="#{ap.id}" />
<f:ajax render="@all" listener="#{LoginPage.resetFilledCredentials}"/>
</h:selectOneMenu>
</div>
<ui:repeat id="credentialsContainer2" value="#{LoginPage.filledCredentials}" var="fc">
<div class="form-group">
<p:outputLabel value="#{fc.credential.title}" for="credValue" styleClass="col-sm-2 control-label"/>
<div class="col-sm-9">
<h:inputText rendered="#{not fc.credential.secret}" value="#{fc.value}" id="credValue" size="40" style="width:auto;" styleClass="form-control"/>
<p:message rendered="#{not fc.credential.secret}" for="credValue"/>
<h:inputSecret rendered="#{fc.credential.secret}" value="#{fc.value}" id="sCredValue" size="40" style="width:auto;" styleClass="form-control"/>
<p:message rendered="#{not fc.credential.secret}" for="sCredValue"/>
</div>
</div>
</ui:repeat>
<div class="form-group">
=======
<div class="form-group">
<p:outputLabel value="Username" for="userName" styleClass="col-sm-2 control-label"/>
<div class="col-sm-9">
<div class="form-group">
<div class="col-sm-5">
<h:inputText id="userName" size="40" style="width:auto;" value="#{LoginPage.userName}" styleClass="form-control"/>
</div>
<div class="col-sm-6">
<p:message for="userName"/>
</div>
</div>
</div>
</div>
<div class="form-group">
<p:outputLabel value="Password" for="password" styleClass="col-sm-2 control-label"/>
<div class="col-sm-9">
<div class="form-group">
<div class="col-sm-5">
<h:inputSecret id="password" size="40" style="width:auto;" value="#{LoginPage.password}" styleClass="form-control"/>
</div>
<div class="col-sm-6">
<p:message for="password"/>
</div>
</div>
<div style="margin-top:.5em;">
<a href="passwordreset.xhtml">
Forgot your password?
</a>
</div>
</div>
</div>
<div class="form-group">
>>>>>>> origin
<div class="col-sm-offset-2 col-sm-9">
<p:commandButton id="login" value="Log In" action="#{LoginPage.login}"/>
<p:button value="Cancel" style="margin-left:1em;" outcome="/dataverse.xhtml"/>
</div>
</div>
</h:form>
</div>
</ui:define>
</ui:composition>
</h:body>
</html>