|
94 | 94 | {%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
|
95 | 95 | <div {{ block('widget_container_attributes') }}>
|
96 | 96 | {{- form_errors(form) -}}
|
97 |
| - {%- if with_years %}{{ form_widget(form.years) }}{% endif -%} |
98 |
| - {%- if with_months %}{{ form_widget(form.months) }}{% endif -%} |
99 |
| - {%- if with_weeks %}{{ form_widget(form.weeks) }}{% endif -%} |
100 |
| - {%- if with_days %}{{ form_widget(form.days) }}{% endif -%} |
101 |
| - {%- if with_hours %}{{ form_widget(form.hours) }}{% endif -%} |
102 |
| - {%- if with_minutes %}{{ form_widget(form.minutes) }}{% endif -%} |
103 |
| - {%- if with_seconds %}{{ form_widget(form.seconds) }}{% endif -%} |
| 97 | + <div class="table-responsive"> |
| 98 | + <table class="table {{ table_class|default('table-bordered table-condensed table-striped') }}"> |
| 99 | + <thead> |
| 100 | + <tr> |
| 101 | + {%- if with_years %}<th>{{ form_label(form.years) }}</th>{% endif -%} |
| 102 | + {%- if with_months %}<th>{{ form_label(form.months) }}</th>{% endif -%} |
| 103 | + {%- if with_weeks %}<th>{{ form_label(form.weeks) }}</th>{% endif -%} |
| 104 | + {%- if with_days %}<th>{{ form_label(form.days) }}</th>{% endif -%} |
| 105 | + {%- if with_hours %}<th>{{ form_label(form.hours) }}</th>{% endif -%} |
| 106 | + {%- if with_minutes %}<th>{{ form_label(form.minutes) }}</th>{% endif -%} |
| 107 | + {%- if with_seconds %}<th>{{ form_label(form.seconds) }}</th>{% endif -%} |
| 108 | + </tr> |
| 109 | + </thead> |
| 110 | + <tbody> |
| 111 | + <tr> |
| 112 | + {%- if with_years %}<td>{{ form_widget(form.years) }}</td>{% endif -%} |
| 113 | + {%- if with_months %}<td>{{ form_widget(form.months) }}</td>{% endif -%} |
| 114 | + {%- if with_weeks %}<td>{{ form_widget(form.weeks) }}</td>{% endif -%} |
| 115 | + {%- if with_days %}<td>{{ form_widget(form.days) }}</td>{% endif -%} |
| 116 | + {%- if with_hours %}<td>{{ form_widget(form.hours) }}</td>{% endif -%} |
| 117 | + {%- if with_minutes %}<td>{{ form_widget(form.minutes) }}</td>{% endif -%} |
| 118 | + {%- if with_seconds %}<td>{{ form_widget(form.seconds) }}</td>{% endif -%} |
| 119 | + </tr> |
| 120 | + </tbody> |
| 121 | + </table> |
| 122 | + </div> |
104 | 123 | {%- if with_invert %}{{ form_widget(form.invert) }}{% endif -%}
|
105 | 124 | </div>
|
106 | 125 | {%- endif -%}
|
|
0 commit comments