Last active
August 29, 2015 14:14
-
-
Save Konafets/044e1f13f502773dd707 to your computer and use it in GitHub Desktop.
Fluid: ValidateErrorsViewHelper
This file contains 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="{property}"> | |
<f:if condition="{validationResults.flattenedErrors}"> | |
<ul class="validation-results"> | |
<f:alias map="{lll: 'LLL:EXT:extension_key/Resources/Private/Language/locallang_errors.xlf:error'}"> | |
<f:for each="{validationResults.errors}" as="error"> | |
<li class="error"> | |
<f:translate key="{lll}.{property}.{error.code}" | |
default="{f:translate(key:'{lll}.{property}', default:'{f:translate(key:\'{lll}.default\')}')}"/> | |
</li> | |
</f:for> | |
</f:alias> | |
</ul> | |
</f:if> | |
</f:form.validationResults> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment