diff options
| author | Xinhui | 2016-12-01 11:26:41 +0100 |
|---|---|---|
| committer | Xinhui | 2016-12-01 11:26:41 +0100 |
| commit | 433a5c2231e419ce510696ef81dab8eb2112ad7b (patch) | |
| tree | e72c166cb2f5cafd560e4b4718a4ed7a5191535e /app/views | |
| parent | f4f479b82e8a3a1c24aef9d0a4cd0bcd61609817 (diff) | |
| download | chouette-core-433a5c2231e419ce510696ef81dab8eb2112ad7b.tar.bz2 | |
Seach stop_areas by city_name
Refs #2032
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/referential_stop_areas/index.html.slim | 4 | ||||
| -rw-r--r-- | app/views/stop_areas/index.html.slim | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/referential_stop_areas/index.html.slim b/app/views/referential_stop_areas/index.html.slim index 91218b714..76a49a156 100644 --- a/app/views/referential_stop_areas/index.html.slim +++ b/app/views/referential_stop_areas/index.html.slim @@ -5,7 +5,7 @@ .panel-heading .input-group.col-md-9.col-sm-9 = f.text_field :name_or_objectid_cont, placeholder: t('.name_or_objectid'), class: 'form-control' - + .input-group-btn button.btn.btn-default type="submit" span.fa.fa-search @@ -20,6 +20,8 @@ .col-sm-3 = f.text_field :zip_code_cont, placeholder: "#{t('.zip_code')}", class: 'form-control typeahead', style: 'width: 100%' .col-sm-3 + = f.text_field :city_name_cont, placeholder: "#{t('.city_name')}", class: 'form-control typeahead', style: 'width: 100%' + .col-sm-3 = 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: '' }, { class: 'form-control', style: 'width: 100%', 'data-select2ed': 'true', 'data-select2ed-placeholder': t(".area_type") }) #stop_areas diff --git a/app/views/stop_areas/index.html.slim b/app/views/stop_areas/index.html.slim index 5e7a8aa0b..d804c9095 100644 --- a/app/views/stop_areas/index.html.slim +++ b/app/views/stop_areas/index.html.slim @@ -20,6 +20,8 @@ .col-sm-3 = f.text_field :zip_code_cont, placeholder: "#{t('.zip_code')}", class: 'form-control typeahead', style: 'width: 100%' .col-sm-3 + = f.text_field :city_name_cont, placeholder: "#{t('.city_name')}", class: 'form-control typeahead', style: 'width: 100%' + .col-sm-3 = 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: '' }, { class: 'form-control', style: 'width: 100%', 'data-select2ed': 'true', 'data-select2ed-placeholder': t(".area_type") }) #stop_areas |
