{% use "form_div_layout.html.twig" %} {# Widgets #} {% block form_widget_simple -%} {% if type is not defined or type not in ['file', 'hidden'] %} {%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%} {% endif %} {{- parent() -}} {%- endblock form_widget_simple %} {% block textarea_widget -%} {% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) %} {{- parent() -}} {%- endblock textarea_widget %} {% block button_widget -%} {% set attr = attr|merge({class: (attr.class|default('btn-default') ~ ' btn')|trim}) %} {{- parent() -}} {%- endblock %} {% block money_widget -%}
{{ form_label(form.years) }} | {% endif -%} {%- if with_months %}{{ form_label(form.months) }} | {% endif -%} {%- if with_weeks %}{{ form_label(form.weeks) }} | {% endif -%} {%- if with_days %}{{ form_label(form.days) }} | {% endif -%} {%- if with_hours %}{{ form_label(form.hours) }} | {% endif -%} {%- if with_minutes %}{{ form_label(form.minutes) }} | {% endif -%} {%- if with_seconds %}{{ form_label(form.seconds) }} | {% endif -%}
---|---|---|---|---|---|---|
{{ form_widget(form.years) }} | {% endif -%} {%- if with_months %}{{ form_widget(form.months) }} | {% endif -%} {%- if with_weeks %}{{ form_widget(form.weeks) }} | {% endif -%} {%- if with_days %}{{ form_widget(form.days) }} | {% endif -%} {%- if with_hours %}{{ form_widget(form.hours) }} | {% endif -%} {%- if with_minutes %}{{ form_widget(form.minutes) }} | {% endif -%} {%- if with_seconds %}{{ form_widget(form.seconds) }} | {% endif -%}