Merge branch 'master' into LiveSearch
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
<h1>Opret Kontakt:</h1>
|
||||
<form method="post" action="{{ route("contacts.store") }}">
|
||||
@csrf
|
||||
<label for="name_first">Fornavn:</label>
|
||||
<input type="text" name="name_first" id="name_first" placeholder="Fornavn" required>
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" placeholder="Efternavn" required>
|
||||
<label for="contactname">Kontakt Navn:</label>
|
||||
<input type="text" name="contactname" id="contactname" placeholder="Navn" required>
|
||||
<label for="title">Titel:</label>
|
||||
<input type="text" name="title" id="title" placeholder="Titel" required>
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" id="email" placeholder="x@y.z" required>
|
||||
<label for="tel">Telefon nr:</label>
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
<form method="post" action="{{ route("contacts.update", ['contact' => $contact]) }}">
|
||||
@csrf
|
||||
@method("put")
|
||||
<label for="name_first">Fornavn:</label>
|
||||
<input type="text" name="name_first" id="name_first" placeholder="Fornavn" value="{{ $contact->name_first }}" required>
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" placeholder="Efternavn" value="{{ $contact->name_last }}" required>
|
||||
<label for="contactname">Kontakt Navn:</label>
|
||||
<input type="text" name="contactname" id="contactname" placeholder="Navn" value="{{ $contact->contactname }}" required>
|
||||
<label for="title">Titel:</label>
|
||||
<input type="text" name="title" id="title" placeholder="Titel" value="{{ $contact->title }}" required>
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" id="email" placeholder="x@y.z" value="{{ $contact->email }}" required>
|
||||
<label for="tel">Telefon nr:</label>
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
</tr>
|
||||
@foreach($contacts as $contact)
|
||||
<tr>
|
||||
<td>{{ $contact->name_first }}</td>
|
||||
<td>{{ $contact->name_last }}</td>
|
||||
<td>{{ $contact->contactname }}</td>
|
||||
<td>{{ $contact->title }}</td>
|
||||
<td>{{ $contact->email }}</td>
|
||||
<td>{{ $contact->phone }}</td>
|
||||
<td><a href="{{ route("contacts.edit", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
|
||||
@@ -19,20 +19,35 @@
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" value="{{ $user->name_last }}" required>
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" id="email" value="{{ $user->name_email }}" required>
|
||||
<label for="password1">Password:</label>
|
||||
<input type="password" name="password" id="password1" value="" required>
|
||||
<label for="password2">Confirm Password:</label>
|
||||
<input type="password" id="password2" value="" required>
|
||||
<input type="email" name="email" id="email" value="{{ $user->email }}" required>
|
||||
<label for="password1">Password: (Forblives blank, hvis password ikke skal ændres)</label>
|
||||
<input type="password" name="password" id="password1" value="">
|
||||
<label for="password2">Confirm Password: (Forblives blank, hvis password ikke skal ændres)</label>
|
||||
<input type="password" id="password2" value="">
|
||||
<label for="tel">Telefon nr:</label>
|
||||
<input type="tel" name="phone" id="tel" value="{{ $user->phone }}" required>
|
||||
<label for="role">Rolle:</label>
|
||||
<label for="role">Rolle: (Brug ctrl og shift til at vælge flere)</label>
|
||||
<select name="roles[]" id="roles" class="mb-2" multiple="multiple" required>
|
||||
<option disabled selected value> -- Vælg Rolle(r) -- </option>
|
||||
<option value>Ingen Rolle</option>
|
||||
@foreach($roles as $role)
|
||||
<option value="{{ $role->name }}">{{ $role->name }}</option>
|
||||
@endforeach
|
||||
@if(count($user->roles) == 0)
|
||||
<option disabled selected> -- Vælg Rolle(r) -- </option>
|
||||
<option value>Ingen Rolle</option>
|
||||
@foreach($roles as $role)
|
||||
<option value="{{ $role->name }}">{{ $role->name }}</option>
|
||||
@endforeach
|
||||
@else
|
||||
<option disabled> -- Vælg Rolle(r) -- </option>
|
||||
<option value>Ingen Rolle</option>
|
||||
@foreach($roles as $role)
|
||||
{{ $selected = "" }}
|
||||
@foreach($user->roles as $userRole)
|
||||
@if($userRole->id == $role->id)
|
||||
{{ $selected = "selected" }}
|
||||
@endif
|
||||
@endforeach
|
||||
<option {{ $selected }} value="{{ $role->name }}">{{ $role->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</select>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||
</form>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('washing-machines.delete') }}" class="text-white">Fjern Vaskemaskine</a> /
|
||||
<a href="{{ route('washing-machines.destroy') }}" class="text-white">Fjern Vaskemaskine</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
|
||||
@@ -6,14 +6,15 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('washing-machines.edit', ['id' => $user->id]) }}" class="text-white">Rediger Vaskemaskiner</a> /
|
||||
<a href="{{ route('washing-machines.edit', ['washing_machine' => $machine]) }}" class="text-white">Rediger Vaskemaskiner</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<form method="post" action="{{ route("washing-machines.store") }}">
|
||||
<form method="post" action="{{ route("washing-machines.update", [ 'washing_machine' => $machine]) }}">
|
||||
@csrf
|
||||
@method("put")
|
||||
<label for="name_first">Vaskemaskine Navn:</label>
|
||||
<input type="text" name="name" id="name" max="60" required>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
<input type="text" name="name" id="name" max="60" value="{{$machine->name}}" required>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
</tr>
|
||||
@foreach($machines as $machine)
|
||||
<tr>
|
||||
<td>{Navn}</td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><form method="post" action="{{ route("washing-machines.destroy", [ "machine" => $machine ]) }}" class="w-100 nostyle">
|
||||
<td>{{$machine->name}}</td>
|
||||
<td><a href="{{ route('washing-machines.edit', [ 'washing_machine' => $machine ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><form method="post" action="{{ route('washing-machines.destroy', [ 'washing_machine' => $machine ]) }}" class="w-100 nostyle">
|
||||
@csrf
|
||||
@method("delete")
|
||||
|
||||
@@ -33,6 +33,4 @@
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{{ $machines->links() }}
|
||||
@endsection
|
||||
|
||||
@@ -6,21 +6,21 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Vaske Reservationer</a> /
|
||||
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Vaskemaskine Reservation</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<h1>Opret Booking:</h1>
|
||||
<h1>Opret Reservation:</h1>
|
||||
<form method="post" action="{{ route("washing-reservations.store") }}">
|
||||
@csrf
|
||||
<label for="name_first">Fornavn:</label>
|
||||
<input type="text" name="name_first" id="name_first" required>
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" required>
|
||||
<label for="tel">Telefon nr:</label>
|
||||
<input type="tel" name="phone" id="tel" required>
|
||||
<select name="machine_choice">
|
||||
<option>Vaskemaskine 1</option>
|
||||
<label for="time">Tidspunkt:</label>
|
||||
<input type="datetime-local" name="time" id="time" required>
|
||||
<label for="machine">Vaskemaskine:</label>
|
||||
<select name="machine" id="machine" required>
|
||||
<option disabled selected value> -- Vælg Vaskemaskine -- </option>
|
||||
@foreach($machines as $machine)
|
||||
<option value="{{ $machine->id }}">{{ $machine->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
</form>
|
||||
|
||||
@@ -6,22 +6,26 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('washing-reservations.edit', ['id' => $reservations->id]) }}" class="text-white">Rediger Vaske Reservationer</a> /
|
||||
<a href="{{ route('washing-reservations.edit', ['washing_reservation' => $washing_reservation]) }}" class="text-white">Rediger Vaske Reservationer</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<h1>Rediger Booking:</h1>
|
||||
<form method="post" action="">
|
||||
<form method="post" action="{{ route('washing-reservations.update', ['washing_reservation' => $washing_reservation ]) }}">
|
||||
@csrf
|
||||
<label for="name_first">Fornavn:</label>
|
||||
<input type="text" name="name_first" id="name_first" value="{Fornavn}" required>
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" value="{Efternavn}" required>
|
||||
<input type="password" id="password2" value="{Password}" required>
|
||||
<label for="tel">Telefon nr:</label>
|
||||
<input type="tel" name="phone" id="tel" value="{Telefon}" required>
|
||||
<select>
|
||||
<option>Vaskemaskine 1</option>
|
||||
@method("put")
|
||||
<label for="time">Tidspunkt:</label>
|
||||
<input type="datetime-local" name="time" id="time" value="{{ $washing_reservation->time }}" required>
|
||||
<label for="machine">Vaskemaskine:</label>
|
||||
<select name="machine" id="machine" required>
|
||||
<option disabled value> -- Vælg Vaskemaskine -- </option>
|
||||
@foreach($machines as $machine)
|
||||
@if($machine->id == $washing_reservation->machine)
|
||||
<option selected value="{{ $machine->id }}">{{ $machine->name }}</option>
|
||||
@else
|
||||
<option value="{{ $machine->id }}">{{ $machine->name }}</option>
|
||||
@endif
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||
</form>
|
||||
|
||||
@@ -21,21 +21,17 @@
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
<th>Fornavn</th>
|
||||
<th>Efternavn</th>
|
||||
<th>Tlf nr</th>
|
||||
<th>Vaskemaskine</th>
|
||||
<th>Time</th>
|
||||
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||
</tr>
|
||||
@foreach($reservations as $reservation)
|
||||
<tr>
|
||||
<td>{Fornavn}</td>
|
||||
<td>{Efternavn}</td>
|
||||
<td>{Tlf Nr}</td>
|
||||
<td>{Vaskemaskine Nr.}</td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><form method="post" action="" class="w-100 nostyle">
|
||||
<td>{{ \App\WashingMachine::query()->find($reservation->machine)->name }}</td>
|
||||
<td>{{ $reservation->time }}</td>
|
||||
<td><a href="{{ route('washing-reservations.edit', ['washing_reservation' => $reservation]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><form method="post" action="{{ route('washing-reservations.destroy', ['washing_reservation' => $reservation]) }}" class="w-100 nostyle">
|
||||
@csrf
|
||||
@method("delete")
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
@extends("admin.layout.header")
|
||||
|
||||
@section("title")
|
||||
Vaske Reservationer - Rediger
|
||||
Vaskemaskine Reservationer - Rediger
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('washing-reservations.edit') }}" class="text-white">Rediger Vaske Reservationer</a> /
|
||||
<a href="{{ route('washing-reservations.edit', ['washing_reservation' => $washing_reservation]) }}" class="text-white">Rediger Vaskemaskine Reservationer</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
Din Vaske Reservationer blev (ikke) redigeret.
|
||||
Din Vaskemaskine Reservationer blev (ikke) redigeret.
|
||||
@endsection
|
||||
|
||||
@@ -7,11 +7,15 @@
|
||||
@section("content")
|
||||
<main>
|
||||
<h1 class="text-center sde-blue mb-0">Aktiviteter</h1>
|
||||
@foreach($events as $event)
|
||||
<h3 class="sde-blue bold text-center mb-0">{{$event->name}}</h3>
|
||||
<p class="text-center mt-0">{{$event->date}}</p>
|
||||
<p>{{$event->description}}</p>
|
||||
<a class="btn text-center btn-sde-blue btn-disabled" id="tilmeld">Tilmeld</a>
|
||||
@endforeach
|
||||
@if(!$events->isEmpty())
|
||||
@foreach($events as $event)
|
||||
<h3 class="sde-blue bold text-center mb-0">{{$event->name}}</h3>
|
||||
<p class="text-center mt-0">{{$event->date}}</p>
|
||||
<p class="text-center">{{$event->description}}</p>
|
||||
<a class="btn text-center btn-sde-blue" id="tilmeld">Tilmeld</a>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="text-center">Der er ingen aktiviteter!</p>
|
||||
@endif
|
||||
</main>
|
||||
@endsection
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
Reservationer
|
||||
</a>
|
||||
{{-- MÅ IKKE SLETTES!!!! --}}
|
||||
{{-- <a href="#">--}}
|
||||
{{-- <a href="# ">--}}
|
||||
{{-- <img src="{{URL::asset('/images/icons/Galleri.svg')}}" alt="Galleri">--}}
|
||||
{{-- Galleri--}}
|
||||
{{-- </a>--}}
|
||||
<a href="#">
|
||||
<a href="{{ route("contacts.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Kontoret.svg')}}" alt="Kontoret">
|
||||
Kontoret
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user