dynamic Sidebar form v3 (SidebarWidget)
Dynamic Nationality 4 Insurance
This commit is contained in:
parent
8b2ec705c9
commit
88360eabb7
33 changed files with 604 additions and 275 deletions
|
|
@ -1,32 +1,15 @@
|
|||
{% form_theme search_form 'default/form/theme.html.twig' %}
|
||||
<div class="widget clearfix">
|
||||
<div class="widget-title">
|
||||
<a class="collapse-widget" href="#search-widget" data-toggle="collapse">Kulturreisen suchen</a>
|
||||
</div><!-- end title -->
|
||||
<div class="searchwidget collapse in" id="search-widget">
|
||||
<form action="/suche" method="get" class="searchform row st-search-form">
|
||||
|
||||
{% if search_form is defined %}
|
||||
{{ include('default/components/sidebar/searchSidebarWidget.html.twig') }}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
{{ form_field_pho(search_form.c, 'Reiseziel') }}
|
||||
</div>
|
||||
{# #WORKAROUND Overriding this block doesn't work, probably due to a Symfony bug, see ttSearch.html.twig #}
|
||||
{% elseif tt_search_form is defined %}
|
||||
{{ include('default/components/sidebar/ttSearchSidebarWidget.html.twig') }}
|
||||
{# END WORKAROUND #}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
<label for="b" style="display: none"></label>
|
||||
{{ form_field_pho(search_form.b, 'Anreise') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-12 form-bottom">
|
||||
<label for="e" style="display: none"></label>
|
||||
{{ form_field_pho(search_form.e, 'Abreise') }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group col-md-12 col-sm-12 col-xs-12 text-center form-bottom">
|
||||
<button type="submit" class="btn btn-primary btn-block">Angebote suchen</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div><!-- end boxwidget -->
|
||||
</div>
|
||||
{% elseif page is not empty %}
|
||||
{# #HACK Dont display the search in FEWO #}
|
||||
{% if page.title != 'Ferienwohnungen' %}
|
||||
{{ render(controller('AppBundle:Component:searchSidebarWidget', {page: page, title:widget.name})) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue