aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_stop_areas
diff options
context:
space:
mode:
authorcedricnjanga2018-05-23 17:21:03 -0700
committerJohan Van Ryseghem2018-05-29 14:41:02 +0200
commitf6c2141a1672acb7010f2e7b961e53b0e34a21cb (patch)
treed3a27c213e1c1ad2383d2dd1784e00b7df313121 /app/views/referential_stop_areas
parent79e89af12bbc865b6defafa27dca5dafd72df3ef (diff)
downloadchouette-core-f6c2141a1672acb7010f2e7b961e53b0e34a21cb.tar.bz2
Refs #6860 Remove all call of referential_stop_areas_path & referential_stop_area_path
Diffstat (limited to 'app/views/referential_stop_areas')
-rw-r--r--app/views/referential_stop_areas/_stop_area.html.slim4
-rw-r--r--app/views/referential_stop_areas/edit.html.slim2
-rw-r--r--app/views/referential_stop_areas/index.html.slim6
-rw-r--r--app/views/referential_stop_areas/new.html.slim2
-rw-r--r--app/views/referential_stop_areas/show.html.slim2
5 files changed, 8 insertions, 8 deletions
diff --git a/app/views/referential_stop_areas/_stop_area.html.slim b/app/views/referential_stop_areas/_stop_area.html.slim
index bb9ed7ce3..e4dfe63fa 100644
--- a/app/views/referential_stop_areas/_stop_area.html.slim
+++ b/app/views/referential_stop_areas/_stop_area.html.slim
@@ -3,11 +3,11 @@
.panel-title.clearfix
span.pull-right
- if policy(stop_area).update?
- = link_to edit_referential_stop_area_path(@referential, stop_area), class: 'btn btn-default btn-sm' do
+ = link_to edit_stop_area_referential_stop_area_path(stop_area.stop_area_referential, stop_area), class: 'btn btn-default btn-sm' do
span.fa.fa-pencil
- if policy(stop_area).destroy?
- = link_to referential_stop_area_path(@referential, stop_area), method: :delete, :data => {:confirm => t('stop_areas.actions.destroy_confirm')}, class: 'btn btn-danger btn-sm' do
+ = link_to stop_area_referential_stop_area_path(stop_area.stop_area_referential, stop_area), method: :delete, :data => {:confirm => t('stop_areas.actions.destroy_confirm')}, class: 'btn btn-danger btn-sm' do
span.fa.fa-trash-o
h5
diff --git a/app/views/referential_stop_areas/edit.html.slim b/app/views/referential_stop_areas/edit.html.slim
index d88230b58..4641cf0be 100644
--- a/app/views/referential_stop_areas/edit.html.slim
+++ b/app/views/referential_stop_areas/edit.html.slim
@@ -1,3 +1,3 @@
-- breadcrumb :referential_stop_area, @referential, @stop_area
+- breadcrumb :stop_area, @stop_area.stop_area_referential, @stop_area
- page_header_content_for @stop_area
= render 'form'
diff --git a/app/views/referential_stop_areas/index.html.slim b/app/views/referential_stop_areas/index.html.slim
index ad04fb02e..39073540d 100644
--- a/app/views/referential_stop_areas/index.html.slim
+++ b/app/views/referential_stop_areas/index.html.slim
@@ -1,6 +1,6 @@
-- breadcrumb :referential_stop_areas, @referential
+- breadcrumb :stop_areas, @referential.workbench.stop_area_referential
-= search_form_for @q, :url => referential_stop_areas_path(@referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f|
+= search_form_for @q, :url => stop_area_referential_stop_areas_path(@referential.workbench.stop_area_referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f|
.panel.panel-default
.panel-heading
.input-group.col-md-9.col-sm-9
@@ -29,6 +29,6 @@
ul.actions
- if policy(Chouette::StopArea).create?
li
- = link_to t('stop_areas.actions.new'), new_referential_stop_area_path(@referential), class: 'add'
+ = link_to t('stop_areas.actions.new'), new_stop_area_referential_stop_area_path(@referential.workbench.stop_area_referential), class: 'add'
li
/ = link_to t('stop_areas.actions.default_geometry'), default_geometry_referential_stop_areas_path(@referential), :method => :put, :class => "calculator"
diff --git a/app/views/referential_stop_areas/new.html.slim b/app/views/referential_stop_areas/new.html.slim
index 9342b673b..8fbef33de 100644
--- a/app/views/referential_stop_areas/new.html.slim
+++ b/app/views/referential_stop_areas/new.html.slim
@@ -1,2 +1,2 @@
-- breadcrumb :referential_stop_areas, @referential
+- breadcrumb :stop_areas, @referential.workbench.stop_area_referential
= render 'form'
diff --git a/app/views/referential_stop_areas/show.html.slim b/app/views/referential_stop_areas/show.html.slim
index 06096bbaa..d464eb438 100644
--- a/app/views/referential_stop_areas/show.html.slim
+++ b/app/views/referential_stop_areas/show.html.slim
@@ -1,4 +1,4 @@
-- breadcrumb :referential_stop_area, @referential, @stop_area
+- breadcrumb :stop_area, @stop_area.stop_area_referential, @stop_area
- page_header_content_for @stop_area
.page_content