Edited washing-machines, app\root\index & admin\layout\base

This commit is contained in:
Anders 2020-06-24 14:19:55 +02:00
parent d7d33d1696
commit 4ed33e4f99
9 changed files with 41 additions and 110 deletions

View File

@ -37,6 +37,15 @@
{{-- <a href="{{ route('bookings.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Booking</a>--}} {{-- <a href="{{ route('bookings.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Booking</a>--}}
</div> </div>
</div> </div>
<div class="segment">
<h3 class="text-white">Vaskemaskiner</h3>
<div class="row">
{{-- <a href="{{ route("washing-machines.index") }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Bookings</a>--}}
</div>
<div class="row">
{{-- <a href="{{ route('washing-machines.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Booking</a>--}}
</div>
</div>
</div> </div>
<div class="w-85" style="background-color: #cccccc;"> <div class="w-85" style="background-color: #cccccc;">
<div class="directorypath text-white"> <div class="directorypath text-white">

View File

@ -2,18 +2,18 @@
@extends("admin.layout.header") @extends("admin.layout.header")
@section("title") @section("title")
Vaskemaskiner - Vis Vaskemaskiner - Opret
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Opret Vaskemaskine</a> / <a href="{{ route('washing-machines.create') }}" class="text-white">Opret Vaskemaskine</a> /
@endsection @endsection
@section("content") @section("content")
<h1>Opret Bruger:</h1> <h1>Opret Vaskemaskine:</h1>
<form method="post" action="{{ route("washing-machines.store") }}"> <form method="post" action="{{ route("washing-machines.store") }}">
@csrf @csrf
<label for="name_first">Navn:</label> <label for="name_first">Vaskemaskine Navn:</label>
<input type="text" name="name" id="name" max="60" required> <input type="text" name="name" id="name" max="60" required>
<input type="submit" class="btn btn-dark text-white" value="Opret"> <input type="submit" class="btn btn-dark text-white" value="Opret">
</form> </form>

View File

@ -2,32 +2,12 @@
@extends("admin.layout.header") @extends("admin.layout.header")
@section("title") @section("title")
Vaskemaskiner - Vis Vaskemaskiner - Fjern
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="" class="text-white">Fjern Vaskemaskine</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl">
<tr>
<th>ID</th>
<th>Fornavn</th>
<th>Efternavn</th>
<th>Email</th>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
<tr>
<td>{ID}</td>
<td>{Fornavn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr>
</table>
@endsection @endsection

View File

@ -2,32 +2,18 @@
@extends("admin.layout.header") @extends("admin.layout.header")
@section("title") @section("title")
Vaskemaskiner - Vis Vaskemaskine - Rediger
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="{{ route('washing-machines.edit', ['id' => $user->id]) }}" class="text-white">Rediger Vaskemaskiner</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl"> <form method="post" action="{{ route("washing-machines.store") }}">
<tr> @csrf
<th>ID</th> <label for="name_first">Vaskemaskine Navn:</label>
<th>Fornavn</th> <input type="text" name="name" id="name" max="60" required>
<th>Efternavn</th> <input type="submit" class="btn btn-dark text-white" value="Opret">
<th>Email</th> </form>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
<tr>
<td>{ID}</td>
<td>{Fornavn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr>
</table>
@endsection @endsection

View File

@ -6,26 +6,20 @@
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="{{ route('washing-machines.index') }}" class="text-white">Vis Vaskemaskiner</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl"> <table class="tbl">
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Fornavn</th> <th>Navn</th>
<th>Efternavn</th>
<th>Email</th>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr> </tr>
<tr> <tr>
<td>{ID}</td> <td>{ID}</td>
<td>{Fornavn}</td> <td>{Navn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr> </tr>

View File

@ -6,26 +6,20 @@
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="{{ route('washing-machines.index') }}" class="text-white">Vis Vaskemaskiner</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl"> <table class="tbl">
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Fornavn</th> <th>Navn</th>
<th>Efternavn</th>
<th>Email</th>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr> </tr>
<tr> <tr>
<td>{ID}</td> <td>{ID}</td>
<td>{Fornavn}</td> <td>{Navn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td> <td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr> </tr>

View File

@ -2,32 +2,13 @@
@extends("admin.layout.header") @extends("admin.layout.header")
@section("title") @section("title")
Vaskemaskiner - Vis Vaskemaskiner - Opret
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="{{ route('washing-machines.create') }}" class="text-white">Opret Vaskemaskine</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl"> Vaskemaskinen blev (ikke) oprettet.
<tr>
<th>ID</th>
<th>Fornavn</th>
<th>Efternavn</th>
<th>Email</th>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
<tr>
<td>{ID}</td>
<td>{Fornavn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr>
</table>
@endsection @endsection

View File

@ -2,32 +2,13 @@
@extends("admin.layout.header") @extends("admin.layout.header")
@section("title") @section("title")
Vaskemaskiner - Vis Vaskemaskiner - Rediger
@endsection @endsection
@section("path") @section("path")
<a href="" class="text-white">Vis Vaskemaskiner</a> / <a href="{{ route('washing-machines.create') }}" class="text-white">Rediger Vaskemaskine</a> /
@endsection @endsection
@section("content") @section("content")
<table class="tbl"> Din vaskemaskine blev (ikke) redigeret.
<tr>
<th>ID</th>
<th>Fornavn</th>
<th>Efternavn</th>
<th>Email</th>
<th>Tlf nr</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
<tr>
<td>{ID}</td>
<td>{Fornavn}</td>
<td>{Efternavn}</td>
<td>{Email}</td>
<td>{TLF}</td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr>
</table>
@endsection @endsection

View File

@ -45,3 +45,9 @@
{{--Read booking--}} {{--Read booking--}}
{{--@extends("admin.bookings.show")--}} {{--@extends("admin.bookings.show")--}}
{{--Create washing-machine--}}
{{--@extends("admin.washing-machines.create")--}}
{{--Read washing-machine--}}
{{--@extends("admin.washing-machines.show")--}}