All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.instance.details.jsp Maven / Gradle / Ivy

The newest version!
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>

<%
CPInstanceDisplayContext cpInstanceDisplayContext = (CPInstanceDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);

CPDefinition cpDefinition = cpInstanceDisplayContext.getCPDefinition();
CPInstance cpInstance = cpInstanceDisplayContext.getCPInstance();
long cpInstanceId = cpInstanceDisplayContext.getCPInstanceId();
List cpDefinitionOptionRels = cpInstanceDisplayContext.getCPDefinitionOptionRels();

boolean neverExpire = ParamUtil.getBoolean(request, "neverExpire", true);

if ((cpInstance != null) && (cpInstance.getExpirationDate() != null)) {
	neverExpire = false;
}

boolean discontinued = BeanParamUtil.getBoolean(cpInstance, request, "discontinued");
%>




	
	
	
	
	

	
	
	

	
		
	

	
	
	

	
		
<% for (CPDefinitionOptionRel cpDefinitionOptionRel : cpDefinitionOptionRels) { List cpDefinitionOptionValueRels = cpInstanceDisplayContext.getCPDefinitionOptionValueRels(cpDefinitionOptionRel); StringJoiner stringJoiner = new StringJoiner(StringPool.COMMA); %>
<%= HtmlUtil.escape(cpDefinitionOptionRel.getName(languageId)) %> <% for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : cpDefinitionOptionValueRels) { stringJoiner.add(HtmlUtil.escape(cpDefinitionOptionValueRel.getName(languageId))); } %> <%= HtmlUtil.escape(stringJoiner.toString()) %>
<% } %>
<% cpInstanceDisplayContext.renderOptions(PipingServletResponseFactory.createPipingServletResponse(pageContext)); %>
0 0
0 0
<% String replacementAutocompleteWrapperCssClasses = "mb-8 pb-5"; if (!discontinued) { replacementAutocompleteWrapperCssClasses += " d-none"; } %>
<% boolean pending = false; if (cpInstance != null) { pending = cpInstance.isPending(); } %>
<% String saveButtonLabel = "save"; if ((cpInstance == null) || cpInstance.isDraft() || cpInstance.isApproved()) { saveButtonLabel = "save-as-draft"; } String publishButtonLabel = "publish"; if (WorkflowDefinitionLinkLocalServiceUtil.hasWorkflowDefinitionLink(themeDisplay.getCompanyId(), scopeGroupId, CPInstance.class.getName())) { publishButtonLabel = "submit-for-workflow"; } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy