aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/partials/base.sass19
-rw-r--r--app/controllers/api/v1/connection_links_controller.rb12
-rw-r--r--app/controllers/autocomplete_timebands_controller.rb23
-rw-r--r--app/controllers/connection_link_areas_controller.rb28
-rw-r--r--app/controllers/connection_links_controller.rb59
-rw-r--r--app/controllers/referential_stop_areas_controller.rb1
-rw-r--r--app/controllers/timebands_controller.rb14
-rw-r--r--app/controllers/vehicle_journey_frequencies_controller.rb26
-rw-r--r--app/helpers/application_helper.rb4
-rw-r--r--app/helpers/connection_links_helper.rb8
-rw-r--r--app/helpers/timebands_helper.rb2
-rw-r--r--app/inputs/search_timeband_input.rb44
-rw-r--r--app/models/chouette/journey_frequency.rb35
-rw-r--r--app/models/chouette/timeband.rb28
-rw-r--r--app/models/referential.rb3
-rw-r--r--app/views/autocomplete_timebands/index.rabl8
-rw-r--r--app/views/connection_links/_connection_links.html.slim10
-rw-r--r--app/views/connection_links/_form.html.slim21
-rw-r--r--app/views/connection_links/edit.html.slim3
-rw-r--r--app/views/connection_links/index.html.slim24
-rw-r--r--app/views/connection_links/index.js.slim1
-rw-r--r--app/views/connection_links/new.html.slim3
-rw-r--r--app/views/connection_links/select_areas.html.slim11
-rw-r--r--app/views/connection_links/show.html.slim94
-rw-r--r--app/views/connection_links/show.kml.slim16
-rw-r--r--app/views/help/toc.textile2
-rw-r--r--app/views/import_tasks/_fields_gtfs_import.html.slim1
-rw-r--r--app/views/shared/_header.html.slim4
-rw-r--r--app/views/timebands/_form.html.slim9
-rw-r--r--app/views/timebands/_sidebar.html.slim9
-rw-r--r--app/views/timebands/edit.html.slim4
-rw-r--r--app/views/timebands/index.html.slim23
-rw-r--r--app/views/timebands/new.html.slim4
-rw-r--r--app/views/timebands/show.html.slim9
-rw-r--r--app/views/vehicle_journey_frequencies/_form_footer.html.slim4
-rw-r--r--app/views/vehicle_journey_frequencies/_form_vehicle_journey_at_stops.html.slim44
-rw-r--r--app/views/vehicle_journey_frequencies/_journey_frequency_fields.html.slim16
-rw-r--r--app/views/vehicle_journey_frequencies/_show_journey_frequencies.html.slim21
-rw-r--r--app/views/vehicle_journey_frequencies/_show_sidebar.html.slim15
-rw-r--r--app/views/vehicle_journey_frequencies/_show_vehicle_journey_at_stops.html.slim22
-rw-r--r--app/views/vehicle_journey_frequencies/_vehicle_journey_at_stop_fields.html.slim23
-rw-r--r--app/views/vehicle_journey_frequencies/_vehicle_journeys_matrix.html.slim11
-rw-r--r--app/views/vehicle_journey_frequencies/edit.html.slim3
-rw-r--r--app/views/vehicle_journey_frequencies/edit.js.slim10
-rw-r--r--app/views/vehicle_journey_frequencies/new.html.slim3
-rw-r--r--app/views/vehicle_journey_frequencies/new.js.slim13
-rw-r--r--app/views/vehicle_journey_frequencies/select_journey_pattern.js.slim1
-rw-r--r--app/views/vehicle_journey_frequencies/show.html.slim3
48 files changed, 0 insertions, 751 deletions
diff --git a/app/assets/stylesheets/partials/base.sass b/app/assets/stylesheets/partials/base.sass
deleted file mode 100644
index 50a50457b..000000000
--- a/app/assets/stylesheets/partials/base.sass
+++ /dev/null
@@ -1,19 +0,0 @@
-.formtastic.timeband
- .time_select
- .fragments
- .fragments-group
- padding-left: 0
-
- legend.label
- position: relative
- width: auto
- display: block
- width: 25%
- float: left
- border: none
-
- label
- position: relative
- width: auto
- font-size: 125%
- padding: .2em .6em .3em \ No newline at end of file
diff --git a/app/controllers/api/v1/connection_links_controller.rb b/app/controllers/api/v1/connection_links_controller.rb
deleted file mode 100644
index c5cf39812..000000000
--- a/app/controllers/api/v1/connection_links_controller.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class Api::V1::ConnectionLinksController < Api::V1::ChouetteController
-
- defaults :resource_class => Chouette::ConnectionLink, :finder => :find_by_objectid!
-
-protected
-
- def collection
- @connection_links ||= ( @referential ? @referential.connection_links.search(params[:q]).result(:distinct => true) : [])
- end
-
-end
-
diff --git a/app/controllers/autocomplete_timebands_controller.rb b/app/controllers/autocomplete_timebands_controller.rb
deleted file mode 100644
index af041c33e..000000000
--- a/app/controllers/autocomplete_timebands_controller.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-class AutocompleteTimebandsController < ChouetteController
- respond_to :json, :only => [:index]
-
- include ReferentialSupport
-
- protected
-
- def select_timebands
- if params[:route_id]
- referential.timebands.joins( vehicle_journeys: :route).where( "routes.id IN (#{params[:route_id]})")
- else
- referential.timebands
- end
- end
-
- def referential_timebands
- @referential_timebands ||= select_timebands
- end
-
- def collection
- @timebands = referential_timebands.select{ |p| p.fullname =~ /#{params[:q]}/i }
- end
-end
diff --git a/app/controllers/connection_link_areas_controller.rb b/app/controllers/connection_link_areas_controller.rb
deleted file mode 100644
index 981a7639e..000000000
--- a/app/controllers/connection_link_areas_controller.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-class ConnectionLinkAreasController < ChouetteController
- include ReferentialSupport
-
- respond_to :json, :only => :index
-
- def index
- respond_to do |format|
- format.json { render :json => areas_maps }
- end
- end
-
- def areas_maps
- areas.collect do |area|
- { :id => area.id.to_s,
- :name => area.name,
- :country_code => area.country_code,
- :zip_code => area.zip_code || "",
- :city_name => area.city_name || "",
- :area_type => t("area_types.label.#{area.area_type.underscore}")
- }
- end
- end
-
- def areas
- referential.connection_links.find(params[:connection_link_id]).possible_areas.select{ |p| p.name =~ /#{params[:q]}/i }
- end
-
-end
diff --git a/app/controllers/connection_links_controller.rb b/app/controllers/connection_links_controller.rb
deleted file mode 100644
index a7f9758e8..000000000
--- a/app/controllers/connection_links_controller.rb
+++ /dev/null
@@ -1,59 +0,0 @@
-class ConnectionLinksController < ChouetteController
- include ReferentialSupport
- defaults :resource_class => Chouette::ConnectionLink
-
- belongs_to :referential do
- belongs_to :departure, :parent_class => Chouette::StopArea, :optional => true
- belongs_to :arrival, :parent_class => Chouette::StopArea, :optional => true
- end
-
- respond_to :html, :xml, :json
- respond_to :kml, :only => :show
- respond_to :js, :only => :index
-
- include PolicyChecker
-
- def index
- index! do |format|
- format.html {
- if collection.out_of_bounds?
- redirect_to params.merge(:page => 1)
- end
- }
- end
- end
-
- def show
- show!
- end
-
- def select_areas
- @connection_link = connection_link
- @departure = connection_link.departure
- @arrival = connection_link.arrival
- end
-
- protected
-
- alias_method :connection_link, :resource
-
- def collection
- @q = referential.connection_links.search(params[:q])
- @connection_links ||= @q.result(:distinct => true).order(:name).paginate(:page => params[:page])
- end
-
- def resource_url(connection_link = nil)
- referential_connection_link_path(referential, connection_link || resource)
- end
-
- def collection_url
- referential_connection_links_path(referential)
- end
-
- private
-
- def connection_link_params
- params.require(:connection_link).permit( :connection_link_type,:departure_id, :arrival_id, :objectid, :object_version, :name, :comment, :link_distance, :link_type, :default_duration, :frequent_traveller_duration, :occasional_traveller_duration, :mobility_restricted_traveller_duration, :mobility_restricted_suitability, :stairs_availability, :lift_availability, :int_user_needs )
- end
-
-end
diff --git a/app/controllers/referential_stop_areas_controller.rb b/app/controllers/referential_stop_areas_controller.rb
index fa09bb773..a5fd15fcb 100644
--- a/app/controllers/referential_stop_areas_controller.rb
+++ b/app/controllers/referential_stop_areas_controller.rb
@@ -6,7 +6,6 @@ class ReferentialStopAreasController < ChouetteController
belongs_to :referential do
belongs_to :line, :parent_class => Chouette::Line, :optional => true, :polymorphic => true
belongs_to :network, :parent_class => Chouette::Network, :optional => true, :polymorphic => true
- belongs_to :connection_link, :parent_class => Chouette::ConnectionLink, :optional => true, :polymorphic => true
end
respond_to :html, :kml, :xml, :json
diff --git a/app/controllers/timebands_controller.rb b/app/controllers/timebands_controller.rb
deleted file mode 100644
index 937283b0e..000000000
--- a/app/controllers/timebands_controller.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-class TimebandsController < ChouetteController
- include ReferentialSupport
-
- defaults :resource_class => Chouette::Timeband
-
- respond_to :html
-
- belongs_to :referential
-
- private
- def timeband_params
- params.require(:timeband).permit( :name, :start_time, :end_time )
- end
-end
diff --git a/app/controllers/vehicle_journey_frequencies_controller.rb b/app/controllers/vehicle_journey_frequencies_controller.rb
deleted file mode 100644
index 6e12c0247..000000000
--- a/app/controllers/vehicle_journey_frequencies_controller.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-class VehicleJourneyFrequenciesController < VehicleJourneysController
-
- defaults resource_class: Chouette::VehicleJourneyFrequency
-
- def new
- new! do
- vehicle_journey.journey_frequencies.build
- end
- end
-
- private
-
- def vehicle_journey_frequency_params
- params.require(:vehicle_journey_frequency).permit( { footnote_ids: [] } , :journey_pattern_id, :number, :published_journey_name,
- :published_journey_identifier, :comment, :transport_mode,
- :mobility_restricted_suitability, :flexible_service,
- :facility, :vehicle_type_identifier, :objectid, :time_table_tokens,
- { date: [ :hour, :minute ] }, :button, :referential_id, :line_id,
- :route_id, :id, { vehicle_journey_at_stops_attributes: [ :arrival_time,
- :id, :_destroy,
- :stop_point_id,
- :departure_time] },
- { journey_frequencies_attributes: [ :id, :_destroy, :scheduled_headway_interval, :first_departure_time,
- :last_departure_time, :exact_time, :timeband_id ] } )
- end
-end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7a3f7e719..97caed7fb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -115,12 +115,8 @@ module ApplicationHelper
"access_points_links"
when path.include?("/stop_areas")
"stop_areas"
- when path.include?("/connection_links")
- "connection_links"
when path.include?("/time_tables")
"time_tables"
- when path.include?("/timebands")
- "timebands"
when path.include?("/import_tasks")
"imports"
when path.include?("/exports")
diff --git a/app/helpers/connection_links_helper.rb b/app/helpers/connection_links_helper.rb
deleted file mode 100644
index d9c201028..000000000
--- a/app/helpers/connection_links_helper.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-module ConnectionLinksHelper
-
- def connection_link_type_label_pairs
- Chouette::ConnectionLink
- .connection_link_types
- .zip_map { |type| t("connection_link_types.label.#{type}") }
- end
-end
diff --git a/app/helpers/timebands_helper.rb b/app/helpers/timebands_helper.rb
deleted file mode 100644
index 51251e46f..000000000
--- a/app/helpers/timebands_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module TimebandsHelper
-end
diff --git a/app/inputs/search_timeband_input.rb b/app/inputs/search_timeband_input.rb
deleted file mode 100644
index bad262ef2..000000000
--- a/app/inputs/search_timeband_input.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-class SearchTimebandInput < Formtastic::Inputs::SearchInput
-
- def search
- if options[:json]
- template.content_tag( :script,
- ("$(document).ready(function() {
- var timeband_formatter = function(item){
- return '<li>' + item.name + '</li>';
- };
- $('##{dom_id}').tokenInput('#{options[:json]}', {
- zindex: 1061,
- crossDomain: false,
- tokenLimit: 1,
- minChars: 2,
- propertyToSearch: 'name',
- preventDuplicates: true,
- hintText: '#{options[:hint_text]}',
- noResultsText: '#{options[:no_result_text]}',
- searchingText: '#{options[:searching_text]}',
- resultsFormatter: timeband_formatter,
- tokenFormatter: timeband_formatter,
- });
- });").html_safe)
- end
- end
-
- def to_html
- input_wrapping do
- label_html <<
- builder.search_field(method, input_html_options) <<
- search
- end
- end
-
- def input_html_options
- super.merge({
- required: nil,
- autofocus: nil,
- class: 'token-input',
- :'data-model-name' => object.class.model_name.human
- })
- end
-
-end
diff --git a/app/models/chouette/journey_frequency.rb b/app/models/chouette/journey_frequency.rb
deleted file mode 100644
index 1b4efe96e..000000000
--- a/app/models/chouette/journey_frequency.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module Chouette
- class JourneyFrequencyValidator < ActiveModel::Validator
- def validate(record)
- timeband = record.timeband
- if timeband
- first_departure_time = record.first_departure_time.utc.strftime( "%H%M%S%N" )
- last_departure_time = record.last_departure_time.utc.strftime( "%H%M%S%N" )
- timeband_start_time = timeband.start_time.utc.strftime( "%H%M%S%N" )
- timeband_end_time = timeband.end_time.utc.strftime( "%H%M%S%N" )
-
- unless first_departure_time.between? timeband_start_time, timeband_end_time
- record.errors[:first_departure_time] << I18n.t('activerecord.errors.models.journey_frequency.start_must_be_after_timeband')
- end
- unless last_departure_time.between? timeband_start_time, timeband_end_time
- record.errors[:last_departure_time] << I18n.t('activerecord.errors.models.journey_frequency.end_must_be_before_timeband')
- end
- end
- if record.first_departure_time == record.last_departure_time
- record.errors[:last_departure_time] << I18n.t('activerecord.errors.models.journey_frequency.end_must_be_different_from_first')
- end
- if record.scheduled_headway_interval.blank? || (record.scheduled_headway_interval.strftime( "%H%M%S%N" ) == Time.current.midnight.strftime( "%H%M%S%N" ))
- record.errors[:scheduled_headway_interval] << I18n.t('activerecord.errors.models.journey_frequency.scheduled_headway_interval_greater_than_zero')
- end
- end
- end
-
- class JourneyFrequency < ActiveRecord
- belongs_to :vehicle_journey_frequency, foreign_key: 'vehicle_journey_id'
- belongs_to :timeband
- validates :first_departure_time, presence: true
- validates :last_departure_time, presence: true
- validates :scheduled_headway_interval, presence: true
- validates_with Chouette::JourneyFrequencyValidator
- end
-end \ No newline at end of file
diff --git a/app/models/chouette/timeband.rb b/app/models/chouette/timeband.rb
deleted file mode 100644
index 38260b755..000000000
--- a/app/models/chouette/timeband.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-module Chouette
- class TimebandValidator < ActiveModel::Validator
- def validate(record)
- if record.end_time <= record.start_time
- record.errors[:end_time] << I18n.t('activerecord.errors.models.timeband.start_must_be_before_end')
- end
- end
- end
-
- class Timeband < Chouette::TridentActiveRecord
- include ObjectidSupport
- has_metadata
-
- validates :start_time, :end_time, presence: true
- validates_with Chouette::TimebandValidator
-
- default_scope { order(:start_time) }
-
- def self.object_id_key
- "Timeband"
- end
-
- def fullname
- fullname = "#{I18n.l(self.start_time, format: :hour)}-#{I18n.l(self.end_time, format: :hour)}"
- "#{self.name} (#{fullname})" if self.name
- end
- end
-end
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 0c6e71d47..ea75274d0 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -192,9 +192,6 @@ class Referential < ApplicationModel
Chouette::TimeTableDate.all
end
- def timebands
- Chouette::Timeband.all
- end
def connection_links
Chouette::ConnectionLink.all
diff --git a/app/views/autocomplete_timebands/index.rabl b/app/views/autocomplete_timebands/index.rabl
deleted file mode 100644
index 663b09285..000000000
--- a/app/views/autocomplete_timebands/index.rabl
+++ /dev/null
@@ -1,8 +0,0 @@
-collection @timebands
-
-node do |timeband|
- {
- id: timeband.id,
- name: timeband.fullname
- }
-end
diff --git a/app/views/connection_links/_connection_links.html.slim b/app/views/connection_links/_connection_links.html.slim
deleted file mode 100644
index 8cf41a6c1..000000000
--- a/app/views/connection_links/_connection_links.html.slim
+++ /dev/null
@@ -1,10 +0,0 @@
-.page_info
- span.search
- = t("will_paginate.page_entries_info.search")
- = page_entries_info @connection_links
-
-.connection_links.paginated_content
- = paginated_content(@connection_links)
-
-.pagination
- = will_paginate @connection_links, :container => false, renderer: RemoteBootstrapPaginationLinkRenderer
diff --git a/app/views/connection_links/_form.html.slim b/app/views/connection_links/_form.html.slim
deleted file mode 100644
index a3774ec88..000000000
--- a/app/views/connection_links/_form.html.slim
+++ /dev/null
@@ -1,21 +0,0 @@
-= semantic_form_for [@referential, @connection_link] do |form|
- = form.inputs do
- = form.input :name
- = form.input :connection_link_type, as: :select, collection: connection_link_type_label_pairs, include_blank: true
- = form.input :comment
- = form.input :link_distance, input_html: { title: t("formtastic.titles#{format_restriction_for_locales(@referential)}.connection_link.link_distance") }
- = form.input :mobility_restricted_suitability, as: :select, :collection => [[t("true"), true], [t("false"), false]], include_blank: true
- = form.input :stairs_availability, as: :select, :collection => [[t("true"), true], [t("false"), false]], include_blank: true
- = form.input :lift_availability, as: :select, :collection => [[t("true"), true], [t("false"), false]], include_blank: true
-
- = form.input :objectid, :required => !@connection_link.new_record?, :input_html => { :title => t("formtastic.titles.connection_link.objectid")}
-
- = form.inputs :name => t('connection_links.show.durations') do
- = form.input :default_duration, :as => :extended_time_picker, :size => 8, :step => :seconds, :label => @connection_link.human_attribute_name("default_duration"), :input_html => { :class => "form-control input-sm timepicker_seconds", :step => 1}, :wrapper_html => { :class => "input-append bootstrap-timepicker" }
- = form.input :frequent_traveller_duration, :as => :extended_time_picker, :size => 8, :step => :seconds, :include_seconds => true, :label => @connection_link.human_attribute_name("frequent_traveller_duration"), :input_html => { :class => "form-control input-sm timepicker_seconds", :step => 1}, :wrapper_html => { :class => "input-append bootstrap-timepicker" }
- = form.input :occasional_traveller_duration, :as => :extended_time_picker, :size => 8, :include_seconds => true, :label => @connection_link.human_attribute_name("occasional_traveller_duration"), :input_html => { :class => "form-control input-sm timepicker_seconds", :step => 1}, :wrapper_html => { :class => "input-append bootstrap-timepicker" }
- = form.input :mobility_restricted_traveller_duration, :as => :extended_time_picker,:size => 8, :include_seconds => true, :label => @connection_link.human_attribute_name("mobility_restricted_traveller_duration"), :input_html => { :class => "form-control input-sm timepicker_seconds", :step => 1}, :wrapper_html => { :class => "input-append bootstrap-timepicker" }
-
- = form.actions do
- = form.action :submit, as: :button
- = form.action :cancel, as: :link
diff --git a/app/views/connection_links/edit.html.slim b/app/views/connection_links/edit.html.slim
deleted file mode 100644
index 08a6ddd36..000000000
--- a/app/views/connection_links/edit.html.slim
+++ /dev/null
@@ -1,3 +0,0 @@
-= title_tag t('connection_links.edit.title', :connection_link => @connection_link.name )
-
-= render 'form' \ No newline at end of file
diff --git a/app/views/connection_links/index.html.slim b/app/views/connection_links/index.html.slim
deleted file mode 100644
index 7651ae340..000000000
--- a/app/views/connection_links/index.html.slim
+++ /dev/null
@@ -1,24 +0,0 @@
-= title_tag t('connection_links.index.title')
-
-= search_form_for @q, :url => referential_connection_links_path(@referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f|
- .panel.panel-default
- .panel-heading
- .input-group.col-md-12
- = f.text_field :name_cont, :placeholder => "#{t('.name')}", class: 'form-control'
- .input-group-btn
- button.btn.btn-default type="submit"
- i.fa.fa-search
-
- / <!-- /input-group -->
- / <!-- <a data-toggle="collapse" data-parent="#search" href="#advanced_search"> -->
- / <!-- <i class="fa fa-plus"></i> <%= "#{t('.advanced_search')}" %> -->
- / <!-- </a> -->
-
-#connection_links
- = render 'connection_links'
-
-- content_for :sidebar do
- ul.actions
- li
- - if policy(Chouette::ConnectionLink).create? && @referential.organisation == current_organisation
- = link_to t('connection_links.actions.new'), new_referential_connection_link_path(@referential), class: 'add'
diff --git a/app/views/connection_links/index.js.slim b/app/views/connection_links/index.js.slim
deleted file mode 100644
index 2be61610e..000000000
--- a/app/views/connection_links/index.js.slim
+++ /dev/null
@@ -1 +0,0 @@
-| $('#connection_links').html("#{escape_javascript(render('connection_links'))}"); \ No newline at end of file
diff --git a/app/views/connection_links/new.html.slim b/app/views/connection_links/new.html.slim
deleted file mode 100644
index c4acdf622..000000000
--- a/app/views/connection_links/new.html.slim
+++ /dev/null
@@ -1,3 +0,0 @@
-= title_tag t('connection_links.new.title')
-
-= render 'form' \ No newline at end of file
diff --git a/app/views/connection_links/select_areas.html.slim b/app/views/connection_links/select_areas.html.slim
deleted file mode 100644
index 85da40eb7..000000000
--- a/app/views/connection_links/select_areas.html.slim
+++ /dev/null
@@ -1,11 +0,0 @@
-= title_tag t('connection_links.select_areas.title', connection_link: @connection_link.name)
-
-= semantic_form_for [@referential, @connection_link] do |form|
- div
- = form.inputs do
- = form.input :departure_id, :as => :search_stop_area, :json => referential_autocomplete_stop_areas_path(@referential, :format => :json)+"?filter=itl_excluded", :tokenLimit => 1, :hint_text => t('search_hint'), :no_result_text => t('no_result_text'),:searching_text => t('searching_term'), :input_html => { :"data-pre" => Rabl::Renderer.new('autocomplete_stop_areas/show', [@departure].compact, :view_path => 'app/views', :format => :json, :scope => self).render }
- = form.input :arrival_id, :as => :search_stop_area, :json => referential_autocomplete_stop_areas_path(@referential, :format => :json)+"?filter=itl_excluded", :tokenLimit => 1, :hint_text => t('search_hint'), :no_result_text => t('no_result_text'),:searching_text => t('searching_term'), :input_html => { :"data-pre" => Rabl::Renderer.new('autocomplete_stop_areas/show', [@arrival].compact, :view_path => 'app/views', :format => :json, :scope => self).render }
-
- = form.actions do
- = form.action :submit, as: :button
- = form.action :cancel, as: :link \ No newline at end of file
diff --git a/app/views/connection_links/show.html.slim b/app/views/connection_links/show.html.slim
deleted file mode 100644
index ca6593131..000000000
--- a/app/views/connection_links/show.html.slim
+++ /dev/null
@@ -1,94 +0,0 @@
-= title_tag t('connection_links.show.title', :connection_link => @connection_link.name)
-
-.connection_link_show
- .summary
- p
- label = "#{@connection_link.human_attribute_name(:departure)} : "
- - if @connection_link.departure.present?
- = link_to @connection_link.departure.name, [@referential, @connection_link.departure]
- - else
- = @connection_link.human_attribute_name("undefined")
-
- p
- label = "#{@connection_link.human_attribute_name(:arrival)} : "
- - if @connection_link.arrival.present?
- = link_to @connection_link.arrival.name, [@referential, @connection_link.arrival]
- - else
- = @connection_link.human_attribute_name("undefined")
-
- p
- label = "#{@connection_link.human_attribute_name('connection_link_type')} : "
- - if @connection_link.connection_link_type.blank?
- = t("unknown")
- - else
- = t("connection_link_types.label.#{@connection_link.connection_link_type}")
-
- p
- label = "#{@connection_link.human_attribute_name('comment')} : "
- = @connection_link.comment
-
- p
- label = "#{@connection_link.human_attribute_name('link_distance')} : "
- = @connection_link.link_distance
-
- p
- label = t('connection_links.show.durations')
-
- p
- label.duration = "#{@connection_link.human_attribute_name('default_duration')} : "
- - if @connection_link.default_duration.present?
- = @connection_link.default_duration.strftime('%Hh %Mm %Ss')
-
- p
- label.duration = "#{@connection_link.human_attribute_name('frequent_traveller_duration')} : "
- - if @connection_link.frequent_traveller_duration.present?
- = @connection_link.frequent_traveller_duration.strftime('%Hh %Mm %Ss')
-
- p
- label.duration = "#{@connection_link.human_attribute_name('occasional_traveller_duration')} : "
- - if @connection_link.occasional_traveller_duration.present?
- = @connection_link.occasional_traveller_duration.strftime('%Hh %Mm %Ss')
-
- p
- label.duration = "#{@connection_link.human_attribute_name('mobility_restricted_traveller_duration')} : "
- -if @connection_link.mobility_restricted_traveller_duration.present?
- = @connection_link.mobility_restricted_traveller_duration.strftime('%Hh %Mm %Ss')
-
- p
- label = "#{@connection_link.human_attribute_name('mobility_restricted_suitability')} : "
- - if !@connection_link.mobility_restricted_suitability.nil?
- = t((@connection_link.mobility_restricted_suitability == true).to_s)
- - else
- = t("unknown")
-
- p
- label = "#{@connection_link.human_attribute_name('stairs_availability')} : "
- - if !@connection_link.stairs_availability.nil?
- = t((@connection_link.stairs_availability == true).to_s)
- - else
- = t("unknown")
-
- p
- label = "#{@connection_link.human_attribute_name('lift_availability')} : "
- - if !@connection_link.lift_availability.nil?
- = t((@connection_link.lift_availability == true).to_s)
- - else
- = t("unknown")
-
-- content_for :sidebar do
- ul.actions
- - if policy(Chouette::ConnectionLink).create? && @referential.organisation == current_organisation
- li
- = link_to t('connection_links.actions.new'), new_referential_connection_link_path(@referential), class: 'add'
- - if policy(@connection_link).edit?
- li
- = link_to t('connection_links.actions.edit'), edit_referential_connection_link_path(@referential, @connection_link), class: 'edit'
- - if policy(@connection_link).destroy?
- li
- = link_to t('connection_links.actions.destroy'), referential_connection_link_path(@referential, @connection_link), :method => :delete, :data => {:confirm => t('connection_links.actions.destroy_confirm')}, class: 'remove'
- - if policy(@connection_link).edit?
- li
- = link_to t('connection_links.actions.select_areas'), select_areas_referential_connection_link_path(@referential, @connection_link), class: 'select'
- br
-
- = creation_tag(@connection_link)
diff --git a/app/views/connection_links/show.kml.slim b/app/views/connection_links/show.kml.slim
deleted file mode 100644
index 59169dba3..000000000
--- a/app/views/connection_links/show.kml.slim
+++ /dev/null
@@ -1,16 +0,0 @@
-doctype XML
-
-kml xmlns="http://www.opengis.net/kml/2.2"
- document
- - if @connection_link.geometry
- placemark id="route_#{@connection_link.id}"
- name = @connection_link.name
- = @connection_link.geometry.kml_representation.html_safe
-
- placemark id="#{@connection_link.departure.id}"
- departure true
- = @connection_link.departure.geometry.kml_representation.html_safe
-
- placemark id="#{@connection_link.arrival.id}"
- arrival true
- = @connection_link.arrival.geometry.kml_representation.html_safe
diff --git a/app/views/help/toc.textile b/app/views/help/toc.textile
index 9772ca1b6..754a6ebb5 100644
--- a/app/views/help/toc.textile
+++ b/app/views/help/toc.textile
@@ -27,8 +27,6 @@ h3. Sommaire
## "Séquences d'arrêts":routes
## "Missions":journey_patterns
## "Courses et horaires":vehicle_journeys
-## "Courses en fréquence":timebands.textile
-## "Correspondances":connection_links
## "Calendrier":time_tables
# Imports
## "Imports":imports
diff --git a/app/views/import_tasks/_fields_gtfs_import.html.slim b/app/views/import_tasks/_fields_gtfs_import.html.slim
index 8c2ef8ed8..a560b6878 100644
--- a/app/views/import_tasks/_fields_gtfs_import.html.slim
+++ b/app/views/import_tasks/_fields_gtfs_import.html.slim
@@ -3,4 +3,3 @@
= form.input :max_distance_for_commercial , as: :number , :input_html => { :title => t("formtastic.titles.import_task.max_distance_for_commercial"), :value => 0 }
= form.input :ignore_last_word , as: :boolean , :input_html => { :title => t("formtastic.titles.import_task.ignore_last_word"), :value => false }
= form.input :ignore_end_chars , as: :number , :input_html => { :title => t("formtastic.titles.import_task.ignore_end_chars"), :value => 0 }
-= form.input :max_distance_for_connection_link , as: :number , :input_html => { :title => t("formtastic.titles.import_task.max_distance_for_connection_link"), :value => 0 } \ No newline at end of file
diff --git a/app/views/shared/_header.html.slim b/app/views/shared/_header.html.slim
index b59be2b08..a653e5cdf 100644
--- a/app/views/shared/_header.html.slim
+++ b/app/views/shared/_header.html.slim
@@ -81,10 +81,6 @@ nav.navbar.navbar-default.navbar-fixed-top role="navigation"
span.badge.pull-right = @referential.time_tables.size
= Referential.human_attribute_name("time_tables")
- li
- = link_to referential_timebands_path(@referential) do
- span.badge.pull-right = @referential.timebands.size
- = Referential.human_attribute_name("timebands")
li
= link_to Referential.human_attribute_name("exports"), referential_exports_path(@referential)
li
diff --git a/app/views/timebands/_form.html.slim b/app/views/timebands/_form.html.slim
deleted file mode 100644
index 433d777dc..000000000
--- a/app/views/timebands/_form.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-= semantic_form_for [@referential, @timeband] do |form|
- = form.inputs do
- = form.input :name
- = form.input :start_time
- = form.input :end_time
-
- = form.actions do
- = form.action :submit, as: :button
- = form.action :cancel, as: :link \ No newline at end of file
diff --git a/app/views/timebands/_sidebar.html.slim b/app/views/timebands/_sidebar.html.slim
deleted file mode 100644
index 07dcebdad..000000000
--- a/app/views/timebands/_sidebar.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-- content_for :sidebar do
- ul.actions
- li = link_to t('timebands.actions.new'), new_referential_timeband_path(@referential), class: "add"
-
- - if @timeband
- li
- = link_to t('timebands.actions.edit'), edit_referential_timeband_path(@referential, @timeband), class: "edit"
- li
- = link_to t('timebands.actions.destroy'), referential_timeband_path(@referential, @timeband), :method => :delete, :data => {:confirm => t('timebands.actions.destroy_confirm')}, class: "remove" \ No newline at end of file
diff --git a/app/views/timebands/edit.html.slim b/app/views/timebands/edit.html.slim
deleted file mode 100644
index c70de82ef..000000000
--- a/app/views/timebands/edit.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- breadcrumb :timeband, @referential, @timeband
-= title_tag t('timebands.edit.title', timeband: @timeband.name)
-
-= render 'form'
diff --git a/app/views/timebands/index.html.slim b/app/views/timebands/index.html.slim
deleted file mode 100644
index 6dcf348f9..000000000
--- a/app/views/timebands/index.html.slim
+++ /dev/null
@@ -1,23 +0,0 @@
-- breadcrumb :timebands, @referential
-= title_tag t('timebands.index.title')
-
-- if @timebands.any?
- table.table.table-striped.table-condensed
- thead
- tr
- th = t('activerecord.attributes.timeband.name')
- th = t('activerecord.attributes.timeband.start_time')
- th = t('activerecord.attributes.timeband.end_time')
- th
-
- tbody
- - @timebands.each do |timeband|
- tr
- td = link_to timeband.name, referential_timeband_path(@referential, timeband)
- td = l(timeband.start_time, format: :hour)
- td = l(timeband.end_time, format: :hour)
- td
- = link_to '', edit_referential_timeband_path(@referential, timeband), class: "edit"
- = link_to '', referential_timeband_path(@referential, timeband), :method => :delete, :data => {:confirm => t('timebands.actions.destroy_confirm')}, class: "remove"
-
-== render 'sidebar'
diff --git a/app/views/timebands/new.html.slim b/app/views/timebands/new.html.slim
deleted file mode 100644
index d9fc27823..000000000
--- a/app/views/timebands/new.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- breadcrumb :timebands, @referential
-= title_tag t('timebands.new.title')
-
-== render 'form'
diff --git a/app/views/timebands/show.html.slim b/app/views/timebands/show.html.slim
deleted file mode 100644
index d45611c56..000000000
--- a/app/views/timebands/show.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-- breadcrumb :timeband, @referential, @timeband
-= title_tag t( 'timebands.show.title', timeband: @timeband.name )
-
-.summary
- p
- label = "#{@timeband.name} : "
- = "#{l(@timeband.start_time, format: :hour)} - #{l(@timeband.end_time, format: :hour)}"
-
-== render 'sidebar'
diff --git a/app/views/vehicle_journey_frequencies/_form_footer.html.slim b/app/views/vehicle_journey_frequencies/_form_footer.html.slim
deleted file mode 100644
index 922e867a8..000000000
--- a/app/views/vehicle_journey_frequencies/_form_footer.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- if vehicle_journey.new_record?
- = javascript_include_tag new_referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route, format: :js)
-- else
- = javascript_include_tag edit_referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route, vehicle_journey, format: :js) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_form_vehicle_journey_at_stops.html.slim b/app/views/vehicle_journey_frequencies/_form_vehicle_journey_at_stops.html.slim
deleted file mode 100644
index 45b37dee9..000000000
--- a/app/views/vehicle_journey_frequencies/_form_vehicle_journey_at_stops.html.slim
+++ /dev/null
@@ -1,44 +0,0 @@
-li.input
- = form.label vehicle_journey.human_attribute_name(:vehicle_journey_at_stop_ids), class: 'label'
-
- table.table-striped.ce-TimeBandFormTable
- thead
- tr
- th = t('vehicle_journeys.form.stop_title')
- th
- th = t('vehicle_journeys.form.arrival')
- th = t('vehicle_journeys.form.departure')
-
- tbody.journey_pattern_dependent_list
- == render partial: 'vehicle_journey_at_stop_fields', collection: vehicle_journey.vehicle_journey_at_stops, as: :vehicle_journey_at_stop, locals: { vehicle_journey_at_stops_size: vehicle_journey.vehicle_journey_at_stops.size }
-
- tfoot
- tr
- td
- td
- td
- = button_tag 'data-ce-action' => 'to_departures', class: 'ce-hide btn btn-primary' do
- = t('vehicle_journeys.form.to_departures').html_safe
- i.fa.fa-angle-double-right
- td
- = button_tag 'data-ce-action' => 'to_arrivals', class: 'ce-hide btn btn-primary' do
- i.fa.fa-angle-double-left
- = t('vehicle_journeys.form.to_arrivals').html_safe
-
-li.input
- = form.label vehicle_journey.human_attribute_name(:journey_frequency_ids), class: 'label'
-
- ul.ce-FrequencyFormFields
- li = t('activerecord.attributes.journey_frequency.timeband')
- li = t('activerecord.attributes.journey_frequency.first_departure_time')
- li = t('activerecord.attributes.journey_frequency.last_departure_time')
- li = t('activerecord.attributes.journey_frequency.scheduled_headway_interval')
- li
- li
-
- - i = 0
- = form.semantic_fields_for :journey_frequencies do |journey_frequency|
- == render 'journey_frequency_fields', f: journey_frequency, no_destroy: ((i += 1) == 1 ? true : false)
-
- .actions-add-fields
- = link_to_add_association t('journey_frequencies.form.add_line'), form, :journey_frequencies, class: 'btn btn-primary' \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_journey_frequency_fields.html.slim b/app/views/vehicle_journey_frequencies/_journey_frequency_fields.html.slim
deleted file mode 100644
index c649abd9b..000000000
--- a/app/views/vehicle_journey_frequencies/_journey_frequency_fields.html.slim
+++ /dev/null
@@ -1,16 +0,0 @@
-- no_destroy = false unless local_assigns[:no_destroy]
-
-.nested-fields
- ul.ce-FrequencyFormFields
- = f.input :timeband_id, as: :search_timeband, json: referential_autocomplete_timebands_path(@referential, format: :json), hint_text: t('search_hint'), no_result_text: t('no_result_text'), searching_text: t('searching_term'), label: false, input_html: { :"data-pre" => Rabl::Renderer.new( 'autocomplete_timebands/index', Chouette::Timeband.where(id: f.object.timeband_id), view_path: 'app/views', format: :json, scope: :self ).render }
- = f.input :first_departure_time, label: false
- = f.input :last_departure_time, label: false
- = f.input :scheduled_headway_interval, label: false
- = f.input :exact_time, label: t('activerecord.attributes.journey_frequency.exact_time')
-
- li
- label.label
-
- - unless no_destroy
- = link_to_remove_association f do
- i.fa.fa-trash \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_show_journey_frequencies.html.slim b/app/views/vehicle_journey_frequencies/_show_journey_frequencies.html.slim
deleted file mode 100644
index 4510f26f0..000000000
--- a/app/views/vehicle_journey_frequencies/_show_journey_frequencies.html.slim
+++ /dev/null
@@ -1,21 +0,0 @@
-h3 = t('vehicle_journeys.show.journey_frequencies')
-
-.journey_frequencies.content
- table.table.table-hover.table-striped
- thead
- tr
- th = t('activerecord.attributes.journey_frequency.timeband')
- th = t('activerecord.attributes.journey_frequency.first_departure_time')
- th = t('activerecord.attributes.journey_frequency.last_departure_time')
- th = t('activerecord.attributes.journey_frequency.scheduled_headway_interval')
- th = t('activerecord.attributes.journey_frequency.exact_time')
-
- tbody
- - @vehicle_journey_frequency.journey_frequencies.each do |journey_frequency|
- tr class="#{cycle :odd, :even}""
- td
- = link_to journey_frequency.timeband.fullname, referential_timeband_path(@referential, journey_frequency.timeband) if journey_frequency.timeband
- td = l(journey_frequency.first_departure_time, format: :hour)
- td = l(journey_frequency.last_departure_time, format: :hour)
- td = l(journey_frequency.scheduled_headway_interval, format: :hour)
- td = '<i class="fa fa-check"></i>'.html_safe if journey_frequency.exact_time \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_show_sidebar.html.slim b/app/views/vehicle_journey_frequencies/_show_sidebar.html.slim
deleted file mode 100644
index 61695ef86..000000000
--- a/app/views/vehicle_journey_frequencies/_show_sidebar.html.slim
+++ /dev/null
@@ -1,15 +0,0 @@
-- content_for :sidebar do
- ul.actions
- li
- = link_to t('vehicle_journeys.actions.new'), new_referential_line_route_vehicle_journey_path(@referential, @line, @route), class: "add"
-
- li
- = link_to t('vehicle_journeys.actions.new_frequency'), new_referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route), class: "add"
-
- li
- = link_to t('vehicle_journeys.actions.edit_frequency'), edit_referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route, @vehicle_journey_frequency), class: "edit"
-
- li
- = link_to t('vehicle_journeys.actions.destroy'), referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route, @vehicle_journey_frequency), method: :delete, data: { confirm: t('vehicle_journeys.actions.destroy_confirm') }, class: "remove"
-
- = creation_tag(@vehicle_journey_frequency) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_show_vehicle_journey_at_stops.html.slim b/app/views/vehicle_journey_frequencies/_show_vehicle_journey_at_stops.html.slim
deleted file mode 100644
index 24517309c..000000000
--- a/app/views/vehicle_journey_frequencies/_show_vehicle_journey_at_stops.html.slim
+++ /dev/null
@@ -1,22 +0,0 @@
-.vehicle_journey_at_stops.content
- table.table-striped.ce-TimeBandFormTable
- thead
- tr
- th.stop.title = t('vehicle_journeys.show.stop_title')
- th
- th.hour.title = t('vehicle_journeys.show.arrival')
- th.hour.title = t('vehicle_journeys.show.departure')
-
- tbody
- - @vehicle_journey_frequency.vehicle_journey_at_stops.each do |vjas|
- tr class="#{cycle :odd, :even}"
- td = link_to vjas.stop_point.stop_area.name, [@referential, vjas.stop_point.stop_area]
- td.ce-TimeBandFormTable-circleLine
- span.ce-TimeBandFormTable-circle
- span.ce-TimeBandFormTable-line
-
- td class="hour #{'missing' if vjas.arrival_time.nil?}"
- = l(vjas.arrival_time, format: :hour) if vjas.arrival_time
-
- td class="hour #{'missing' if vjas.departure_time.nil?}"
- = l(vjas.departure_time, format: :hour) if vjas.departure_time \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_vehicle_journey_at_stop_fields.html.slim b/app/views/vehicle_journey_frequencies/_vehicle_journey_at_stop_fields.html.slim
deleted file mode 100644
index 6352cebdf..000000000
--- a/app/views/vehicle_journey_frequencies/_vehicle_journey_at_stop_fields.html.slim
+++ /dev/null
@@ -1,23 +0,0 @@
-- vjas = vehicle_journey_at_stop
-- tab_counter_arrival = 2 * vehicle_journey_at_stop_counter + 100
-- tab_counter_departure = (vehicle_journey_at_stops_size * 2) + 2 * vehicle_journey_at_stop_counter + 100
-
-tr class="time input optional #{'no_stop' if vjas._destroy} #{cycle :odd, :even}"
- td
- = {id: vjas.id, _destroy: (vjas._destroy ? 1 : 0), stop_point_id: vjas.stop_point_id, :'departure_time(3i)' => 1, :'departure_time(2i)' => 1, :'departure_time(1i)' => 1, :'arrival_time(3i)' => 1, :'arrival_time(2i)' => 1, :'arrival_time(1i)' => 2000}.map{ |k, v| "<input name=\"vehicle_journey_frequency[vehicle_journey_at_stops_attributes][#{vehicle_journey_at_stop_counter}][#{k}]\" type=\"hidden\" value=\"#{v}\">" }.join("\n").html_safe
-
- = vjas.stop_point.stop_area.name
-
- td.ce-TimeBandFormTable-circleLine
- span.ce-TimeBandFormTable-circle
- span.ce-TimeBandFormTable-line
-
- td class="arrival_time #{'missing' unless vjas.arrival_time} #{'invalid_position' if vjas.errors[:arrival_time].present?}"
- = select_hour(vjas.arrival_time ? vjas.arrival_time.hour : 0, { prefix: 'vehicle_journey_frequency', field_name: "vehicle_journey_at_stops_attributes[#{vehicle_journey_at_stop_counter}][arrival_time(4i)]" }, class: 'hour', tabindex: tab_counter_arrival + 1)
-
- = select_minute(vjas.arrival_time ? vjas.arrival_time.min : 0, { prefix: 'vehicle_journey_frequency', field_name: "vehicle_journey_at_stops_attributes[#{vehicle_journey_at_stop_counter}][arrival_time(5i)]" }, class: 'minute', tabindex: tab_counter_arrival + 2)
-
- td class="departure_time #{'missing' unless vjas.departure_time} #{'invalid_position' if vjas.errors[:departure_time].present?}"
- = select_hour(vjas.departure_time ? vjas.departure_time.hour : 0, { prefix: 'vehicle_journey_frequency', field_name: "vehicle_journey_at_stops_attributes[#{vehicle_journey_at_stop_counter}][departure_time(4i)]" }, class: 'hour', tabindex: tab_counter_departure + 1)
-
- = select_minute(vjas.departure_time ? vjas.departure_time.min : 0, { prefix: 'vehicle_journey_frequency', field_name: "vehicle_journey_at_stops_attributes[#{vehicle_journey_at_stop_counter}][departure_time(5i)]" }, class: 'minute', tabindex: tab_counter_departure + 2) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/_vehicle_journeys_matrix.html.slim b/app/views/vehicle_journey_frequencies/_vehicle_journeys_matrix.html.slim
deleted file mode 100644
index be6e76e08..000000000
--- a/app/views/vehicle_journey_frequencies/_vehicle_journeys_matrix.html.slim
+++ /dev/null
@@ -1,11 +0,0 @@
-ul.ce-VehicleJourneyFrequenciesMatrix
- - @vehicle_journeys.each do |vj|
- li
- ul
- - vj.journey_frequencies.each do |jf|
- - left, width = journey_frequency_percent(jf)
-
- li style="left:#{left};width:#{width};" data-style="primary" data-container="body" rel="popover" data-toggle="popover" data-title="#{link_to(vehicle_title(vj, jf), [@referential, @line, @route, vj] )} #{link_to('<span class="fa fa-pencil"></span>'.html_safe, send("edit_referential_line_route_vehicle_journey#{'_frequency' if vj.frequency?}_path", @referential, @line, @route, vj), class: "btn btn-default btn-sm" )}" data-placement= "top" data-content="#{render 'vehicle_journeys/show_popover', { vehicle_journey: vj }}"
-
- span.ce-VehicleJourneyFrequenciesMatrix-firstDepartureTime = l(jf.first_departure_time, format: :hour)
- span.ce-VehicleJourneyFrequenciesMatrix-lastDepartureTime = l(jf.last_departure_time, format: :hour) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/edit.html.slim b/app/views/vehicle_journey_frequencies/edit.html.slim
deleted file mode 100644
index af5f1d88e..000000000
--- a/app/views/vehicle_journey_frequencies/edit.html.slim
+++ /dev/null
@@ -1,3 +0,0 @@
-= title_tag edit_vehicle_title(@vehicle_journey_frequency)
-
-== render 'vehicle_journeys/form', vehicle_journey: @vehicle_journey_frequency, form_url: referential_line_route_vehicle_journey_frequency_path(@referential, @line, @route, id: @vehicle_journey_frequency) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/edit.js.slim b/app/views/vehicle_journey_frequencies/edit.js.slim
deleted file mode 100644
index de74b80c7..000000000
--- a/app/views/vehicle_journey_frequencies/edit.js.slim
+++ /dev/null
@@ -1,10 +0,0 @@
-| $(document).ready(function() {
-| $("#vehicle_journey_frequency_journey_pattern_id").change(
-| function(){
-| var url = "#{select_journey_pattern_referential_line_route_vehicle_journey_path( @referential, @line, @route, @vehicle_journey_frequency)}?journey_pattern_id="+
-| $("#vehicle_journey_frequency_journey_pattern_input select option:selected").attr("value");
-| url += "&journey_category=frequency";
-| $.get(url);
-| }
-| );
-| }); \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/new.html.slim b/app/views/vehicle_journey_frequencies/new.html.slim
deleted file mode 100644
index 86a9d144c..000000000
--- a/app/views/vehicle_journey_frequencies/new.html.slim
+++ /dev/null
@@ -1,3 +0,0 @@
-= title_tag t('vehicle_journeys.new.title_frequency')
-
-== render 'vehicle_journeys/form', vehicle_journey: @vehicle_journey_frequency, form_url: referential_line_route_vehicle_journey_frequencies_path(@referential, @line, @route) \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/new.js.slim b/app/views/vehicle_journey_frequencies/new.js.slim
deleted file mode 100644
index f4d742f72..000000000
--- a/app/views/vehicle_journey_frequencies/new.js.slim
+++ /dev/null
@@ -1,13 +0,0 @@
-| $(document).ready(function() {
-| $("#vehicle_journey_frequency_journey_pattern_id").change(
-| function(){
-| var vehicle_journey_journey_pattern_id = $("#vehicle_journey_frequency_journey_pattern_input select option:selected").attr("value");
-| if (vehicle_journey_journey_pattern_id > 0) {
-| var url = "#{referential_line_route_journey_patterns_path(@referential.id,@line.id,@route.id)}";
-| url = url + "/" + vehicle_journey_journey_pattern_id +
-| "/new_vehicle_journey?journey_category=frequency";
-| $.get(url);
-| }
-| }
-| );
-| }); \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/select_journey_pattern.js.slim b/app/views/vehicle_journey_frequencies/select_journey_pattern.js.slim
deleted file mode 100644
index 205fee59e..000000000
--- a/app/views/vehicle_journey_frequencies/select_journey_pattern.js.slim
+++ /dev/null
@@ -1 +0,0 @@
-| $('.journey_pattern_dependent_list').html("#{escape_javascript(render(partial: 'vehicle_journey_frequencies/vehicle_journey_at_stop_fields', collection: @vehicle_journey.vehicle_journey_at_stops, as: :vehicle_journey_at_stop, locals: { vehicle_journey_at_stops_size: @vehicle_journey.vehicle_journey_at_stops.size })).html_safe}"); \ No newline at end of file
diff --git a/app/views/vehicle_journey_frequencies/show.html.slim b/app/views/vehicle_journey_frequencies/show.html.slim
deleted file mode 100644
index 9701dbba9..000000000
--- a/app/views/vehicle_journey_frequencies/show.html.slim
+++ /dev/null
@@ -1,3 +0,0 @@
-== render 'vehicle_journeys/show_details', vehicle_journey: @vehicle_journey_frequency
-== render 'show_journey_frequencies'
-== render 'show_sidebar'