modifications for materialize
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
@section('content')
|
||||
<a class="btn btn-link" href="{{ route('veranstaltung.create') }}">Veranstaltung hinzufügen</a>
|
||||
|
||||
<table class="table-hover table">
|
||||
<table class="highlight">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">Name</th>
|
||||
@@ -15,8 +15,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach ($veranstaltungen as $v)
|
||||
<tr class="clickable-row" data-href="{{ route('veranstaltung.show', [$v]) }}">
|
||||
<td>{{ $v->name }}</td>
|
||||
<tr >
|
||||
<td class="clickable-row" data-href="{{ route('veranstaltung.show', [$v]) }}">{{ $v->name }}</td>
|
||||
<td>{{ $v->beginn->format('d.m.Y') }}</td>
|
||||
<td>{{ $v->beginn->format('H:i') }}</td>
|
||||
<td class="text-center">
|
||||
@@ -28,15 +28,24 @@
|
||||
</td>
|
||||
<td class="row">
|
||||
<a class="btn btn-link my-0 py-0" href="{{ route('veranstaltung.edit', [$v]) }}">Bearbeiten</a>
|
||||
|
||||
<form method="POST" action="{{ route('veranstaltung.destroy', $v) }}">
|
||||
{!! method_field('delete') !!}
|
||||
{!! csrf_field() !!}
|
||||
<button class="btn btn-link text-danger my-0 py-0">Löschen</button>
|
||||
</form>
|
||||
<a class="btn-flat waves-effect wave-red red-text modal-trigger" href="#confirmDeletionModal" data-url="{{route('veranstaltung.destroy', $v)}}" data-identifier="{{$v->name}}"><i class="material-icons">delete</i></button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
@endsection
|
||||
@endsection
|
||||
|
||||
@php
|
||||
$fabActions = [
|
||||
[
|
||||
'icon' => "add",
|
||||
'link' => route('veranstaltung.create'),
|
||||
'color' => "red"
|
||||
]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@push('modals')
|
||||
@include('shared.modals.confirmDeletion', [])
|
||||
@endpush
|
||||
Reference in New Issue
Block a user