modified veranstaltungen.index

This commit is contained in:
TLRZ Seyfferth 2017-09-14 10:01:21 +02:00
parent 4bac3f00cb
commit 00073ccafb
4 changed files with 18 additions and 14 deletions

1
.gitignore vendored
View File

@ -11,4 +11,3 @@ npm-debug.log
yarn-error.log
.env
.vscode/

1
public/js/app.js vendored
View File

@ -20288,6 +20288,7 @@ $(document).ready(function(){
$me.html(data);
});
});
$('.tooltipped').tooltip({delay:50});
});
$(".confirm-logout").click(function() {

View File

@ -0,0 +1,5 @@
<?php
return [
];

View File

@ -2,32 +2,31 @@
@section('title', 'Veranstaltungen')
@section('content')
<a class="btn btn-link" href="{{ route('veranstaltung.create') }}">Veranstaltung hinzufügen</a>
<table class="highlight">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center">Datum</th>
<th class="text-center">Zeit</th>
<th class="text-center">Eingetragen</th>
<th class="centered">Name</th>
<th class="centered">Datum</th>
<th class="centered">Zeit</th>
<th class="centered">Eingetragen</th>
<th></th>
</tr>
</thead>
@foreach ($veranstaltungen as $v)
<tr >
<td class="clickable-row" data-href="{{ route('veranstaltung.show', [$v]) }}">{{ $v->name }}</td>
<td>{{ $v->name }}</td>
<td>{{ $v->beginn->format('d.m.Y') }}</td>
<td>{{ $v->beginn->format('H:i') }}</td>
<td class="text-center">
<td class="centered">
@if(!$v->ist_eingetragen)
<a class="btn btn-link my-0 py-0" href="{{ route('veranstaltung.enter', [$v]) }}">Eintragen</a>
<a class="btn-flat waves-effect waves-green" href="{{ route('veranstaltung.enter', [$v]) }}">Eintragen</a>
@else
<span class="text-success">&#10004;</span>
<span class="green-text tooltipped" title="Du bist schon eingetragen"><i class="material-icons">check</i></span>
@endif
</td>
<td class="row">
<a class="btn btn-link my-0 py-0" href="{{ route('veranstaltung.edit', [$v]) }}">Bearbeiten</a>
<a class="btn-flat waves-effect" href="{{ route('veranstaltung.show', [$v]) }}">Details</a>
<a class="btn-flat waves-effect" href="{{ route('veranstaltung.edit', [$v]) }}">Bearbeiten</a>
<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>