Changed admin path helper for admin paths.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<h1>Edit Visitor</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.visitor_path(@conn, :update, @visitor)) %>
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_visitor_path(@conn, :update, @visitor)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.visitor_path(@conn, :index) %></span>
|
||||
<span><%= link "Back", to: Routes.admin_visitor_path(@conn, :index) %></span>
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
<td><%= visitor.accom %></td>
|
||||
|
||||
<td>
|
||||
<span><%= link "Show", to: Routes.visitor_path(@conn, :show, visitor) %></span>
|
||||
<span><%= link "Edit", to: Routes.visitor_path(@conn, :edit, visitor) %></span>
|
||||
<span><%= link "Delete", to: Routes.visitor_path(@conn, :delete, visitor), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
<span><%= link "Show", to: Routes.admin_visitor_path(@conn, :show, visitor) %></span>
|
||||
<span><%= link "Edit", to: Routes.admin_visitor_path(@conn, :edit, visitor) %></span>
|
||||
<span><%= link "Delete", to: Routes.admin_visitor_path(@conn, :delete, visitor), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -49,5 +49,5 @@
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: Routes.visitor_path(@conn, :edit, @visitor) %></span>
|
||||
<span><%= link "Back", to: Routes.visitor_path(@conn, :index) %></span>
|
||||
<span><%= link "Edit", to: Routes.admin_visitor_path(@conn, :edit, @visitor) %></span>
|
||||
<span><%= link "Back", to: Routes.admin_visitor_path(@conn, :index) %></span>
|
||||
|
||||
Reference in New Issue
Block a user