aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2016-11-28 17:08:25 +0100
committerXinhui2016-11-28 17:08:42 +0100
commitac92d7020fe98f43381fc896a5c499e0029c7ac8 (patch)
tree1cdd7f268a896b8211191c1615c37ff2022e5b45
parentf2bd7b6298b400d54fa07c89bc9937b1589fd552 (diff)
downloadchouette-core-ac92d7020fe98f43381fc896a5c499e0029c7ac8.tar.bz2
Fix search stop_area name with zicode
Refs #2083
-rw-r--r--app/views/stop_areas/index.html.slim17
1 files changed, 8 insertions, 9 deletions
diff --git a/app/views/stop_areas/index.html.slim b/app/views/stop_areas/index.html.slim
index 7701fb268..b234274fa 100644
--- a/app/views/stop_areas/index.html.slim
+++ b/app/views/stop_areas/index.html.slim
@@ -12,19 +12,18 @@
button.btn.btn-primary type="submit"
span.fa.fa-search
-= search_form_for @q, url: stop_area_referential_stop_areas_path(@stop_area_referential), remote: true, html: { method: :get, class: "form", id: "search", role: "form"} do |f|
- .well.well-sm
- .row
- .col-md-10.col-sm-9
+ a data-toggle="collapse" data-parent="#search" href="#advanced_search"
+ i.fa.fa-plus
+ = "#{t('.advanced_search')}"
+
+
+ #advanced_search.panel-collapse.collapse
+ .panel-body
.row
- .col-md-3.col-sm-3
+ .col-sm-3
= f.text_field :zip_code_cont, placeholder: "#{t('.zip_code')}", class: 'form-control typeahead'
.col-md-5.col-sm-5
= f.select(:area_type_cont, options_from_collection_for_select(Chouette::StopArea.stop_area_types, 'name', Proc.new { |stop_area_type| t("area_types.label.#{stop_area_type}") } ), { include_blank: t('.area_type') }, { class: 'form-control' })
-
- .col-md-2.col-sm-3
- button.btn.btn-primary.btn-block type="submit" Filtrer
-
#stop_areas
= render 'stop_areas'