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

<f:be.infobox state="{f:if(condition:'{preset.isAvailable}', then:'0', else:'2')}" disableIcon="true">
    <div class="form-check">
        <input
            type="radio"
            class="form-check-input"
            id="t3-install-tool-configuration-mail-sendmail"
            name="install[values][{feature.name}][enable]"
            value="{preset.name}"
            {f:if(condition: '{preset.isAvailable} && {isWritable}', then:'', else:'disabled="disabled"')}
            {f:if(condition: preset.isActive, then:'checked="checked"')}
        />
        <label for="t3-install-tool-configuration-mail-sendmail" class="form-check-label">
            <strong>Import sendmail command from PHP settings</strong> {f:if(condition: preset.isActive, then:' [Active]')}
        </label>
    </div>
    <f:if condition="{preset.isAvailable}">
        <f:then>
            <p>If you enable this setting the sendmail command will be set to:</p>
            <p><pre>{preset.sendmailPath}</pre></p>
        </f:then>
        <f:else>
            <p>Sendmail was not found in your PHP settings.</p>
        </f:else>
    </f:if>
</f:be.infobox>

</html>
