thematic-gateways-portlet/src/main/webapp/html/thematic-gateways-portlet/config.jsp

47 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-10-23 18:17:54 +02:00
<%@include file="../init.jsp"%>
<liferay-portlet:actionURL portletConfiguration="true"
var="configurationURL" />
Here you can customise the text to show on top
<%
String defaultText = "The following Infrastructure Gateways serve a number of Research Communities, each of which having a specific scientific domain and dedicated Virtual Research Environments / Virtual Laboratories.";
2019-10-24 17:35:57 +02:00
String thematicGatewayIntro_cfg = GetterUtil
.getString(portletPreferences.getValue("thematicGatewayIntro", defaultText));
String sitesIdToExclude_cfg = GetterUtil
.getString(portletPreferences.getValue("sitesIdToExclude", StringPool.BLANK));
boolean orderPerVRENumber_cfg = GetterUtil
.getBoolean(portletPreferences.getValue("orderPerVRENumber", StringPool.FALSE));
2019-10-23 18:17:54 +02:00
%>
2019-10-24 17:35:57 +02:00
2019-10-23 18:17:54 +02:00
<aui:form action="<%=configurationURL%>" method="post" name="fm">
<aui:input name="<%=Constants.CMD%>" type="hidden"
value="<%=Constants.UPDATE%>" />
2019-10-24 17:35:57 +02:00
<aui:input style="width: 100%;"
name="preferences--thematicGatewayIntro--" type="text"
cssClass="text long-field" showRequiredLabel="true"
label="Enter the text you want to display" inlineField="false"
inlineLabel="left" placeholder="thematic Gateway Introductory text"
2019-10-23 18:17:54 +02:00
helpMessage="thematic Gateway Introductory text"
2019-10-24 17:35:57 +02:00
value="<%=thematicGatewayIntro_cfg%>" required="false">
2019-10-23 18:17:54 +02:00
</aui:input>
2019-10-24 17:35:57 +02:00
<aui:input style="width: 100%;" name="preferences--sitesIdToExclude--"
type="text" cssClass="text long-field" showRequiredLabel="true"
label="Enter the Site ID of the Sites to exclude" inlineField="false"
inlineLabel="left" placeholder="comma separated groupIds"
helpMessage="Enter the Site ID of the Sites (gateway Site) you want to exclude, comma separated"
value="<%=sitesIdToExclude_cfg%>" required="false">
</aui:input>
<aui:input
helpMessage="Check if you want to order the Gateways per number of VREs they contain (more on top)"
label="Order the Gateways per number of VREs (Default Alphabetically)"
name="preferences--orderPerVRENumber--" type="checkbox"
value="<%=orderPerVRENumber_cfg%>" />
2019-10-23 18:17:54 +02:00
<aui:button-row>
<aui:button type="submit" />
</aui:button-row>
</aui:form>