Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
This commit is contained in:
+5
@@ -47,3 +47,8 @@
|
||||
height: 1em;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin-bottom: 0;
|
||||
line-height: 2.3rem;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('contacts.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Kontakt</a>
|
||||
|
||||
<form method="post" action="{{ route("users.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på Navn, Email, Telefon"></input>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
@@ -39,4 +46,24 @@
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$('#search').on('keyup', function () {
|
||||
$value = $(this).val();
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '{{route('contacts.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -12,6 +12,12 @@
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('events.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Event</a>
|
||||
|
||||
<form method="post" action="{{ route("events.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på Evt Navn, Evt Dato"></input>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
@@ -40,4 +46,24 @@
|
||||
|
||||
|
||||
{{ $events->links() }}
|
||||
|
||||
|
||||
<script>
|
||||
$('#search').on('keyup', function () {
|
||||
$value = $(this).val();
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '{{route('events.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
console.log(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link type="text/css" rel="stylesheet" href="{{ mix("/css/admin.css") }}">
|
||||
<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
@yield("header")
|
||||
|
||||
@@ -10,8 +10,15 @@
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
|
||||
<div class="row align-items-center">
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('menu-plans.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Menuplan</a>
|
||||
|
||||
<form method="post" action="{{ route("menu-plans.store") }}">
|
||||
@csrf
|
||||
<input type="number" class="form-controller" id="search" name="search" pattern="[0-9]{2}" placeholder="Søg efter ugenummer"></input>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
@@ -43,4 +50,24 @@
|
||||
</table>
|
||||
|
||||
{{ $menuPlans->links() }}
|
||||
|
||||
|
||||
<script>
|
||||
$('#search').on('keyup', function () {
|
||||
$value = $(this).val();
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '{{route('menu-plans.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -12,6 +12,13 @@
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('roles.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Rolle</a>
|
||||
|
||||
<form method="post" action="{{ route("roles.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn"></input>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
@@ -35,4 +42,26 @@
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
|
||||
<script>
|
||||
$('#search').on('keyup', function () {
|
||||
$value = $(this).val();
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '{{route('roles.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
console.log(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -10,8 +10,16 @@
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<div class="row align-items-center">
|
||||
|
||||
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('users.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Bruger</a>
|
||||
|
||||
<form method="post" action="{{ route("users.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn"></input>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
@@ -30,6 +38,7 @@
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>{{ $user->phone }}</td>
|
||||
<td>
|
||||
|
||||
@for($i = 0; $i < count($user->roles); $i++)
|
||||
@if(count($user->roles)-1 != $i)
|
||||
{{$user->roles[$i]->name}},
|
||||
@@ -49,6 +58,27 @@
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{{ $users->links() }}
|
||||
|
||||
|
||||
<script>
|
||||
$('#search').on('keyup', function () {
|
||||
$value = $(this).val();
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '{{route('users.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
console.log(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -12,6 +12,12 @@
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('washing-reservations.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Reservation</a>
|
||||
|
||||
<form method="post" action="{{ route("users.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på Navn, Telefon"></input>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<tr>
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
@section('content')
|
||||
<main>
|
||||
<div class="d-flex col block-container mt-2">
|
||||
<a href="" class="block text-center mb-1">Menu</a>
|
||||
<a href="" class="block text-center mb-1">Aktiviteter</a>
|
||||
<a href="" class="block text-center mb-1">Kalender</a>
|
||||
<a href="{{ route('menu-plans.index') }}" class="block text-center mb-1">Menuplan</a>
|
||||
<a href="{{ route('events.index') }}" class="block text-center mb-1">Aktiviteter</a>
|
||||
<a href="{{ route('washing-reservations.index') }}" class="block text-center mb-1">Vaskemaskine Reservationer</a>
|
||||
</div>
|
||||
<div class="links row">
|
||||
<a href="" class="link">
|
||||
<a href="https://www.facebook.com" target="_blank" class="link">
|
||||
<img src="{{ URL::asset('/images/icons/facebook-icon.png') }}" class="h-100" alt="Facebook">
|
||||
</a>
|
||||
<a href="" class="link">
|
||||
<a href="https://www.youtube.com" target="_blank" class="link">
|
||||
<img src="{{ URL::asset('/images/icons/yt.png') }}" class="h-100" alt="Youtube">
|
||||
</a>
|
||||
<a href="" class="link">
|
||||
<a href="https://www.instagram.com" target="_blank" class="link">
|
||||
<img src="{{ URL::asset('/images/icons/instagram.png') }}" class="h-100" alt="Instagram">
|
||||
</a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user