Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
Conflicts: skolehjem/app/Http/Controllers/ContactController.php
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
.tbl {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.tbl td, .tbl th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tbl tr:nth-child(even){background-color: rgba(0, 0, 0, 0.1);}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
@extends("admin.layout.base")
|
||||
@extends("admin.layout.header")
|
||||
|
||||
@section("title")
|
||||
Kontakter - Opret
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="" class="text-white">Slet Kontakt</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
@endsection
|
||||
@@ -6,7 +6,7 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('contacts.update', ["contact" => $contact]) }}" class="text-white">Rediger Bruger</a> /
|
||||
<a href="{{ route('contacts.update', ['contact' => $contacts]) }}" class="text-white">Rediger Bruger</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
@extends("admin.layout.base")
|
||||
@extends("admin.layout.header")
|
||||
|
||||
@section("title")
|
||||
Feedback - Vis
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('feedbacks.index') }}" class="text-white">Vis Feedback</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<table class="tbl">
|
||||
<tr>
|
||||
<th>Feedback Besked</th>
|
||||
<th>Ris el. Ros</th>
|
||||
</tr>
|
||||
@foreach($feedback as $fb)
|
||||
<tr>
|
||||
<td>{{ $fb->message }}</td>
|
||||
<td>{{ $fb->suggestion_form }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{{ $feedback->links() }}
|
||||
@endsection
|
||||
@@ -67,6 +67,12 @@
|
||||
<a href="{{ route('staff.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Personal</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="segment">
|
||||
<h3 class="text-white">Feedback</h3>
|
||||
<div class="row">
|
||||
<a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Feedback</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-85" style="background-color: #cccccc;">
|
||||
<div class="directorypath text-white">
|
||||
|
||||
@@ -26,14 +26,7 @@
|
||||
<td>{{$menuplan->wednesday}}</td>
|
||||
<td>{{$menuplan->thursday}}</td>
|
||||
<td><a href="{{ route("menu-plans.edit", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td>
|
||||
<form method="post" action="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}" class="w-100">
|
||||
@csrf
|
||||
@method("delete")
|
||||
|
||||
<button class="w-100" type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
||||
</form>
|
||||
</td>
|
||||
<td><a href="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<label for="name_last">Efternavn:</label>
|
||||
<input type="text" name="name_last" id="name_last" value="{{ $staff->name_last }}" required>
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" id="email" value="{{ $staff->name_email }}" required>
|
||||
<input type="email" name="email" id="email" value="{{ $staff->email }}" required>
|
||||
<label for="password1">Password:</label>
|
||||
<input type="password" name="password" id="password1" value="" required>
|
||||
<label for="password2">Confirm Password:</label>
|
||||
|
||||
@@ -26,14 +26,7 @@
|
||||
<td>{{ $staff->email }}</td>
|
||||
<td>{{ $staff->phone }}</td>
|
||||
<td><a href="{{ route("staff.edit", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td>
|
||||
<form method="post" action="{{ route("staff.destroy", [ "staff" => $staff ]) }}" class="w-100">
|
||||
@csrf
|
||||
@method("delete")
|
||||
|
||||
<button type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
||||
</form>
|
||||
</td>
|
||||
<td><a href="{{ route("staff.destroy", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
@@ -26,14 +26,7 @@
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>{{ $user->phone }}</td>
|
||||
<td><a href="{{ route("users.edit", [ "user" => $user->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td>
|
||||
<form method="post" action="{{ route("users.destroy", [ "user" => $user ]) }}" class="w-100">
|
||||
@csrf
|
||||
@method("delete")
|
||||
|
||||
<button type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
||||
</form>
|
||||
</td>
|
||||
<td><a href="{{ route("users.destroy", [ "user" => $user ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
+3
@@ -44,5 +44,8 @@
|
||||
<h4 class="mt-0">Kollegieassistent</h4>
|
||||
<span class="text-center sde-black-20 mt-1">+45 24 62 94 50</span>
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="tel:+4524629450">Ring</a>
|
||||
|
||||
<span class="text-center sde-black-20 mt-1">Send feedback omkring hvem el. hvad som helst</span>
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="feedbacks">Giv Feedback</a>
|
||||
</main>
|
||||
@endsection
|
||||
@@ -0,0 +1,19 @@
|
||||
@extends("app.layout.base")
|
||||
|
||||
@section("title")
|
||||
Feedback - Ris/Ros
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<main class="h-100 text-center">
|
||||
<form action="" method="post" required>
|
||||
<span>Ris el. Ros?</span>
|
||||
<select name="choose_suggestion" class="mb-2">
|
||||
<option>Ros</option>
|
||||
<option>Ris</option>
|
||||
</select>
|
||||
<textarea name="feedback_message" placeholder="Skriv Ris/Ros besked her" required></textarea>
|
||||
<button class="btn btn-sde-blue mt-2" onclick="window.location = '';">Send Ris/Ros</button>
|
||||
</form>
|
||||
</main>
|
||||
@endsection
|
||||
@@ -3,7 +3,7 @@
|
||||
{{----}}
|
||||
|
||||
{{--Index--}}
|
||||
{{--@extends("app.users.index")--}}
|
||||
{{----}}@extends("app.users.index")
|
||||
|
||||
{{--Login--}}
|
||||
{{--@extends("app.users.login")--}}
|
||||
@@ -27,7 +27,10 @@
|
||||
{{--@extends("app.contact.index")--}}
|
||||
|
||||
{{--Account--}}
|
||||
{{----}}@extends("app.users.index")
|
||||
{{--@extends("app.users.index")--}}
|
||||
|
||||
{{--Feedback--}}
|
||||
{{--@extends("app.feedbacks.index")--}}
|
||||
|
||||
{{----}}
|
||||
{{------Admin Panel
|
||||
|
||||
Reference in New Issue
Block a user