<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#-- cms menu bar -->
<#if (content?has_content)> ${uiLabelMap.ContentQuickSubContent} ${uiLabelMap.ContentPathAlias} ${uiLabelMap.ContentMetaTags}
<#-- content info --> <#if (!content?has_content)>
${uiLabelMap.CommonNew} ${contentAssocTypeId?default("SUBSITE")} ${uiLabelMap.ContentWebSiteAttachedToContent} ${contentIdFrom?default(contentRoot)}
<#-- dataResourceTypeId --> <#if (!dataResourceTypeId?has_content)> <#if (dataResource?has_content)> <#assign dataResourceTypeId = dataResource.dataResourceTypeId/> <#elseif (content?has_content)> <#assign dataResourceTypeId = "NONE"/> <#else>
<#list 0..15 as x>
${uiLabelMap.ContentDataType}
${uiLabelMap.CommonContinue}
 
<#-- form action --> <#if (dataResourceTypeId?has_content)> <#assign actionSuffix = "ContentCms"/> <#if (dataResourceTypeId == "NONE" || (content?has_content && !content.dataResourceId?has_content))> <#assign actionMiddle = ""/> <#else> <#if (dataResourceTypeId?ends_with("_OBJECT"))> <#assign actionMiddle = "Object"/> <#else> <#assign actionMiddle = "Text"/> <#if (!contentRoot?has_content)> <#assign contentRoot = parameters.contentRoot/> <#if (currentPurposes?has_content)> <#assign currentPurpose = Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(currentPurposes) /> <#if (content?has_content)> <#assign actionPrefix = "/update"/> <#else> <#assign actionPrefix = "/create"/> <#assign formAction = actionPrefix + actionMiddle + actionSuffix/> <#else> <#assign formAction = "javascript:void(0);"/> <#-- main content form --> <#if (dataResourceTypeId?has_content)>
<#if (content?has_content)> <#list requestParameters.keySet() as paramName> <#if (paramName == 'contentIdFrom' || paramName == 'contentAssocTypeId' || paramName == 'fromDate')> <#else> <#if (dataResourceTypeId != 'IMAGE_OBJECT' && dataResourceTypeId != 'OTHER_OBJECT' && dataResourceTypeId != 'LOCAL_FILE' && dataResourceTypeId != 'OFBIZ_FILE' && dataResourceTypeId != 'VIDEO_OBJECT' && dataResourceTypeId != 'AUDIO_OBJECT')> <#if (dataResourceTypeId != 'NONE')> <#if (dataResourceTypeId == 'IMAGE_OBJECT' || dataResourceTypeId == 'OTHER_OBJECT' || dataResourceTypeId == 'LOCAL_FILE' || dataResourceTypeId == 'OFBIZ_FILE' || dataResourceTypeId == 'VIDEO_OBJECT' || dataResourceTypeId == 'AUDIO_OBJECT')> <#else> <#if (content?has_content)> <#-- this all depends on the dataResourceTypeId which was selected --> <#if (dataResourceTypeId == 'IMAGE_OBJECT' || dataResourceTypeId == 'OTHER_OBJECT' || dataResourceTypeId == 'LOCAL_FILE' || dataResourceTypeId == 'OFBIZ_FILE' || dataResourceTypeId == 'VIDEO_OBJECT' || dataResourceTypeId == 'AUDIO_OBJECT')> <#elseif (dataResourceTypeId == 'URL_RESOURCE')> <#elseif (dataResourceTypeId == 'SHORT_TEXT')> <#elseif (dataResourceTypeId == 'ELECTRONIC_TEXT')>
${uiLabelMap.FormFieldTitle_contentId} ${content.contentId}
${uiLabelMap.CommonName}
${uiLabelMap.CommonDescription}
${uiLabelMap.ContentMapKey}
${uiLabelMap.CommonPurpose}
${uiLabelMap.CommonSequenceNum}
${uiLabelMap.ContentDataType}
${uiLabelMap.ContentDecorator}
${uiLabelMap.ContentTemplate}
${uiLabelMap.CommonStatus}
${uiLabelMap.FormFieldTitle_isPublic}
<#if ((content.contentId)?has_content)> <@renderContentAsText contentId="${content.contentId}" ignoreTemplate="true"/>
${uiLabelMap.CommonUpload}
${uiLabelMap.ContentUrl}
${uiLabelMap.ContentText}
${uiLabelMap.CommonSave}