diff options
| -rw-r--r-- | app/views/routing_constraint_zones/show.html.slim | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/routing_constraint_zones/show.html.slim b/app/views/routing_constraint_zones/show.html.slim index 3decc086f..07b5ac6e6 100644 --- a/app/views/routing_constraint_zones/show.html.slim +++ b/app/views/routing_constraint_zones/show.html.slim @@ -26,9 +26,16 @@ .row .col-lg-12 - = table_builder @routing_constraint_zone.route.stop_points, - { "Arrêts de l'itinéraire" => 'name', - "Arrêts inclus dans l'ITL" => Proc.new{ |rsp| (@routing_constraint_zone.stop_point_ids.include? rsp.id) ? 'Oui' : 'Non' } }, - [], - [], - 'table has-stoppoints' + = table_builder_2 @routing_constraint_zone.route.stop_points, + [ \ + TableBuilderHelper::Column.new( \ + name: "Arrêts de l'itinéraire", \ + attribute: 'name' \ + ), + TableBuilderHelper::Column.new( \ + name: "Arrêts inclus dans l'ITL", \ + attribute: Proc.new{ |rsp| (@routing_constraint_zone.stop_point_ids.include? rsp.id) ? 'Oui' : 'Non' } \ + ) \ + ], + sortable: false, + cls: 'table has-stoppoints' |
