Start of Test Class, fixing ranking visibiliy of open rounds issue

This commit is contained in:
Torsten 2017-10-06 12:17:49 +02:00
parent 7545760aa2
commit 29e493e22d
11 changed files with 11891 additions and 43 deletions

View file

@ -9,7 +9,7 @@
<!-- Start Runden-Loop-->
@foreach($matchesTotal as $round_id => $roundGroup)
<h2>{{$roundNames[$round_id]}}</h2>
<h2><a href="http://hoschis-tippspiel.de/users/ranking/roundid_{{$round_id}}#playerid_0">{{$roundNames[$round_id]}}</a></h2>
<!-- Start Liga-Loop-->
@foreach($matchesTotal[$round_id] as $league_id => $matchGroup)
@ -25,8 +25,9 @@
<!-- Start Matchgruppen-Loop-->
@foreach($matchesTotal[$round_id][$league_id] as $match)
<tr class="table-bordered">
<td>&nbsp;{{$match->user1_name}}&nbsp;</td>
<td>&nbsp;{{$match->user2_name}}&nbsp;</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user1_id}}"> {{$match->user1_name}} </a>&nbsp;</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user2_id}}"> {{$match->user2_name}} </a>&nbsp;</td>
@if($match->user1_rankscore==-1)
<td> ausstehend </td>
@else

View file

@ -4,7 +4,7 @@
<section class="text-center">
<div class="container">
<h2>{{ $userName }}</h2>
<h2>Spielplan für: {{ $userName }}</h2>
<table class="table-bordered col-lg-12">
<tr class="table-bordered">
@ -12,6 +12,7 @@
<td class="table-bordered" style="width:150px;">Runde</td>
<td class="table-bordered" style="width:150px;">Spieler 1</td>
<td class="table-bordered" style="width:150px;">Spieler 2</td>
<td class="table-bordered" style="width:150px;">Ergebnis</td>
</tr>
@foreach($matches as $match)
@ -19,8 +20,15 @@
<tr class="table-bordered">
<td class="table-bordered" style="width:50px;">{{$leagueNames[$match->league_id]}}</td>
<td class="table-bordered" style="width:150px;">{{$roundNames[$match->round_id]}}</td>
<td class="table-bordered" style="width:150px;">{{$match->user1_name}}</td>
<td class="table-bordered" style="width:150px;">{{$match->user2_name}}</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user1_id}}"> {{$match->user1_name}} </a>&nbsp;</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user2_id}}"> {{$match->user2_name}} </a>&nbsp;</td>
@if ($match->user1_rankscore>-1)
<td class="table-bordered" style="width:150px;">{{$match->user1_rankscore}}:{{$match->user2_rankscore}}</td>
@else
<td class="table-bordered" style="width:150px;">ausstehend</td>
@endif
</tr>
@endforeach

View file

@ -10,11 +10,14 @@
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" name="name" required>
<label for="roundcount">Anzahl Runden:</label>
<input style="width:100px" type="text" class="form-control" id="roundcount" name="roundcount" required>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Erstellen</button>
</div>
</form>

View file

@ -14,9 +14,13 @@
<form>
<p>&nbsp;</p>
<div class="form-group" >
<h4>
<label style="float:left; width:200px;">Aktive Spieler:</label>
<label style="float:left;">&nbsp;{{$active_user_count}}</label>
</h4>
<h4>
<label style="float:left; width:200px;">Einsatz pro Spieler:</label>
<label style="float:left;">&nbsp;{{$quotas['Einsatz']}} €</label>