You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VREApp-Integration-portlet/src/main/webapp/html/vreappintegration/config.jsp

64 lines
2.1 KiB
Plaintext

<%@include file="/html/init.jsp" %>
<liferay-portlet:actionURL portletConfiguration="true" var="configurationURL" />
<%
String appURL_cfg = GetterUtil.getString(portletPreferences.getValue("appURL", StringPool.BLANK));
String appURLTokenParam_cfg = GetterUtil.getString(portletPreferences.getValue("appURLTokenParam", StringPool.BLANK));
Integer iFrameHeightParam_cfg = GetterUtil.getInteger(portletPreferences.getValue("iFrameHeightParam", "1000"));
%>
<aui:form action="<%= configurationURL %>" method="post" name="fm">
<aui:input name="<%= Constants.CMD %>" type="hidden" value="<%= Constants.UPDATE %>" />
<!-- Application URL -->
<aui:field-wrapper cssClass="field-group">
<aui:input style="width: 100%;"
name="preferences--appURL--"
type="text"
cssClass="text long-field"
showRequiredLabel="true"
label="Application URL"
inlineField="true"
inlineLabel="left"
placeholder="Application URL"
helpMessage="Actual endpoint of the external web-application (must start with https://)"
value="<%= appURL_cfg %>"
required="true" />
</aui:field-wrapper>
<!-- Application URL Parameter name -->
<aui:field-wrapper cssClass="field-group">
<aui:input
type="text"
name="preferences--appURLTokenParam--"
cssClass="text medium-field"
label="Application URL Parameter name"
inlineField="true"
inlineLabel="left"
placeholder="Parameter name"
helpMessage="Name of the Parameter (e.g gcube-token) expected by the web-application in the URL"
value="<%= appURLTokenParam_cfg %>"/>
</aui:field-wrapper>
<!-- Application URL Parameter name -->
<aui:field-wrapper cssClass="field-group">
<aui:input
type="text"
name="preferences--iFrameHeightParam--"
cssClass="text medium-field"
label="iFrame height as integer in pixels"
inlineField="true"
inlineLabel="left"
placeholder="in Pixels"
helpMessage="Enter the height in pixels of the iFrame Height (default 1000)"
value="<%= iFrameHeightParam_cfg %>"/>
</aui:field-wrapper>
<aui:button-row>
<aui:button type="submit" />
</aui:button-row>
</aui:form>