From efa646beb4e41e1116fe8c8025bb1261cfdefada Mon Sep 17 00:00:00 2001 From: tschneider Date: Thu, 31 Dec 2020 15:22:55 +0100 Subject: [PATCH] ... --- .../app/Http/Controllers/UsersController.php | 2 +- pfosten/resources/views/tipps/edit4.blade.php | 102 ++++++++++++++++-- 2 files changed, 94 insertions(+), 10 deletions(-) diff --git a/pfosten/app/Http/Controllers/UsersController.php b/pfosten/app/Http/Controllers/UsersController.php index 2efa8f23..ae4fe00d 100755 --- a/pfosten/app/Http/Controllers/UsersController.php +++ b/pfosten/app/Http/Controllers/UsersController.php @@ -279,7 +279,7 @@ class UsersController extends Controller Payment::set_payment_date(request('id'), $season_id, request('paid')); - Tipp::createAllTips(); + //Tipp::createAllTips(); Log::info($a->getEndMessage()); //error_log($a->getEndMessage()); diff --git a/pfosten/resources/views/tipps/edit4.blade.php b/pfosten/resources/views/tipps/edit4.blade.php index 816090e2..6186a16d 100644 --- a/pfosten/resources/views/tipps/edit4.blade.php +++ b/pfosten/resources/views/tipps/edit4.blade.php @@ -1,7 +1,7 @@ @extends('layouts.layout') @section('content') -
+

{{$round->name}}

@@ -26,9 +26,9 @@ @if (App\Round::hasLockedGame($game1->round_id)) - {{ Form::checkbox('joker', 'yes', $tipp1->joker, array('disabled') ) }} + {{ Form::checkbox('joker_1', 'yes', $tipp1->joker, array('disabled') ) }} @else - {{ Form::checkbox('joker', 'yes', $tipp1->joker) }} + {{ Form::checkbox('joker_1', 'yes', $tipp1->joker) }} @endif @@ -55,9 +55,9 @@ @if (App\Round::hasLockedGame($game2->round_id)) - {{ Form::checkbox('joker', 'yes', $tipp2->joker, array('disabled') ) }} + {{ Form::checkbox('joker_2', 'yes', $tipp2->joker, array('disabled') ) }} @else - {{ Form::checkbox('joker', 'yes', $tipp2->joker) }} + {{ Form::checkbox('joker_2', 'yes', $tipp2->joker) }} @endif @@ -80,9 +80,9 @@ @if (App\Round::hasLockedGame($game3->round_id)) - {{ Form::checkbox('joker', 'yes', $tipp3->joker, array('disabled') ) }} + {{ Form::checkbox('joker_3', 'yes', $tipp3->joker, array('disabled') ) }} @else - {{ Form::checkbox('joker', 'yes', $tipp3->joker) }} + {{ Form::checkbox('joker_3', 'yes', $tipp3->joker) }} @endif @@ -104,15 +104,97 @@ @if (App\Round::hasLockedGame($game4->round_id)) - {{ Form::checkbox('joker', 'yes', $tipp4->joker, array('disabled') ) }} + {{ Form::checkbox('joker_4', 'yes', $tipp4->joker, array('disabled') ) }} @else - {{ Form::checkbox('joker', 'yes', $tipp4->joker) }} + {{ Form::checkbox('joker_4', 'yes', $tipp4->joker) }} @endif + +
+
+
+ +

  +

Joker setzen auf:

+ + +
+ @if (App\Round::hasLockedGame($game1->round_id)) + joker) + checked="checked" + @endif + > + @else + joker) + checked="checked" + @endif + > + @endif + + +
+ + + @if (App\Round::hasLockedGame($game2->round_id)) + joker) + checked="checked" + @endif + > + @else + joker) + checked="checked" + @endif + > + @endif + + + +
+ + @if (App\Round::hasLockedGame($game3->round_id)) + joker) + checked="checked" + @endif + > + @else + joker) + checked="checked" + @endif + > + @endif + + + +
+ + + @if (App\Round::hasLockedGame($game4->round_id)) + joker) + checked="checked" + @endif + > + @else + joker) + checked="checked" + @endif + > + @endif + +
+

+

 

@@ -123,4 +205,6 @@
+ + @endsection \ No newline at end of file