Created
November 19, 2013 08:47
-
-
Save kaystrobach/7542276 to your computer and use it in GitHub Desktop.
#TYPO3 #FLOW Translated Form Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:form.validationResults for="{for}"> | |
<f:if condition="{validationResults.flattenedErrors}"> | |
<div class="alert alert-danger alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" title="Schließen">×</button> | |
<p> | |
Leider waren einige Eingaben im Formular nicht korrekt. | |
</p> | |
<f:for each="{validationResults.flattenedErrors}" key="propertyPath" as="errors"> | |
<div class="row"> | |
<div class="col-md-3"> | |
<p class="text-right"> | |
<f:translate>{propertyPath}</f:translate> | |
</p> | |
</div> | |
<div class="col-md-9"> | |
<f:for each="{errors}" as="error"> | |
<p class="text-left"> | |
<f:translate id="{error.code}" package="TYPO3.Flow" source="ValidationErrors" arguments="{error.arguments}">{error.code}</f:translate> | |
<span class="glyphicon glyphicon-info-sign" title="{error.severity} {error.code}: {error}"></span> | |
</p> | |
</f:for> | |
</div> | |
</div> | |
</f:for> | |
</div> | |
</f:if> | |
</f:form.validationResults> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment