Commit 9b2a4546 authored by Waterfox's avatar Waterfox
Browse files

Merge branch 'DivingCreation' of...

Merge branch 'DivingCreation' of https://forge.info.unicaen.fr/git/but-info-sae3-2024-groupe3 into DivingCreation
parents 47945caf 4c971421
Loading
Loading
Loading
Loading
+8 −44
Original line number Diff line number Diff line
@@ -47,11 +47,13 @@
                        </div>
                    </div>
                    <label for="levelInput">Niveau requis : </label>
                    <select name="level" id="levelInput" style="width: 200px;">
                    <select name="level" id="levelInput" style="width: 200px; margin-bottom: 15px;">
                        @foreach ($levels as $level)
                            <option value="{{ $level->PRE_CODE }}">{{ $level->PRE_CODE }}</option>
                        @endforeach
                    </select>
                    <label for="levelInput">Profondeur : </label>
                    <input type="number" name="level" id="levelInput" min=1 max=4 style="width: 40px;border: 2px solid black;border-radius: 7px;-moz-appearance: textfield;text-align: center;" placeholder="0">
                </div>
                <div style="width: 40%;margin-bottom: 40px;margin-top: 40px;">
                    <h2>Créneau</h2>
@@ -108,51 +110,13 @@
                    </select>
                </div>
            </div>
            <h2>Nombres d'inscrits</h2>
        <div>
            <label for="maxInput">Nombre maximum d'inscrits : </label>
            <input type="number" name="max" id="maxInput">
            <label for="minInput">Nombre minimum d'inscrits : </label>
            <input type="number" name="min" id="maxInput">
            <label for="depthInput">Profondeur : </label>
            <input type="number" name="depth" id="depthInput">
            <label for="levelInput">Niveau requis : </label>
            <input type="number" name="level" id="levelInput" min=1 max=4 >
            <div class="flex -mx-3" style="margin-top: 50px;">
                <div class="w-full px-3 mb-5">
                    <input
                        class="clickable block w-full max-w-xs mx-auto bg-yellow-400 hover:bg-yellow-500 focus:bg-yellow-500 text-black rounded-lg px-3 py-3 font-semibold"
                        type="submit" value="CREER">
                </div>
        <h2>Créneau</h2>
        <div>
            <label for="dayInput">Jour : </label>
            <input type="date" name="day" id="dayInput">
            <label for="hourInput">Heure de début</label>
            <input type="time" name="hour" id="hourInput">
        </div>
        <div>
            <label for="securityInput">Sécurité de surface : </label>
            <select name="security" id="securityInput">
                @foreach ($users as $user)
                    @if($user->hasRole('SEC'))
                        <option value="{{$user->US_ID}}"/>{{$user->US_NAME}} {{$user->US_FIRST_NAME}}</option>
                    @endif
                @endforeach
            </select>
            <label for="managerInput">Directeur : </label>
            <select name="manager" id="managerInput">
                @foreach ($users as $user)
                    @if($user->hasRole('DIR'))
                        <option value="{{$user->US_ID}}"/>{{$user->US_NAME}} {{$user->US_FIRST_NAME}}</option>
                    @endif
                @endforeach
            </select>
            <label for="pilotInput">Pilote : </label>
            <select name="pilot" id="pilotInput">
                @foreach ($users as $user)
                    @if($user->hasRole('PIL'))
                        <option value="{{$user->US_ID}}"/>{{$user->US_NAME}} {{$user->US_FIRST_NAME}}</option>
                    @endif
                @endforeach
            </select>
            </div>
        <input type="submit" value="Créer">
    </form>
    </div>
</x-layout>