Admin actions behind admin path.
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
|
||||
<td>
|
||||
<span><%= link "Show", to: Routes.location_path(@conn, :show, location) %></span>
|
||||
<span><%= link "Edit", to: Routes.location_path(@conn, :edit, location) %></span>
|
||||
<span><%= link "Delete", to: Routes.location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
<span><%= link "Edit", to: Routes.admin_location_path(@conn, :edit, location) %></span>
|
||||
<span><%= link "Delete", to: Routes.admin_location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Location", to: Routes.location_path(@conn, :new) %></span>
|
||||
<span><%= link "New Location", to: Routes.admin_location_path(@conn, :new) %></span>
|
||||
|
||||
Reference in New Issue
Block a user