Improved code

bzr revid: psa@tinyerp.com-20130829135602-gbsa5k1hp7qtnwv6
This commit is contained in:
Paramjit Singh Sahota
2013-08-29 19:26:02 +05:30
parent 8d250bea6c
commit 00ffaf44df
@@ -36,17 +36,21 @@
<t t-set="classname">pull-left</t>
</t>
<form action="/references/" method="get" class="navbar-search pull-right pagination">
<div class="form-group">
<input type="text" name="search" class="search-query col-md-4" placeholder="Search" t-att-value="searches.get('search') or '' or ''" />
<select class="search-query col-md-4 mt4" name="country" t-if="len(countries) > 1" onchange="submit()">
<t t-foreach="countries">
<t t-if="country_id">
<option t-att-selected="searches.get('country') == str(country_id and country_id[0]) and 'selected'" t-att-value="country_id[0]">
<t t-esc="country_id[1]"/> (<t t-esc="country_id_count"/>)
</option>
<div class="col-md-10">
<div class="col-md-5">
<input type="text" name="search" class="search-query form-control" placeholder="Search" t-att-value="searches.get('search') or '' or ''" />
</div>
<div class="col-lg-5">
<select class="search-query mt4 form-control" name="country" t-if="len(countries) > 1" onchange="submit()">
<t t-foreach="countries">
<t t-if="country_id">
<option t-att-selected="searches.get('country') == str(country_id and country_id[0]) and 'selected'" t-att-value="country_id[0]">
<t t-esc="country_id[1]"/> (<t t-esc="country_id_count"/>)
</option>
</t>
</t>
</t>
</select>
</select>
</div>
</div>
</form>
</div>