<@_metadata path=path><#assign a=object/></@_metadata>
<form method="post" autocomplete="off" action="cmsPage/save?rel=pageBox" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
    <input type="hidden" name="_csrf" value="<@_csrfToken admin=true/>"/>
    <div class="formBar">
        <ul>
            <li>
                <#if (a.extendList)?has_content><button type="submit" class="buttonActive"><@t.page 'button.save'/></button></#if>
            </li>
        </ul>
    </div>
    <div class="pageFormContent" layoutH>
        <input name="path" type="hidden" value="${path}"/>
        <#if site.useStatic&&(a.publishPath)?has_content>
            <dl class="nowrap">
                <dt><@t.page 'static_page'/>:</dt>
                <dd>
                    <label><a class="button" href="cmsTemplate/publish?path=${path}&_csrf=<@_csrfToken admin=true/>" target="ajaxTodo"><@t.page 'publish_page'/></a></label>
                    <label><a class="button" href="${site.sitePath+(a.publishPath?starts_with('/'))?then(a.publishPath?keep_after('/'),a.publishPath)}" target="_blank"><@t.page 'button.view_page'/></a></label>
                </dd>
            </dl>
        </#if>
        <#if !a?has_content||a.useDynamic?has_content&&a.useDynamic>
            <dl class="nowrap">
                <dt><@t.page 'dynamic_page'/>:</dt>
                <dd>
                    <label><a class="button" href="${site.dynamicPath+(path?starts_with('/'))?then(path?keep_after('/'),path)}<#if a.acceptParameters?has_content>?<#list a.acceptParameters?split(',') as p>${p}=<#if 'content'=(a.parameterTypeMap[p].type)!><@_contentList pageSize=1><#list page.list as a>${a.id}</#list></@_contentList><#elseif 'category'=(a.parameterTypeMap[p].type)!><@_categoryList pageSize=1><#list page.list as a>${a.id}</#list></@_categoryList></#if><#sep>&</#list></#if>" target="_blank"><@t.page 'button.view_page'/></a></label>
                    <#if 0 lte (a.cacheTime)!0>
                        <label><a class="button" href="cmsPage/clearCache?path=${path}&_csrf=<@_csrfToken admin=true/>" target="ajaxTodo"><@t.page 'button.clear_cache'/></a></label>
                    </#if>
                </dd>
            </dl>
        </#if>
    <@_templatePlaceList path=path>
        <#if list?has_content>
        <dl class="nowrap">
            <dt><@t.page 'place'/>:</dt>
            <dd>
                <#list list as a>
                    <@_placeMetadata path=a>
                <#if 0=((object.size)!0)>
                    <p>
                        <a href="cmsPlace/publish_place.html?path=${a?url}" target="dialog" mask="true">${(object.alias)!a}</a>
                    </p>
                <#else>
                    <p>
                        <a href="cmsPlace/dataList.html?path=${a?url}" target="navTab" rel="cmsPlace/dataList:${a!}"><@t.page 'place_data.place'/>:${(object.alias)!a}</a>
                    </p>
                </#if>
                    </@_placeMetadata>
                </#list>
            </dd>
        </dl>
        </#if>
    </@_templatePlaceList>
        <#include "../include_page/extendData.html"/>
        <#assign extendList=(a.extendList)![]/>
        <#assign attribute=(a.extendData)!{}/>
        <@extendData 'extendDataList' extendList attribute/>
    </div>
</form>