diff --git a/lib/runosaari_web/templates/location/edit.html.eex b/lib/runosaari_web/templates/location/edit.html.eex index ff3f501..c473d49 100644 --- a/lib/runosaari_web/templates/location/edit.html.eex +++ b/lib/runosaari_web/templates/location/edit.html.eex @@ -1,5 +1,5 @@

Edit Location

-<%= render "form.html", Map.put(assigns, :action, Routes.location_path(@conn, :update, @location)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_location_path(@conn, :update, @location)) %> <%= link "Back", to: Routes.location_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/location/index.html.eex b/lib/runosaari_web/templates/location/index.html.eex index 2bc7014..eb35e96 100644 --- a/lib/runosaari_web/templates/location/index.html.eex +++ b/lib/runosaari_web/templates/location/index.html.eex @@ -23,12 +23,12 @@ <%= link "Show", to: Routes.location_path(@conn, :show, location) %> - <%= link "Edit", to: Routes.location_path(@conn, :edit, location) %> - <%= link "Delete", to: Routes.location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %> + <%= link "Edit", to: Routes.admin_location_path(@conn, :edit, location) %> + <%= link "Delete", to: Routes.admin_location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %> <% end %> -<%= link "New Location", to: Routes.location_path(@conn, :new) %> +<%= link "New Location", to: Routes.admin_location_path(@conn, :new) %> diff --git a/lib/runosaari_web/templates/location/new.html.eex b/lib/runosaari_web/templates/location/new.html.eex index 2d846d9..f3afd0f 100644 --- a/lib/runosaari_web/templates/location/new.html.eex +++ b/lib/runosaari_web/templates/location/new.html.eex @@ -1,5 +1,5 @@

New Location

-<%= render "form.html", Map.put(assigns, :action, Routes.location_path(@conn, :create)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_location_path(@conn, :create)) %> <%= link "Back", to: Routes.location_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/location/show.html.eex b/lib/runosaari_web/templates/location/show.html.eex index e26e258..7f11456 100644 --- a/lib/runosaari_web/templates/location/show.html.eex +++ b/lib/runosaari_web/templates/location/show.html.eex @@ -29,5 +29,5 @@ -<%= link "Edit", to: Routes.location_path(@conn, :edit, @location) %> +<%= link "Edit", to: Routes.admin_location_path(@conn, :edit, @location) %> <%= link "Back", to: Routes.location_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/performance/edit.html.eex b/lib/runosaari_web/templates/performance/edit.html.eex index 7efad9d..d3eaeaf 100644 --- a/lib/runosaari_web/templates/performance/edit.html.eex +++ b/lib/runosaari_web/templates/performance/edit.html.eex @@ -1,5 +1,5 @@

Edit Performance

-<%= render "form.html", Map.put(assigns, :action, Routes.performance_path(@conn, :update, @performance)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :update, @performance)) %> <%= link "Back", to: Routes.performance_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/performance/index.html.eex b/lib/runosaari_web/templates/performance/index.html.eex index b37e197..026af55 100644 --- a/lib/runosaari_web/templates/performance/index.html.eex +++ b/lib/runosaari_web/templates/performance/index.html.eex @@ -19,12 +19,12 @@ <%= link "Show", to: Routes.performance_path(@conn, :show, performance) %> - <%= link "Edit", to: Routes.performance_path(@conn, :edit, performance) %> - <%= link "Delete", to: Routes.performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Are you sure?"] %> + <%= link "Edit", to: Routes.admin_performance_path(@conn, :edit, performance) %> + <%= link "Delete", to: Routes.admin_performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Are you sure?"] %> <% end %> -<%= link "New Performance", to: Routes.performance_path(@conn, :new) %> +<%= link "New Performance", to: Routes.admin_performance_path(@conn, :new) %> diff --git a/lib/runosaari_web/templates/performance/new.html.eex b/lib/runosaari_web/templates/performance/new.html.eex index bbd61b7..8a760f4 100644 --- a/lib/runosaari_web/templates/performance/new.html.eex +++ b/lib/runosaari_web/templates/performance/new.html.eex @@ -1,5 +1,5 @@

New Performance

-<%= render "form.html", Map.put(assigns, :action, Routes.performance_path(@conn, :create)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :create)) %> <%= link "Back", to: Routes.performance_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/performance/show.html.eex b/lib/runosaari_web/templates/performance/show.html.eex index fd2dd3c..8f17292 100644 --- a/lib/runosaari_web/templates/performance/show.html.eex +++ b/lib/runosaari_web/templates/performance/show.html.eex @@ -19,5 +19,5 @@ -<%= link "Edit", to: Routes.performance_path(@conn, :edit, @performance) %> +<%= link "Edit", to: Routes.admin_performance_path(@conn, :edit, @performance) %> <%= link "Back", to: Routes.performance_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/performer/edit.html.eex b/lib/runosaari_web/templates/performer/edit.html.eex index 74fc39f..203dbed 100644 --- a/lib/runosaari_web/templates/performer/edit.html.eex +++ b/lib/runosaari_web/templates/performer/edit.html.eex @@ -1,5 +1,5 @@

Edit Performer

-<%= render "form.html", Map.put(assigns, :action, Routes.performer_path(@conn, :update, @performer)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :update, @performer)) %> <%= link "Back", to: Routes.performer_path(@conn, :index) %> diff --git a/lib/runosaari_web/templates/performer/index.html.eex b/lib/runosaari_web/templates/performer/index.html.eex index 7c0729f..39f6da1 100644 --- a/lib/runosaari_web/templates/performer/index.html.eex +++ b/lib/runosaari_web/templates/performer/index.html.eex @@ -25,10 +25,12 @@ <%= link "Show", to: Routes.performer_path(@conn, :show, performer) %> - <%= link "Edit", to: Routes.performer_path(@conn, :edit, performer) %> - <%= link "Delete", to: Routes.performer_path(@conn, :delete, performer), method: :delete, data: [confirm: "Are you sure?"] %> + <%= link "Edit", to: Routes.admin_performer_path(@conn, :edit, performer) %> + <%= link "Delete", to: Routes.admin_performer_path(@conn, :delete, performer), method: :delete, data: [confirm: "Are you sure?"] %> <% end %> + +<%= link "New Performance", to: Routes.admin_performance_path(@conn, :new) %> diff --git a/lib/runosaari_web/templates/performer/new.html.eex b/lib/runosaari_web/templates/performer/new.html.eex index 65796cb..3fed11a 100644 --- a/lib/runosaari_web/templates/performer/new.html.eex +++ b/lib/runosaari_web/templates/performer/new.html.eex @@ -1,3 +1,3 @@

Ilmoittaudu

-<%= render "form.html", Map.put(assigns, :action, Routes.performer_path(@conn, :create)) %> +<%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :create)) %> diff --git a/lib/runosaari_web/templates/performer/show.html.eex b/lib/runosaari_web/templates/performer/show.html.eex index f8e601d..1b2534c 100644 --- a/lib/runosaari_web/templates/performer/show.html.eex +++ b/lib/runosaari_web/templates/performer/show.html.eex @@ -34,5 +34,5 @@ -<%= link "Edit", to: Routes.performer_path(@conn, :edit, @performer) %> +<%= link "Edit", to: Routes.admin_performer_path(@conn, :edit, @performer) %> <%= link "Back", to: Routes.performer_path(@conn, :index) %>