diff options
| author | Vlatka Pavisic | 2017-04-18 18:17:17 +0200 | 
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-18 18:17:23 +0200 | 
| commit | 33e796dc89b36f7c57adb9d462c0cc35a15be623 (patch) | |
| tree | 1a9d3df51ed18aba8cdf08cee8276287a5bdf5db /app/views/routing_constraint_zones | |
| parent | 07f17622daadc36db95fcf087798842f783e0f09 (diff) | |
| download | chouette-core-33e796dc89b36f7c57adb9d462c0cc35a15be623.tar.bz2 | |
Refs #3132 #3135 #3136 ITL StopArea validations
Diffstat (limited to 'app/views/routing_constraint_zones')
| -rw-r--r-- | app/views/routing_constraint_zones/_form.html.slim | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/routing_constraint_zones/_form.html.slim b/app/views/routing_constraint_zones/_form.html.slim index baffb6b49..b1c77a44b 100644 --- a/app/views/routing_constraint_zones/_form.html.slim +++ b/app/views/routing_constraint_zones/_form.html.slim @@ -4,7 +4,7 @@        = f.input :name    .row      .col-lg-6.col-sm-12 -      = f.input :route_id, collection: @line.routes, include_blank: false +      = f.input :route_id, collection: @line.routes.select { |route| route.stop_points.count > 2 }, include_blank: false    .row      .col-lg-6.col-sm-12        - stop_points_collection = @routing_constraint_zone.persisted? ? @routing_constraint_zone.route.stop_points : [] @@ -16,3 +16,4 @@        = f.button :submit, class: 'btn btn-danger' += hidden_field_tag 'stop_point_ids', @routing_constraint_zone.stop_point_ids.to_s, id: 'stop_point_ids'  | 
