diff options
| author | Zog | 2018-04-25 09:12:26 +0200 |
|---|---|---|
| committer | Zog | 2018-04-25 09:12:26 +0200 |
| commit | d0c9be18498c1179a9341f51c5705a736d21ea71 (patch) | |
| tree | bf540e06a33d5be29663a30dd75d62d0e1fedb7e /app/views | |
| parent | eb51cf0aa62a96c552c1a32778aa84e64df458a6 (diff) | |
| download | chouette-core-d0c9be18498c1179a9341f51c5705a736d21ea71.tar.bz2 | |
Refs #6472; Add Constraint Zone exclusions to journeys6472-itls-exclusions
along with the React interface
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/vehicle_journeys/index.html.slim | 1 | ||||
| -rw-r--r-- | app/views/vehicle_journeys/show.rabl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim index 7fcee545f..2af0e5345 100644 --- a/app/views/vehicle_journeys/index.html.slim +++ b/app/views/vehicle_journeys/index.html.slim @@ -33,6 +33,7 @@ | window.all_missions = #{(@all_missions.to_json).html_safe}; | window.custom_fields = #{(@custom_fields.to_json).html_safe}; | window.extra_headers = #{(@extra_headers.to_json).html_safe}; + | window.constraint_zones_routes = "#{url_for([@referential, @route.line, :routing_constraint_zones]).html_safe}"; - if has_feature?(:vehicle_journeys_return_route) = javascript_tag do diff --git a/app/views/vehicle_journeys/show.rabl b/app/views/vehicle_journeys/show.rabl index 6c588416c..3a551f237 100644 --- a/app/views/vehicle_journeys/show.rabl +++ b/app/views/vehicle_journeys/show.rabl @@ -1,6 +1,6 @@ object @vehicle_journey -[:objectid, :published_journey_name, :published_journey_identifier, :company_id, :comment, :checksum, :custom_fields].each do |attr| +[:objectid, :published_journey_name, :published_journey_identifier, :company_id, :comment, :checksum, :custom_fields, :ignored_routing_contraint_zone_ids].each do |attr| attributes attr, :unless => lambda { |m| m.send( attr).nil?} end |
