|
@@ -1,18 +1,15 @@
|
|
-{% block field_rows %}
|
|
|
|
-{% spaceless %}
|
|
|
|
- {{ form_errors(form) }}
|
|
|
|
- {% for child in form %}
|
|
|
|
- {{ form_row(child) }}
|
|
|
|
- {% endfor %}
|
|
|
|
-{% endspaceless %}
|
|
|
|
-{% endblock field_rows %}
|
|
|
|
-
|
|
|
|
{% block field_enctype %}
|
|
{% block field_enctype %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
{% if multipart %}enctype="multipart/form-data"{% endif %}
|
|
{% if multipart %}enctype="multipart/form-data"{% endif %}
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock field_enctype %}
|
|
{% endblock field_enctype %}
|
|
|
|
|
|
|
|
+{% block field_label %}
|
|
|
|
+{% spaceless %}
|
|
|
|
+ <label for="{{ id }}"{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>{{ label|trans }}</label>
|
|
|
|
+{% endspaceless %}
|
|
|
|
+{% endblock field_label %}
|
|
|
|
+
|
|
{% block field_errors %}
|
|
{% block field_errors %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
{% if errors|length > 0 %}
|
|
{% if errors|length > 0 %}
|
|
@@ -25,6 +22,15 @@
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock field_errors %}
|
|
{% endblock field_errors %}
|
|
|
|
|
|
|
|
+{% block field_rows %}
|
|
|
|
+{% spaceless %}
|
|
|
|
+ {{ form_errors(form) }}
|
|
|
|
+ {% for child in form %}
|
|
|
|
+ {{ form_row(child) }}
|
|
|
|
+ {% endfor %}
|
|
|
|
+{% endspaceless %}
|
|
|
|
+{% endblock field_rows %}
|
|
|
|
+
|
|
{% block field_rest %}
|
|
{% block field_rest %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
{% for child in form %}
|
|
{% for child in form %}
|
|
@@ -35,12 +41,6 @@
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock field_rest %}
|
|
{% endblock field_rest %}
|
|
|
|
|
|
-{% block field_label %}
|
|
|
|
-{% spaceless %}
|
|
|
|
- <label for="{{ id }}"{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>{{ label|trans }}</label>
|
|
|
|
-{% endspaceless %}
|
|
|
|
-{% endblock field_label %}
|
|
|
|
-
|
|
|
|
{% block attributes %}
|
|
{% block attributes %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
id="{{ id }}" name="{{ full_name }}"{% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if max_length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}
|
|
id="{{ id }}" name="{{ full_name }}"{% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if max_length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}
|
|
@@ -50,11 +50,20 @@
|
|
|
|
|
|
{% block container_attributes %}
|
|
{% block container_attributes %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
- id="{{ id }}"
|
|
|
|
|
|
+ id="{{ id }}"
|
|
{% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %}
|
|
{% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %}
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock container_attributes %}
|
|
{% endblock container_attributes %}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+{% block form_widget %}
|
|
|
|
+{% spaceless %}
|
|
|
|
+ <div {{ block('container_attributes') }}>
|
|
|
|
+ {{ block('field_rows') }}
|
|
|
|
+ {{ form_rest(form) }}
|
|
|
|
+ </div>
|
|
|
|
+{% endspaceless %}
|
|
|
|
+{% endblock form_widget %}
|
|
|
|
+
|
|
{% block field_widget %}
|
|
{% block field_widget %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
{% set type = type|default('text') %}
|
|
{% set type = type|default('text') %}
|
|
@@ -245,7 +254,6 @@
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock repeated_row %}
|
|
{% endblock repeated_row %}
|
|
|
|
|
|
-
|
|
|
|
{% block field_row %}
|
|
{% block field_row %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
<div>
|
|
<div>
|
|
@@ -256,15 +264,6 @@
|
|
{% endspaceless %}
|
|
{% endspaceless %}
|
|
{% endblock field_row %}
|
|
{% endblock field_row %}
|
|
|
|
|
|
-{% block form_widget %}
|
|
|
|
-{% spaceless %}
|
|
|
|
- <div {{ block('container_attributes') }}>
|
|
|
|
- {{ block('field_rows') }}
|
|
|
|
- {{ form_rest(form) }}
|
|
|
|
- </div>
|
|
|
|
-{% endspaceless %}
|
|
|
|
-{% endblock form_widget %}
|
|
|
|
-
|
|
|
|
{% block email_widget %}
|
|
{% block email_widget %}
|
|
{% spaceless %}
|
|
{% spaceless %}
|
|
{% set type = type|default('email') %}
|
|
{% set type = type|default('email') %}
|