app/views/stop_areas/index.html.erb
<%= title_tag t('stop_areas.index.title') %>
<div id="country_codes">
<%= @country_codes.to_json %>
</div>
<%= search_form_for @q, :url => referential_stop_areas_path(@referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f| %>
<div class="panel panel-default">
<div class="panel-heading">
<div class="input-group col-md-9">
<%= f.text_field :name_cont, :placeholder => "#{t('.name')}", :class => 'form-control' %>
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
</div>
</div><!-- /input-group -->
<a data-toggle="collapse" data-parent="#search" href="#advanced_search">
<i class="fa fa-plus"></i> <%= "#{t('.advanced_search')}" %>
</a>
</div>
<div id="advanced_search" class="panel-collapse collapse">
<div class="panel-body">
<%= f.text_field :zip_code_cont, :placeholder => "#{t('.zip_code')}", :class => 'form-control typeahead' %>
<%= 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' }) %>
</div>
</div>
</div>
<% end %>
<div id="stop_areas"><%= render 'stop_areas' %></div>
<% content_for :sidebar do %>
<ul class="actions">
<li><%= link_to t('stop_areas.actions.new'), new_referential_stop_area_path(@referential), :class => "add" %></li>
<li><%= link_to t('stop_areas.actions.default_geometry'), default_geometry_referential_stop_areas_path(@referential), :method => :put, :class => "calculator", 'data-confirm' => confirm_count_missing_geometry %></li>
</ul>
<% end %>