Created
January 31, 2014 05:25
-
-
Save tvl83/8726990 to your computer and use it in GitHub Desktop.
FOSUserBundle adapting it to my own uses with a custom form. I am running into issues with the translator. I opted to just remove all traces of trans({}, translation_domain) and things are beginning to work. However, I just ran into another issue with line 81 of `form_div_layout.html.twig` which is line 14 below. {{ separator }}. instead of just…
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
| An exception has been thrown during the rendering of a template ("Error parsing YAML.") in kernel.root_dir/Resources/views/forms.html.twig at line 81. | |
| 500 Internal Server Error - Twig_Error_Runtime | |
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
| {% block choice_widget_collapsed %} | |
| {% spaceless %} | |
| {% if required and empty_value is none and not empty_value_in_choices %} | |
| {% set required = false %} | |
| {% endif %} | |
| <select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}> | |
| {% if empty_value is not none %} | |
| <option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option> | |
| {% endif %} | |
| {% if preferred_choices|length > 0 %} | |
| {% set options = preferred_choices %} | |
| {{ block('choice_widget_options') }} | |
| {% if choices|length > 0 and separator is not none %} | |
| <option disabled="disabled">{{ separator }}</option> | |
| {% endif %} | |
| {% endif %} | |
| {% set options = choices %} | |
| {{ block('choice_widget_options') }} | |
| </select> | |
| {% endspaceless %} | |
| {% endblock choice_widget_collapsed %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment