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
| {# | |
| this macro is for display all form errors(globals, fields errors) | |
| @param is_global have two values 1 and 2 | |
| 1 => for a global error | |
| 2 => for a field error | |
| #} | |
| {% macro all_form_errors(form, is_global) %} | |
| {% set is_global = is_global|default(1) %} | |
| {% for error in form.get('errors') %} | |
| <span style="display: block"> |
NewerOlder