META-INF.resources.instance.details.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.product.definitions.web
Show all versions of com.liferay.commerce.product.definitions.web
Liferay Commerce Product Definitions Web
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");
%>
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";
}
%>