Edit paddock name and state.

TODO: keep track of paddock openings.
This commit is contained in:
2020-04-17 09:57:10 +02:00
parent 19e1123ef5
commit 6a57222caf
3 changed files with 60 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
<th>Id</th>
<th>Nom</th>
<th>État</th>
<th>Actions</th>
<th colspan="2">Actions</th>
</thead>
<tbody>
@foreach($paddocks as $paddock)
@@ -22,6 +22,9 @@
<td>{{ $paddock->id }}</td>
<td>{{ $paddock->name }}</td>
<td>{{ $paddock->isClosed ? 'Fermé' : 'Ouvert' }}</td>
<td>
<a href="{{ route('paddocks.edit', $paddock->id)}}">Éditer</a>
</td>
<td>
<form action="{{ route('paddocks.destroy', $paddock->id)}}" method="post">
{{ csrf_field() }}