Changed admin path helper for admin paths.

This commit is contained in:
codevictory
2021-05-04 23:12:55 +03:00
parent 80d9166abc
commit 95cadab9c6
11 changed files with 36 additions and 36 deletions

View File

@@ -16,7 +16,7 @@
<td><%= performance.desc %></td>
<td>
<span><%= link "Lisätietoja", to: Routes.performance_path(@conn, :show, performance) %></span>
<span><%= link "Lisätietoja", to: Routes.admin_performance_path(@conn, :show, performance) %></span>
<span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, performance) %></span>
<span><%= link "Poista", to: Routes.admin_performance_path(@conn, :delete, performance), method: :delete, data: [confirm: "Haluatko poistaa näytöksen #{performance.name}?"] %></span>
</td>