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

<p>
    Administrative users listed here will have full access to the Admin Tools module located in the backend. Note that all
    backend administrative users have access to this module when the system is running in development mode.
</p>

<f:render partial="Generic/ConfigurationNotWritable" arguments="{_all}"/>

<f:if condition="{systemMaintainerIsDevelopmentContext}">
    <div class="alert alert-info">
        <div class="alert-message">
            This TYPO3 instance is set to "Development" context, all backend admin users
            can see the system maintenance related main module entries.
        </div>
    </div>
</f:if>

<div class="t3js-module-content" data-system-maintainer-write-token="{systemMaintainerWriteToken}">
    <div class="form-group">
        <div class="input-group flex-nowrap">
            <span class="input-group-text">System Maintainer:</span>
            <select-pure
                multiple
                default-label="Select system maintainers"
                {f:if(condition: '!{isWritable}', then: 'disabled')}
                class="t3js-systemMaintainer-select-pure">
                <f:for each="{users}" as="user">
                    <option-pure value="{user.uid}" {f:if(condition: user.isSystemMaintainer, then: 'selected')}>
                        {f:if(condition: user.disable, then: '[DISABLED] ')} {user.username}
                    </option-pure>
                </f:for>
            </select-pure>
        </div>
    </div>

    <div class="t3js-systemMaintainer-output"></div>
</div>

</html>
