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 yarn-error.log
.env .env
.vscode/ .vscode/

3
public/js/app.js vendored
View File

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

View File

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

View File

@ -2,32 +2,31 @@
@section('title', 'Veranstaltungen') @section('title', 'Veranstaltungen')
@section('content') @section('content')
<a class="btn btn-link" href="{{ route('veranstaltung.create') }}">Veranstaltung hinzufügen</a>
<table class="highlight"> <table class="highlight">
<thead> <thead>
<tr> <tr>
<th class="text-center">Name</th> <th class="centered">Name</th>
<th class="text-center">Datum</th> <th class="centered">Datum</th>
<th class="text-center">Zeit</th> <th class="centered">Zeit</th>
<th class="text-center">Eingetragen</th> <th class="centered">Eingetragen</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@foreach ($veranstaltungen as $v) @foreach ($veranstaltungen as $v)
<tr > <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('d.m.Y') }}</td>
<td>{{ $v->beginn->format('H:i') }}</td> <td>{{ $v->beginn->format('H:i') }}</td>
<td class="text-center"> <td class="centered">
@if(!$v->ist_eingetragen) @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 @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 @endif
</td> </td>
<td class="row"> <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> <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> </td>
</tr> </tr>