<#-- ~ 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. --> <#include "/WEB-INF/freemarker/common/globals.ftl">
/view" title="Back to ${.globals.appName}">
Add a Page
<#list pageTemplates as pageTemplate> <#if pageTemplate.name == 'Empty'>
/addEmptyPage" method="post" onsubmit="return this.validate();">
Custom Page:
Name:
Layout: <#list pageLayouts as pageLayout> <#--TODO: unhardcode the 'columns_3', this should really be a database column in pageLayout to indicated the default layout -->
checked="checked" />
${pageLayout.displayName}
Predefined Pages:
<#else>
/addPredefinedPage" method="post">
${pageTemplate.name?xhtml}
<#-- display the logo if it exists, otherwise display the owner name make either linkable if an org url is supplied --> By: <#if pageTemplate.ownerTypeLogo??> <#if pageTemplate.ownerTypeUrl??><#if pageTemplate.ownerTypeUrl??> <#else> <#if pageTemplate.ownerTypeUrl??>${pageTemplate.ownerTypeValue?xhtml}<#if pageTemplate.ownerTypeUrl??>
${pageTemplate.description?xhtml}
Includes: <#-- list all of the gadgets on this page template --> <#list pageTemplate.allPageTemplateGadgets as pageTemplateGadget> ${pageTemplateGadget.gadget.title?xhtml}<#if pageTemplateGadget_has_next>,