| 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 | - breadcrumb :routing_constraint_zones, @referential, @line
.page_content
  .container-fluid
    - if params[:q].present? or @routing_constraint_zones.any?
      .row
        .col-lg-12
          = render 'filters'
    - if @routing_constraint_zones.any?
      .row
        .col-lg-12
          = table_builder_2 @routing_constraint_zones,
            [ \
              TableBuilderHelper::Column.new( \
                name: t('objectid'), \
                attribute: Proc.new { |n| n.get_objectid.short_id }, \
                sortable: false \
              ), \
              TableBuilderHelper::Column.new( \
                key: :name, \
                attribute: 'name', \
                link_to: lambda do |routing_constraint_zone| \
                  referential_line_routing_constraint_zone_path( \
                    @referential, \
                    @line, \
                    routing_constraint_zone \
                  ) \
                end \
              ), \
              TableBuilderHelper::Column.new( \
                key: :stop_points_count, \
                attribute: 'stop_points_count' \
              ), \
              TableBuilderHelper::Column.new( \
                key: :route, \
                attribute: 'route_name' \
              ), \
            ],
            links: [:show],
            cls: 'table has-filter has-search'
          
          = new_pagination @routing_constraint_zones, 'pull-right'
    - unless @routing_constraint_zones.any?
      .row.mt-xs
        .col-lg-12
          = replacement_msg t('.search_no_results')
 |