diff options
Diffstat (limited to 'app/views')
33 files changed, 0 insertions, 445 deletions
| 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' | 
