Newer
Older
<?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-primary">
<h:panelGroup id="source_credentials_title" layout="block" class="panel-heading#{credentialsInsertion.separateCredentials ? '' : ' hide'}">
<h3 class="panel-title">Source credentials</h3>
</h:panelGroup>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<h:outputLabel for="source_hostname" class="col-sm-2 control-label">Hostname</h:outputLabel>
<h:inputText id="source_hostname" value="#{credentialsInsertion.sourceCredentials.hostname}" class="form-control" validatorMessage="Hostname is required">
<f:validateRequired />
</h:inputText>
<h:message for="source_hostname" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="source_port" class="col-sm-2 control-label">Port</h:outputLabel>
<h:inputText id="source_port" value="#{credentialsInsertion.sourceCredentials.port}" class="form-control" validatorMessage="Port is required">
<f:validateRequired />
</h:inputText>
<h:message for="source_port" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="source_username" class="col-sm-2 control-label">Username</h:outputLabel>
<h:inputText id="source_username" value="#{credentialsInsertion.sourceCredentials.username}" class="form-control" validatorMessage="Username is required">
<f:validateRequired />
</h:inputText>
<h:message for="source_username" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="source_password" class="col-sm-2 control-label">Password</h:outputLabel>
<h:inputSecret id="source_password" value="#{credentialsInsertion.sourceCredentials.password}" class="form-control" />
<h:message for="source_password" class="text-danger" />
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<div>
<label>
<h:selectBooleanCheckbox value="#{credentialsInsertion.separateCredentials}">
<f:ajax render="tap_schema_credentials source_credentials_title" execute="@this" />
</h:selectBooleanCheckbox>
Separate credentials
</label>
</div>
<h:panelGroup id="tap_schema_credentials">
<h:panelGroup layout="block" class="panel panel-primary" rendered="#{credentialsInsertion.separateCredentials}">
<h:panelGroup layout="block" class="panel-heading" rendered="#{credentialsInsertion.separateCredentials}">
<h3 class="panel-title">TAP_SCHEMA credentials</h3>
</h:panelGroup>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<h:outputLabel for="tap_schema_hostname" class="col-sm-2 control-label">Hostname</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="tap_schema_hostname" value="#{credentialsInsertion.tapSchemaCredentials.hostname}" class="form-control" validatorMessage="Hostname is required">
<f:validateRequired />
</h:inputText>
<h:message for="tap_schema_hostname" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="tap_schema_port" class="col-sm-2 control-label">Port</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="tap_schema_port" value="#{credentialsInsertion.tapSchemaCredentials.port}" class="form-control" validatorMessage="Port is required">
<f:validateRequired />
</h:inputText>
<h:message for="tap_schema_port" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="tap_schema_username" class="col-sm-2 control-label">Username</h:outputLabel>
<div class="col-sm-10">
<h:inputText id="tap_schema_username" value="#{credentialsInsertion.tapSchemaCredentials.username}" class="form-control" validatorMessage="Username is required">
<f:validateRequired />
</h:inputText>
<h:message for="tap_schema_username" class="text-danger" />
</div>
</div>
<div class="form-group">
<h:outputLabel for="tap_schema_password" class="col-sm-2 control-label">Password</h:outputLabel>
<div class="col-sm-10">
<h:inputSecret id="tap_schema_password" value="#{credentialsInsertion.tapSchemaCredentials.password}" class="form-control" />
<h:message for="tap_schema_password" class="text-danger" />
</div>
</div>
</div>
</div>
</h:panelGroup>
</h:panelGroup>
<div class="text-center">
<h:commandButton value="Submit credentials" class="btn btn-primary" action="#{credentialsInsertion.login()}"></h:commandButton>
</div>
</h:form>
</div>
</div>
</ui:define>
</ui:composition>