|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
{% block form_widget_simple %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('text') %}
|
|
|
+ {% set type = type|jquery_mobile('text') %}
|
|
|
{% if attr.prepend_input is defined and attr.append_input is defined and attr.prepend_input is not empty and attr.append_input is not empty %}
|
|
|
{{ block('form_widget_prepend_append_input') }}
|
|
|
{% elseif attr.prepend_input is defined and attr.prepend_input is not empty %}
|
|
@@ -200,14 +200,14 @@
|
|
|
{% block number_widget %}
|
|
|
{% spaceless %}
|
|
|
{# type="number" doesn't work with floats #}
|
|
|
- {% set type = type|default('text') %}
|
|
|
+ {% set type = type|jquery_mobile('text') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock number_widget %}
|
|
|
|
|
|
{% block integer_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('number') %}
|
|
|
+ {% set type = type|jquery_mobile('number') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock integer_widget %}
|
|
@@ -220,43 +220,43 @@
|
|
|
|
|
|
{% block url_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('url') %}
|
|
|
+ {% set type = type|jquery_mobile('url') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock url_widget %}
|
|
|
|
|
|
{% block search_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set attr = attr|merge({'class': (attr.class|default('') ~ ' search-query')|trim}) %}
|
|
|
- {% set type = type|default('search') %}
|
|
|
+ {% set attr = attr|merge({'class': (attr.class|jquery_mobile('') ~ ' search-query')|trim}) %}
|
|
|
+ {% set type = type|jquery_mobile('search') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock search_widget %}
|
|
|
|
|
|
{% block percent_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('text') %}
|
|
|
+ {% set type = type|jquery_mobile('text') %}
|
|
|
{{ block('form_widget_simple') }} %
|
|
|
{% endspaceless %}
|
|
|
{% endblock percent_widget %}
|
|
|
|
|
|
{% block password_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('password') %}
|
|
|
+ {% set type = type|jquery_mobile('password') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock password_widget %}
|
|
|
|
|
|
{% block hidden_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('hidden') %}
|
|
|
+ {% set type = type|jquery_mobile('hidden') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock hidden_widget %}
|
|
|
|
|
|
{% block email_widget %}
|
|
|
{% spaceless %}
|
|
|
- {% set type = type|default('email') %}
|
|
|
+ {% set type = type|jquery_mobile('email') %}
|
|
|
{{ block('form_widget_simple') }}
|
|
|
{% endspaceless %}
|
|
|
{% endblock email_widget %}
|
|
@@ -269,10 +269,10 @@
|
|
|
{% set label_attr = label_attr|merge({'for': id}) %}
|
|
|
{% endif %}
|
|
|
{% if required %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' required')|trim}) %}
|
|
|
{% endif %}
|
|
|
{% if form_type is defined and form_type == 'horizontal' %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' control-label')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' control-label')|trim}) %}
|
|
|
{% endif %}
|
|
|
{% if label is empty %}
|
|
|
{% set label = name|humanize %}
|
|
@@ -286,12 +286,12 @@
|
|
|
{% if not compound %}
|
|
|
{% set label_attr = label_attr|merge({'for': id}) %}
|
|
|
{% endif %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' checkbox')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' checkbox')|trim}) %}
|
|
|
{% if attr.inline is defined and attr.inline %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' inline')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' inline')|trim}) %}
|
|
|
{% endif %}
|
|
|
{% if required %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' required')|trim}) %}
|
|
|
{% endif %}
|
|
|
{% if label is empty %}
|
|
|
{% set label = name|humanize %}
|
|
@@ -307,9 +307,9 @@
|
|
|
{% if not compound %}
|
|
|
{% set label_attr = label_attr|merge({'for': id}) %}
|
|
|
{% endif %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' radio')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' radio')|trim}) %}
|
|
|
{% if required %}
|
|
|
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
|
|
|
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|jquery_mobile('') ~ ' required')|trim}) %}
|
|
|
{% endif %}
|
|
|
{% if label is empty %}
|
|
|
{% set label = name|humanize %}
|
|
@@ -497,4 +497,4 @@ placed inside the label. See checkbox_label block.
|
|
|
{% block field_enctype %}{{ block('form_enctype') }}{% endblock %}
|
|
|
{% block field_errors %}{{ block('form_errors') }}{% endblock %}
|
|
|
{% block field_rest %}{{ block('form_rest') }}{% endblock %}
|
|
|
-{% block field_rows %}{{ block('form_rows') }}{% endblock %}
|
|
|
+{% block field_rows %}{{ block('form_rows') }}{% endblock %}
|