modified veranstaltungen.index
This commit is contained in:
parent
4bac3f00cb
commit
00073ccafb
3
.gitignore
vendored
3
.gitignore
vendored
@ -10,5 +10,4 @@ Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
.env
|
||||
.vscode/
|
||||
|
||||
.vscode/
|
||||
3
public/js/app.js
vendored
3
public/js/app.js
vendored
@ -20287,7 +20287,8 @@ $(document).ready(function(){
|
||||
$.get($me.data('href'),function(data){
|
||||
$me.html(data);
|
||||
});
|
||||
});
|
||||
});
|
||||
$('.tooltipped').tooltip({delay:50});
|
||||
});
|
||||
|
||||
$(".confirm-logout").click(function() {
|
||||
|
||||
5
resources/lang/en/veranstaltungen.php
Normal file
5
resources/lang/en/veranstaltungen.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
@ -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">✔</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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user