
META-INF.resources.edit_calendar_resource.jsp Maven / Gradle / Ivy
<%--
/**
* 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" %>
<%
String redirect = ParamUtil.getString(request, "redirect");
CalendarResource calendarResource = (CalendarResource)request.getAttribute(CalendarWebKeys.CALENDAR_RESOURCE);
long calendarResourceId = 0;
List calendars = null;
if (calendarResource != null) {
calendarResourceId = calendarResource.getCalendarResourceId();
calendars = CalendarServiceUtil.getCalendarResourceCalendars(themeDisplay.getScopeGroupId(), calendarResourceId);
}
%>
<%
for (Calendar calendar : calendars) {
%>
<%
}
%>
function updateCalendarResource() {
submitForm(document. fm);
}
Liferay.Util.focusFormField(
document. fm. name
);
Liferay.Util.focusFormField(
document. fm
. <%= (calendarResource == null) ? "code" : "name" %>
);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy