<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
<div id="{form.identifier}">
    <f:if condition="{isPreparedMessage}">
        <f:then>
            <div class="alert alert-danger" role="alert">
                {message -> f:format.raw()}
            </div>
        </f:then>
        <f:else>
            <div class="alert alert-success" role="alert">
                {message -> f:format.nl2br()}
            </div>
        </f:else>
    </f:if>
</div>
</html>
