From 329b497c79424d97a9b1a56d8143f37aaff282ca Mon Sep 17 00:00:00 2001
From: tschneider
Date: Mon, 22 Feb 2021 11:02:09 +0100
Subject: [PATCH] Tipp4: Switching Checkbox ticks via JS
---
pfosten/resources/views/tipps/edit4.blade.php | 139 +++++-------------
1 file changed, 36 insertions(+), 103 deletions(-)
diff --git a/pfosten/resources/views/tipps/edit4.blade.php b/pfosten/resources/views/tipps/edit4.blade.php
index 6186a16d..260beff9 100644
--- a/pfosten/resources/views/tipps/edit4.blade.php
+++ b/pfosten/resources/views/tipps/edit4.blade.php
@@ -25,11 +25,7 @@
- @if (App\Round::hasLockedGame($game1->round_id))
- {{ Form::checkbox('joker_1', 'yes', $tipp1->joker, array('disabled') ) }}
- @else
- {{ Form::checkbox('joker_1', 'yes', $tipp1->joker) }}
- @endif
+ joker===1) checked @endif>
@@ -54,11 +50,7 @@
- @if (App\Round::hasLockedGame($game2->round_id))
- {{ Form::checkbox('joker_2', 'yes', $tipp2->joker, array('disabled') ) }}
- @else
- {{ Form::checkbox('joker_2', 'yes', $tipp2->joker) }}
- @endif
+ joker===1) checked @endif>
@@ -79,11 +71,7 @@
- @if (App\Round::hasLockedGame($game3->round_id))
- {{ Form::checkbox('joker_3', 'yes', $tipp3->joker, array('disabled') ) }}
- @else
- {{ Form::checkbox('joker_3', 'yes', $tipp3->joker) }}
- @endif
+ joker===1) checked @endif>
@@ -103,98 +91,11 @@
- @if (App\Round::hasLockedGame($game4->round_id))
- {{ Form::checkbox('joker_4', 'yes', $tipp4->joker, array('disabled') ) }}
- @else
- {{ Form::checkbox('joker_4', 'yes', $tipp4->joker) }}
- @endif
+ joker===1) checked @endif>
-
-
-
-
-
-
-
-
Joker setzen auf:
-
-
-
-
-
+
@endsection
\ No newline at end of file