
META-INF.resources.edit_organization.jsp Maven / Gradle / Ivy
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/init.jsp" %>
<%
String redirect = ParamUtil.getString(request, "redirect");
String backURL = ParamUtil.getString(request, "backURL", redirect);
long organizationId = ParamUtil.getLong(request, "organizationId");
Organization organization = OrganizationServiceUtil.fetchOrganization(organizationId);
long parentOrganizationId = ParamUtil.getLong(request, "parentOrganizationSearchContainerPrimaryKeys", (organization != null) ? organization.getParentOrganizationId() : OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID);
String type = BeanParamUtil.getString(organization, request, "type");
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(backURL);
String headerTitle = null;
if (organization != null) {
headerTitle = LanguageUtil.format(request, "edit-x", organization.getName(), false);
}
else if (Validator.isNotNull(type)) {
headerTitle = LanguageUtil.format(request, "add-x", type);
}
else {
headerTitle = LanguageUtil.get(request, "add-organization");
}
renderResponse.setTitle(headerTitle);
%>
<%
request.setAttribute("addresses.className", Organization.class.getName());
request.setAttribute("addresses.classPK", organizationId);
request.setAttribute("emailAddresses.className", Organization.class.getName());
request.setAttribute("emailAddresses.classPK", organizationId);
request.setAttribute("phones.className", Organization.class.getName());
request.setAttribute("phones.classPK", organizationId);
request.setAttribute("websites.className", Organization.class.getName());
request.setAttribute("websites.classPK", organizationId);
%>
<%
long logoId = organization.getLogoId();
%>
<%= HtmlUtil.escape(organization.getName()) %>
function createURL(href, value, onclick) {
return '' + value + '';
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy