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

<f:if condition="{editLockState}">
    <f:then>
        <button type="button"
                class="editlock btn btn-sm btn-default"
                title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock_descr')}"
                data-page="{pageId}"
                data-lockstate="1"
        >
            <core:icon identifier="actions-lock" size="small" />
        </button>
    </f:then>
    <f:else>
        <button type="button"
                class="editlock btn btn-sm btn-default"
                title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock_descr2')}"
                data-page="{pageId}"
                data-lockstate="0"
        >
            <core:icon identifier="actions-unlock" size="small" />
        </button>
    </f:else>
</f:if>

</html>
