Delete User, Start of money ranking

This commit is contained in:
Torsten 2017-09-03 09:03:39 +02:00
parent 054a8d6f63
commit 0b97ae656f
13 changed files with 3330 additions and 36 deletions

View file

@ -13,6 +13,7 @@
<a class="lead" href="/roundmails">Rundmail</a> &nbsp; &nbsp; &nbsp;
@endif
<a class="lead" href="/users/show_payouts">Quoten</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/users/payout">Geldrangliste</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/tipps#{{\App\Round::getFirstTippableRound()->id}}">Tipps</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/users/ranking/roundid_-1#playerid_{{Auth::user()->id}}" >Rangliste</a> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;

View file

@ -11,7 +11,7 @@
<div><p class="blink_text">{{ $message_text_joker }}</p></div>
@endif
@if (strlen($nextRoundLockTime)>0)
<div><p class="blink_text">{{ $nextRoundName }} sperrt sich: {{ $nextRoundLockTime }} ( noch {{ $hourDiffToLock }} Stunden )</p></div>
<div><p class="blink_text">{{ $nextRoundName }} sperrt sich: {{ $nextRoundLockTime }} ( noch {{ $hourDiffToLock }} )</p></div>
@endif
@endif
@endif

View file

@ -3,7 +3,8 @@
@section('content')
<div class="col-md-8">
<h1>Spieler bearbeiten</h1>
<a style="float:right;" href="#" class="btn btn-primary">Spielerkonto löschen</a>
<button onclick="confirmDecision();return false;" type="submit" class="btn btn-primary" style="float:none; width:200px">Spielerkonto löschen</button>
<p>&nbsp;</p>
<p>&nbsp;</p>
@ -68,4 +69,15 @@
<p>&nbsp;</p>
</div>
<script type="text/javascript">
function confirmDecision(){
if (confirm('Spieler löschen ?')){
window.location.href = '/users/delete/' + '{{ $user->id }}';
} else {
}
}
</script>
@endsection

View file

@ -0,0 +1,33 @@
@extends('layouts.layout')
@section('content')
<section class="jumbotron text-center container">
<div class="lead col-md-8" >Geldrangliste </div>
<p>&nbsp;</p>
<div class="col-md-12">
<table class="table-bordered" >
<tr class="table-bordered">
<td class="table-bordered col-std-2">Name</td>
<td class="table-bordered col-std-2">&nbsp;Ausschüttung&nbsp;</td>
</tr>
@foreach($sortedPayout as $payout)
<tr>
<td class="table-bordered col-md-4" >&nbsp;<a class="text list-unstyled" name="playerid_{{$payout['user_id']}}" href="#">{{ $payout['name'] }}&nbsp;</a></td>
<td> {{ $payout['amount'] }} € &nbsp; </td>
</tr>
@endforeach
</table>
<p>&nbsp;</p>
</div>
</section>
@endsection