diff options
| author | Xinhui | 2016-11-28 15:37:34 +0100 |
|---|---|---|
| committer | Xinhui | 2016-11-28 15:37:44 +0100 |
| commit | fdd898df945b822e43ce0dcdeccb4f2eff682270 (patch) | |
| tree | 339d2f2d8058e8723d5038320c4969485d78a6d3 | |
| parent | 68e04db39b435b41754c87fbe2b4e7d97dbd12bf (diff) | |
| download | chouette-core-fdd898df945b822e43ce0dcdeccb4f2eff682270.tar.bz2 | |
Fix stop_area search with name & zipcode
| -rw-r--r-- | app/views/stop_areas/index.html.slim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/stop_areas/index.html.slim b/app/views/stop_areas/index.html.slim index 7701fb268..8de0c973e 100644 --- a/app/views/stop_areas/index.html.slim +++ b/app/views/stop_areas/index.html.slim @@ -12,18 +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' |
