app/views/fare_zones/index.html.slim
- breadcrumb :fare_zones, @workbench
.page_content
.container-fluid
.row
.col-lg-12
/ = render 'filters'
- if @fare_zones.any?
.row
.col-lg-12
= table_builder_2 @fare_zones,
[ \
TableBuilderHelper::Column.new( \
key: :uuid, \
attribute: :uuid, \
sortable: false, \
), \
TableBuilderHelper::Column.new( \
key: :name, \
attribute: :name, \
link_to: -> (fare_zone) { workbench_fare_zone_path(@workbench, fare_zone) } \
), \
TableBuilderHelper::Column.new( \
key: :fare_provider, \
attribute: Proc.new { |s| s.fare_provider&.short_name }, \
sortable: false \
), \
].compact,
cls: 'table has-filter has-search'
/ = new_pagination @fare_zones, 'pull-right'
- unless @fare_zones.any?
.row.mt-xs
.col-lg-12
= replacement_msg t('fare_zones.search_no_results')