<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.infobox state="{f:constant(name: 'TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::WARNING')}" disableIcon="true">
    <div class="form-check">
        <input
            type="radio"
            class="form-check-input"
            id="t3-install-tool-configuration-passwordHashing-custom"
            name="install[values][{feature.name}][enable]"
            value="{preset.name}"
            disabled="disabled"
            {f:if(condition: preset.isActive, then:'checked="checked"')}
        />
        <label for="t3-install-tool-configuration-passwordHashing-custom" class="form-check-label">
            <strong>Custom configuration</strong> {f:if(condition: preset.isActive, then:' [Active]')}
        </label>
    </div>
    <p>Custom password hash settings. This interface does not allow modification of the values, they are just shown.
        Configuring custom hash settings is for advanced users who know exactly what they are doing. Refer to the
        core <be:link.documentation identifier="t3coreapi:password-hashing" class="text-decoration-underline">documentation</be:link.documentation> for details.</p>
    <f:for each="{preset.configurationDescriptors}" as="configuration" key="configurationKey">
        <div class="row mb-3">
            <label class="col-sm-6 col-form-label" for="{feature.name}{preset.name}{configurationKey}">{configurationKey}</label>
            <div class="col-sm-6">
                <f:render partial="Settings/ReadonlyInfo" arguments="{configuration: configuration}" />
                <input
                    id="{feature.name}{preset.name}{configurationKey}"
                    type="text"
                    name="install[values][{feature.name}][{preset.name}][{configurationKey}]"
                    value="{configuration.value}"
                    class="form-control t3js-custom-preset"
                    data-radio="t3-install-tool-configuration-passwordHashing-custom"
                    {f:if(condition: '!{isWritable} || {configuration.readonly}', then: 'disabled')}
                    />
            </div>
        </div>
    </f:for>
</f:be.infobox>

</html>
