META-INF.resources.country.regions.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" %>
<%
SearchContainer regionSearchContainer = RegionSearchContainerFactory.create(liferayPortletRequest, liferayPortletResponse);
%>
<%
List availableActions = new ArrayList<>();
availableActions.add("deleteRegions");
if (region.getActive()) {
availableActions.add("deactivateRegions");
}
else {
availableActions.add("activateRegions");
}
row.setData(
HashMapBuilder.put(
"actions", StringUtil.merge(availableActions)
).build());
%>
<%
if (!PortalPermissionUtil.contains(permissionChecker, ActionKeys.MANAGE_COUNTRIES)) {
rowURL = null;
}
%>