<html
    xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
    xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
    data-namespace-typo3-fluid="true"
>

<f:layout name="Module" />

<f:section name="Content">

    <h1><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:movingElement" /></h1>
    <h3 class="mb-2">
        <span {recordTooltip -> f:format.raw()}><core:iconForRecord table="{table}" row="{elRow}" /></span>
        {recordTitle -> f:format.raw()}
    </h3>
    <div class="pt-2">
        <div class="form-check form-switch">
            <input type="checkbox" name="makeCopy" id="makeCopy" value="1" {f:if(condition: makeCopyChecked, then: 'checked')} class="form-check-input"
                    data-global-event="change" data-action-navigate="$data" data-navigate-value="{makeCopyUrl}">
            <label for="makeCopy" class="form-check-label"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:makeCopy" /></label>
        </div>
    </div>
    <h2><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:selectPositionOfElement" /></h2>
    <div>
        <f:if condition="{table} == 'pages'">
            <f:if condition="{goUpUrl}">
                <f:then>
                    <a href="{goUpUrl}"><core:icon identifier="actions-view-go-up" />{pidRecordTitle -> f:format.raw()}</a>
                </f:then>
                <f:else>
                    <f:if condition="{pidPageInfo}">
                        <core:iconForRecord table="pages" row="{pidPageInfo}" />
                    </f:if>
                    {pidRecordTitle -> f:format.raw()}
                </f:else>
            </f:if>
        </f:if>
        <f:if condition="{table} == 'tt_content'">
            <f:if condition="{pageInfo}">
                <span {ttContent.recordTooltip -> f:format.raw()}><core:iconForRecord table="pages" row="{pageInfo}" /></span>
            </f:if>
            {ttContent.recordTitle}<br />
            {contentElementColumns -> f:format.raw()}<br />
            <f:if condition="{pageInfo.pid} > 0">
                <f:if condition="{goUpUrl}">
                    <f:then>
                        <a href="{goUpUrl}"><core:icon identifier="actions-view-go-up" />{pidRecordTitle -> f:format.raw()}</a>
                    </f:then>
                    <f:else>
                        <core:iconForRecord table="pages" row="{pidPageInfo}" /> {pidRecordTitle -> f:format.raw()}
                    </f:else>
                </f:if>
            </f:if>
        </f:if>
    </div>
    {positionTree -> f:format.raw()}

</f:section>

</html>
