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

<f:be.pageRenderer includeRequireJsModules="{0: 'TYPO3/CMS/Install/BackendUserConfirmation'}" />

<div class="modal-backdrop in"></div>
<div class="modal modal-severity-warning modal-size-small" tabindex="-1" role="dialog" style="display: block;">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">
                    <f:if condition="{flagInstallToolPassword}">
                        <f:then>
                            <f:translate key="{languageFileReference}:sudoInstallToolPasswordConfirm" />
                        </f:then>
                        <f:else>
                            <f:translate key="{languageFileReference}:sudoUserPasswordConfirm" />
                        </f:else>
                    </f:if>
                </h4>
            </div>
            <div class="modal-body">
                <div>
                    <f:if condition="{flagInvalidPassword} || {isJsonRequest}">
                        <div class="alert alert-danger" id="invalid-sudo">
                            <f:translate key="{languageFileReference}:sudoPasswordInvalid" />
                        </div>
                    </f:if>
                    <f:form id="confirm-sudo" class="form" method="post" actionUri="{verifyUri}" absolute="true" additionalAttributes="{spellcheck: 'false'}">
                        <div class="form-group">
                            <div class="form-control-holder">
                                <label for="confirmationPassword">
                                    <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang.xlf:login.password" />
                                </label>
                                <f:variable name="autocomplete" value="{f:if(condition: flagInstallToolPassword, then: 'section-install current-password', else: 'current-password')}" />
                                <f:form.password name="confirmationPassword" id="confirmationPassword" class="form-control"
                                                additionalAttributes="{required: 'required', autocomplete: autocomplete}" />
                                <f:form.hidden name="flags" value="{flags}" />
                            </div>
                        </div>
                    </f:form>
                    <div class="text-end">
                        <a href="{passwordModeUri}">
                            <f:if condition="{flagInstallToolPassword}">
                                <f:then>
                                    <f:translate key="{languageFileReference}:sudoUserPasswordMode" />
                                </f:then>
                                <f:else>
                                    <f:translate key="{languageFileReference}:sudoInstallToolPasswordMode" />
                                </f:else>
                            </f:if>
                        </a>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" form="confirm-sudo" class="btn btn-warning" role="button">
                    <f:translate key="{languageFileReference}:confirm" />
                </button>
            </div>
        </div>
    </div>
</div>

</html>
