aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/access_points/index.html.slim
blob: 638ca22f5743bcd2678a854822309ff7881e24f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
= title_tag t('access_points.index.title', stop_area: @stop_area.name)

= search_form_for @q, :url => referential_stop_area_access_points_path(@referential,@stop_area), :html => {:method => :get} do |f|
  = f.label :name_or_country_code_cont, "#{t('.name_or_country_code')} :"
  = f.text_field :name_or_country_code_cont

  = f.submit t('actions.search')
    = t('or')

  = link_to t("cancel"), referential_stop_area_access_points_path(@referential,@stop_area)

.page_info
  span.search = t('will_paginate.page_entries_info.search')
  = page_entries_info @access_points

.access_points.paginated_content
  = render partial: 'access_point', collection: @access_points, locals: {referential: @referential}

.pagination
  = will_paginate @access_points, container: false

- content_for :sidebar do
  ul.actions
    li
      = link_to t('access_points.actions.new'), new_referential_stop_area_access_point_path(@referential,@stop_area), class: 'add'