Newer
Older
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
<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/WEB-INF/templates/master.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets" >
<ui:define name="title">TapSchema Manager - Credentials insertion page</ui:define>
<ui:define name="content">
<div class="container">
<div class="col-sm-10 col-sm-offset-1">
<h1 class="text-center">TapSchema Manager - Credentials insertion page</h1>
<br/>
<h:form id="loginForm">
<h:panelGroup rendered="#{credentialsInsertion.loginError != null}">
<div class="alert alert-danger">
#{credentialsInsertion.loginError}
</div>
</h:panelGroup>
<div class="panel panel-default">
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<h:outputLabel for="hostname" class="col-sm-2 control-label">Hostname</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="hostname" value="#{credentialsInsertion.hostname}" class="form-control" validatorMessage="Hostname is required">
<f:validateRequired />
</h:inputText>
<h:message for="hostname" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="port" class="col-sm-2 control-label">Port</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="port" value="#{credentialsInsertion.port}" class="form-control" validatorMessage="Port is required">
<f:validateRequired />
</h:inputText>
<h:message for="port" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="username" class="col-sm-2 control-label">Username</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="username" value="#{credentialsInsertion.username}" class="form-control" validatorMessage="Username is required">
<f:validateRequired />
</h:inputText>
<h:message for="username" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="password" class="col-sm-2 control-label">Password</h:outputLabel>
<div class="col-sm-10">
<h:inputSecret id="password" value="#{credentialsInsertion.password}" class="form-control" validatorMessage="Password is required">
<f:validateRequired />
</h:inputSecret>
<h:message for="password" class="text-danger" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<h:commandButton value="Submit credentials" class="btn btn-primary" action="#{credentialsInsertion.login()}"></h:commandButton>
</div>
</div>
</div>
</div>
</div>
</h:form>
</div>
</div>
</ui:define>
</ui:composition>