12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- {% extends "TwigBundle::form.html.twig" %}
- {% block field_row %}
- <div class="symfony-form-row">
- {{ form_label(child) }}
- <div class="symfony-form-field">
- {{ form_field(child) }}
- <div class="symfony-form-errors">
- {{ form_errors(child) }}
- </div>
- </div>
- </div>
- {% endblock %}
- {% block label %}
- <label for="{{ field.id }}">
- {% trans label %}
- {% if field.required %}
- <span class="symfony-form-required" title="This field is required">*</span>
- {% endif %}
- </label>
- {% endblock label %}
- {% block errors %}
- {% if field.hasErrors %}
- <ul>
- {% for error in field.errors %}
- <li>{% trans error.messageTemplate with error.messageParameters from 'validators' %}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endblock errors %}
- {% block text_field %}
- {% if attr.type is defined and attr.type != "text" %}
- <input {{ block('field_attributes') }} value="{{ field.displayedData }}" />
- {% else %}
- {% set attr = attr|merge({ 'maxlength': attr.maxlength|default(field.maxlength) }) %}
- <input type="text" {{ block('field_attributes') }} value="{{ field.displayedData }}" />
- {% endif %}
- {% endblock text_field %}
- {% block password_field %}
- {% set attr = attr|merge({ 'maxlength': attr.maxlength|default(field.maxlength) }) %}
- <input type="password" {{ block('field_attributes') }} class="medium_txt" value="{{ field.displayedData }}" />
- {% endblock password_field %}
|