Fix admin side paths to point back to admin not index.

This commit is contained in:
codevictory
2021-05-26 21:59:42 +03:00
parent 5a85e51a01
commit c010d04f02
9 changed files with 14 additions and 10 deletions

View File

@@ -2,4 +2,4 @@
<%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :update, @index)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :update, @index)) %>
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_index_path(@conn, :admin) %></span>

View File

@@ -3,5 +3,5 @@
<%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :create)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :create)) %>
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_index_path(@conn, :admin) %></span>
</section> </section>

View File

@@ -16,5 +16,5 @@
</ul> </ul>
<span><%= link "Muokkaa", to: Routes.admin_index_path(@conn, :edit, @index) %></span> <span><%= link "Muokkaa", to: Routes.admin_index_path(@conn, :edit, @index) %></span>
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_index_path(@conn, :admin) %></span>
</section> </section>

View File

@@ -2,4 +2,4 @@
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :update, @performance)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :update, @performance)) %>
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_performance_path(@conn, :admin) %></span>

View File

@@ -1,5 +1,7 @@
<section class="main">
<h1>Luo näytös</h1> <h1>Luo näytös</h1>
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :create)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_performance_path(@conn, :create)) %>
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_performance_path(@conn, :admin) %></span>
</section>

View File

@@ -16,5 +16,5 @@
</ul> </ul>
<span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, @performance) %></span> <span><%= link "Muokkaa", to: Routes.admin_performance_path(@conn, :edit, @performance) %></span>
<span><%= link "Takaisin", to: Routes.performance_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_performance_path(@conn, :admin) %></span>
</section> </section>

View File

@@ -2,4 +2,4 @@
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :update, @performer)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :update, @performer)) %>
<span><%= link "Takaisin", to: Routes.performer_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_performer_path(@conn, :admin) %></span>

View File

@@ -2,4 +2,6 @@
<h1>Luo esiintyjä</h1> <h1>Luo esiintyjä</h1>
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :create)) %> <%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :create)) %>
<span><%= link "Takaisin", to: Routes.admin_performer_path(@conn, :admin) %></span>
</section> </section>

View File

@@ -26,5 +26,5 @@
</ul> </ul>
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, @performer) %></span> <span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, @performer) %></span>
<span><%= link "Takaisin", to: Routes.performer_path(@conn, :index) %></span> <span><%= link "Takaisin", to: Routes.admin_performer_path(@conn, :admin) %></span>
</section> </section>