changed route name and table data to show correct info

This commit is contained in:
Vedde 2020-06-29 08:30:31 +02:00
parent 578dd8d522
commit b46f8f7b0a
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
@section("content") @section("content")
<h1>Rediger Link:</h1> <h1>Rediger Link:</h1>
<form method="post" action="{{ route("external-links.update", ['name' => $link->name]) }}"> <form method="post" action="{{ route("external-links.edit", ['external_link' => $link]) }}">
@csrf @csrf
<label for="title">Titel:</label> <label for="title">Titel:</label>
<input type="text" name="title" id="title" required> <input type="text" name="title" id="title" required>

View File

@ -19,8 +19,8 @@
</tr> </tr>
@foreach($links as $link) @foreach($links as $link)
<tr> <tr>
<th>{Titel}</th> <th>{{$link->name}}</th>
<th>{Link}</th> <th><a href="{{$link->link}}">{{$link->link}}</th>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr> </tr>