Loading app/Http/Controllers/DiveSessionCreation.php +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ public static function add($request) $dv->PRE_CODE = $request->level; $dv->DS_LEVEL = 1; $dv->save(); error_log($dv->DS_CODE); return $dv; } } app/Http/Controllers/DiveSessionDelete.php 0 → 100644 +18 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use App\Models\DivingSession; use Illuminate\Http\Request; class DiveSessionDelete extends Controller { // public static function update($id) { $dv = DivingSession::where('DS_CODE', $id)->first(); $dv->DS_ACTIVE = 0; $dv->save(); } } public/css/app.css +20 −1 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ :root --good : #00ff04; --bad : #dc2323; --badDarker : #c23232; --BigTitle : 32px; --title : 25px; Loading @@ -29,7 +30,7 @@ h1{ .clickable{ background-color: var(--yellow); color: var(--black); transition: opacity 0.4s ease-out; transition: all 0.4s ease-out; } .clickable:hover{ Loading @@ -37,3 +38,21 @@ .clickable:hover{ background-color: var(--yellowDarker); color: var(--white) } .clickableRed{ background-color: var(--bad); color: var(--black); transition: all 0.4s ease-out; } .clickableRed:hover{ cursor: pointer; background-color: var(--badDarker); color: var(--white) } .align{ display: flex; align-items: center; justify-content: center; } No newline at end of file public/css/create_div.css +45 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,48 @@ .history{ color: var(--white); padding: 15px; } .arrayhistory{ border-radius: 10px; overflow: hidden; } .historyLine{ text-align: center; } .thresize{ width: 25%; } body{ font-size: 15px !important; } th{ background-color: var(--blueLighter) !important; } th, td { padding: 15px; text-align: left; } td{ text-align: center; } tr:nth-child(odd) { background-color: var(--whiteGrayer); } .clickableRed{ width: 30px; height: 30px; border-radius: 30px; color: white; } select{ padding: 6px; } No newline at end of file resources/views/create_dive.blade.php +11 −8 Original line number Diff line number Diff line Loading @@ -4,20 +4,22 @@ <link rel="stylesheet" href="{{ asset('/css/create_div.css') }}"> <div style="display : flex; flex-direction: row"> <div style="width: 50%; margin-right: 50px; height: 100%; display:flex; align-items: center; flex-direction: column"> <div style="width: 50%; margin-right: 50px; height: 100%; display:flex; align-items: center; flex-direction: column;height: 760px;overflow: auto;"> @if(!isset($previousDives)) <img src="{{ asset('/images/Diver1.png') }}" alt="Diver illustration"> @else <p>Plongées crées</p> <table class="history"> <tr> <p style="font-size: 35px">Historique de plongées crées</p> <hr style="height: 3px;background-color: black;margin-left: 10%;margin-bottom: 15px;margin-top: 5px; width : 80%"> <table class="arrayhistory"> <tr class="history"> <th>Date et heure</th> <th>Nombre maximum d'inscrits</th> <th>Site</th> <th class="thresize">Max personnes</th> <th style="width: 25%;">Site</th> <th>Niveau requis</th> <th>Actions</th> </tr> @foreach ($previousDives as $dive) <tr> <tr class="historyLine"> <td>{{ $dive->DS_DATE }}</td> <td>{{ $dive->DS_MAX_DIVERS }}</td> @foreach($locations as $location) Loading @@ -26,12 +28,13 @@ @endif @endforeach <td>{{ $dive->PRE_CODE }}</td> <td><form action="/dive/delete/{{ $dive->DS_CODE }}" method="POST"><button type="submit" class="clickable clickableRed">X</button></form></td> </tr> @endforeach </table> @endif </div> <form action="/create/dive" method="POST" style="width: 70%;font-size: 20px;"> <form action="/create/dive" method="POST" style="width: 70%;"> @csrf <h1 class="text-4xl" style="font-family: 'Space Grotesk', sans-serif; font-weight: bold; margin-bottom: 30px;">Création d'une Loading Loading
app/Http/Controllers/DiveSessionCreation.php +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ public static function add($request) $dv->PRE_CODE = $request->level; $dv->DS_LEVEL = 1; $dv->save(); error_log($dv->DS_CODE); return $dv; } }
app/Http/Controllers/DiveSessionDelete.php 0 → 100644 +18 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use App\Models\DivingSession; use Illuminate\Http\Request; class DiveSessionDelete extends Controller { // public static function update($id) { $dv = DivingSession::where('DS_CODE', $id)->first(); $dv->DS_ACTIVE = 0; $dv->save(); } }
public/css/app.css +20 −1 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ :root --good : #00ff04; --bad : #dc2323; --badDarker : #c23232; --BigTitle : 32px; --title : 25px; Loading @@ -29,7 +30,7 @@ h1{ .clickable{ background-color: var(--yellow); color: var(--black); transition: opacity 0.4s ease-out; transition: all 0.4s ease-out; } .clickable:hover{ Loading @@ -37,3 +38,21 @@ .clickable:hover{ background-color: var(--yellowDarker); color: var(--white) } .clickableRed{ background-color: var(--bad); color: var(--black); transition: all 0.4s ease-out; } .clickableRed:hover{ cursor: pointer; background-color: var(--badDarker); color: var(--white) } .align{ display: flex; align-items: center; justify-content: center; } No newline at end of file
public/css/create_div.css +45 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,48 @@ .history{ color: var(--white); padding: 15px; } .arrayhistory{ border-radius: 10px; overflow: hidden; } .historyLine{ text-align: center; } .thresize{ width: 25%; } body{ font-size: 15px !important; } th{ background-color: var(--blueLighter) !important; } th, td { padding: 15px; text-align: left; } td{ text-align: center; } tr:nth-child(odd) { background-color: var(--whiteGrayer); } .clickableRed{ width: 30px; height: 30px; border-radius: 30px; color: white; } select{ padding: 6px; } No newline at end of file
resources/views/create_dive.blade.php +11 −8 Original line number Diff line number Diff line Loading @@ -4,20 +4,22 @@ <link rel="stylesheet" href="{{ asset('/css/create_div.css') }}"> <div style="display : flex; flex-direction: row"> <div style="width: 50%; margin-right: 50px; height: 100%; display:flex; align-items: center; flex-direction: column"> <div style="width: 50%; margin-right: 50px; height: 100%; display:flex; align-items: center; flex-direction: column;height: 760px;overflow: auto;"> @if(!isset($previousDives)) <img src="{{ asset('/images/Diver1.png') }}" alt="Diver illustration"> @else <p>Plongées crées</p> <table class="history"> <tr> <p style="font-size: 35px">Historique de plongées crées</p> <hr style="height: 3px;background-color: black;margin-left: 10%;margin-bottom: 15px;margin-top: 5px; width : 80%"> <table class="arrayhistory"> <tr class="history"> <th>Date et heure</th> <th>Nombre maximum d'inscrits</th> <th>Site</th> <th class="thresize">Max personnes</th> <th style="width: 25%;">Site</th> <th>Niveau requis</th> <th>Actions</th> </tr> @foreach ($previousDives as $dive) <tr> <tr class="historyLine"> <td>{{ $dive->DS_DATE }}</td> <td>{{ $dive->DS_MAX_DIVERS }}</td> @foreach($locations as $location) Loading @@ -26,12 +28,13 @@ @endif @endforeach <td>{{ $dive->PRE_CODE }}</td> <td><form action="/dive/delete/{{ $dive->DS_CODE }}" method="POST"><button type="submit" class="clickable clickableRed">X</button></form></td> </tr> @endforeach </table> @endif </div> <form action="/create/dive" method="POST" style="width: 70%;font-size: 20px;"> <form action="/create/dive" method="POST" style="width: 70%;"> @csrf <h1 class="text-4xl" style="font-family: 'Space Grotesk', sans-serif; font-weight: bold; margin-bottom: 30px;">Création d'une Loading