app/views/routing_constraint_zones/show.html.slim
- breadcrumb :routing_constraint_zone, @workbench, @referential, @line, @routing_constraint_zone
- page_header_content_for @routing_constraint_zone
.page_content
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
= definition_list t('metadatas'),
{ @routing_constraint_zone.human_attribute_name(:name) => @routing_constraint_zone.try(:name),
@routing_constraint_zone.human_attribute_name(:route) => link_to(@routing_constraint_zone.try(:route_name), [@workbench, @referential, @line, @routing_constraint_zone.route]),
@routing_constraint_zone.human_attribute_name(:line) => link_to(@line.name, [@workbench, @referential, @line]),
@routing_constraint_zone.human_attribute_name(:checksum) => @routing_constraint_zone.checksum}
.row
.col-lg-12
= table_builder_2 @routing_constraint_zone.route.stop_points,
[ \
TableBuilderHelper::Column.new( \
name: t('.route_stop_points'), \
attribute: lambda do |stop_point| \
link_to(stop_point.stop_area.formatted_selection_details.html_safe, workbench_stop_area_referential_stop_area_path(@workbench, stop_point.stop_area), class: :open) \
end \
),
TableBuilderHelper::Column.new( \
name: t('.stop_points'), \
attribute: Proc.new{ |rsp| (@routing_constraint_zone.stop_point_ids.include? rsp.id) ? t('yes') : t('no') } \
) \
],
sortable: false,
cls: 'table has-stoppoints'