edit-sp-config.xhtml 3.71 KB
Newer Older
michael.simon's avatar
michael.simon committed
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 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"
	xmlns:bw="http://www.scc.kit.edu/bwfacelets"
	xmlns:p="http://primefaces.org/ui">
<head>
<title></title>
</head>
<body>
<f:view>
	<f:metadata>
		<f:viewParam name="id" value="#{editSamlSpConfigurationBean.id}"/>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{editSamlSpConfigurationBean.preRenderView}" />
	</f:metadata>

<ui:composition template="/template/default-admin.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">
	<h:form id="form">
		<h2><h:outputText value="#{messages.sp_config}: #{editSamlSpConfigurationBean.entity.entityId}"/></h2>
	
		<div id="panelInline">
			<p:panel header="#{messages.sp_config}">
				<p:panelGrid id="baseData" columns="2">
		
			        <h:outputText value="#{messages.id}:"/>
			        <h:outputText value="#{editSamlSpConfigurationBean.entity.id}"/>
			
					<bw:inputText id="entityIdField" label="#{messages.entity_id}"
						value="#{editSamlSpConfigurationBean.entity.entityId}" required="true" />
		
					<bw:inputText id="acsField" label="#{messages.acs_endpoint}"
						value="#{editSamlSpConfigurationBean.entity.acs}" required="true" />
		
					<bw:inputText id="ecpField" label="#{messages.ecp_endpoint}"
						value="#{editSamlSpConfigurationBean.entity.ecp}" required="true" />
		
			        <h:outputText value="#{messages.host_names}:"/>
					<p:dataTable id="propTable" var="key" 
						value="#{editSamlSpConfigurationBean.hostNameList}">
						<p:column>
							<f:facet name="header"> 
								<h:outputText value="#{messages.host_name}" />
							</f:facet>
							<h:outputText value="#{key}" />
						</p:column>
						<p:column>
							<h:commandLink value="#{messages.delete}" action="#{editSamlSpConfigurationBean.removeHost(key)}">
								<f:ajax render="@form" />
							</h:commandLink>
						</p:column>
					</p:dataTable>
					
			        <h:outputText value="#{messages.new_host_name}:"/>
					<h:panelGrid id="newPropTable" columns="2">
				        <h:inputText id="key_input" value="#{editSamlSpConfigurationBean.hostName}"/>
						<h:commandLink value="#{messages.add}" action="#{editSamlSpConfigurationBean.addHost()}">
							<f:ajax execute="form" render="form" />
						</h:commandLink>
					</h:panelGrid>
		
					<h:outputLabel for="private_key" value="#{messages.private_key}:"/>
					<p:inputTextarea id="private_key" rows="12" cols="80" autoResize="false"
		            		value="#{editSamlSpConfigurationBean.entity.privateKey}"/>
		
					<h:outputLabel for="certificate" value="#{messages.certificate}:"/>
					<p:inputTextarea id="certificate" rows="12" cols="80" autoResize="false"
		       	    		value="#{editSamlSpConfigurationBean.entity.certificate}"/>

75
76
77
78
79
80
81
82
					<h:outputLabel for="sprivate_key" value="#{messages.private_key}:"/>
					<p:inputTextarea id="sprivate_key" rows="12" cols="80" autoResize="false"
		            		value="#{editSamlSpConfigurationBean.entity.standbyPrivateKey}"/>
		
					<h:outputLabel for="scertificate" value="#{messages.certificate}:"/>
					<p:inputTextarea id="scertificate" rows="12" cols="80" autoResize="false"
		       	    		value="#{editSamlSpConfigurationBean.entity.standbyCertificate}"/>

michael.simon's avatar
michael.simon committed
83
84
85
86
87
88
89
90
91
92
93
				</p:panelGrid>
			<h:commandButton id="save" action="#{editSamlSpConfigurationBean.save}" value="#{messages.save}"/>
			</p:panel>
		</div>
	</h:form>

	</ui:define>
</ui:composition>
</f:view>		
</body>
</html>