mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-23 20:10:52 +00:00
Fixing Product buttons action
It were pointing to /product/id but needs to point to /product.
This commit is contained in:
parent
3469924cdf
commit
ff9960be65
@ -4,17 +4,17 @@
|
|||||||
|
|
||||||
<!-- EDIT BUTTON -->
|
<!-- EDIT BUTTON -->
|
||||||
@if ($product->user_id == \Auth::id())
|
@if ($product->user_id == \Auth::id())
|
||||||
<form action="/product/{{$product->id}}" method="POST">
|
<form action="/product" method="POST">
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<button type="button" class="btn-sm btn-secondary mr-1">Edit</button>
|
<button type="submit" class="btn-sm btn-secondary mr-1">Edit</button>
|
||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
<!-- DELETE BUTTON -->
|
<!-- DELETE BUTTON -->
|
||||||
<form action="/product/{{$product->id}}" method="POST">
|
<form action="/product" method="POST">
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<button type="button" class="btn-sm btn-danger">Delete</button>
|
<button type="submit" class="btn-sm btn-danger">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user