diff options
| author | Teddy Wing | 2017-07-06 16:21:17 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-07-07 12:58:11 +0200 | 
| commit | ed027aa2fbb3510be6729c7d8bc41ae77a3a1b66 (patch) | |
| tree | 5d63d98a15d01809becc3e380be826c4a2d19387 | |
| parent | a59bf68668a74d9be6cdc64dca5ad801c833708c (diff) | |
| download | chouette-core-ed027aa2fbb3510be6729c7d8bc41ae77a3a1b66.tar.bz2 | |
RoutingConstraintZones#show: Use new table builder helper
Refs #3479
| -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' | 
