v1.4.9 - Fixed (most of) style in all documents

This commit is contained in:
Anders 2020-11-26 10:19:12 +01:00
parent f7f449f366
commit cd8fcb8cac
60 changed files with 21912 additions and 365 deletions

View File

@ -236,26 +236,26 @@ class GuideController extends Controller
foreach ($guides as $guide) { foreach ($guides as $guide) {
$output .= '<div class="card">'; $output .= '<div class="card">';
if ($guide->resource_id !== null) { if ($guide->resource_id !== null) {
$output .= '<div class="header" style="background-size: cover; background-position: center; background-image: url(' . asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) . ');">' . $output .= '<div class="header bs-cover bp-center" style="background-image: url(' . asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) . ');">' .
'<h3 style="text-shadow: 2px 2px 2px #00788A;">' . $guide->name . '</h3>' .
'</div>'; '</div>';
} else { } else {
$output .= '<div class="header">' . $output .= '<div class="header d-flex justify-content-center">' .
'<h3>' . $guide->name . '</h3>' . '<img alt="Image" src="'. asset('/images/icons/image.svg') . '" style="width: calc(100% - 20px)">' .
'</div>'; '</div>';
} }
$output .= '<div class="container">'; $output .= '<div class="container">' .
$tags = ['<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>']; '<div class="row justify-content-center">'.
$output .= '' . \App\Helpers::closetags(substr(strip_tags($guide->guide_articles, $tags), 0, 300)) . '' . '<h4>'. $guide->name .'</h4>'.
'<div class="row" style="justify-content: center;">'; '</div>'.
'<div class="row justify-content-center">';
if (request()->cookie('languagesSetting') == "dk") if (request()->cookie('languagesSetting') == "dk")
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>'; $output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
elseif (request()->cookie('languagesSetting') == "en") elseif (request()->cookie('languagesSetting') == "en")
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Read more</a>'; $output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Read more</a>';
else else
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>'; $output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
$output .= '</div>'. $output .= '</div>'.
'</div>'. '</div>'.
@ -263,11 +263,11 @@ class GuideController extends Controller
} }
} else { // If there are no guides with the given category, then display error message } else { // If there are no guides with the given category, then display error message
if (request()->cookie('languagesSetting') == "dk") if (request()->cookie('languagesSetting') == "dk")
$output .= '<p style="margin-bottom: auto; text-align: center">Der er ingen vejledninger af denne kategori</p>'; $output .= '<p class="mb-auto text-center">Der er ingen vejledninger af denne kategori</p>';
elseif (request()->cookie('languagesSetting') == "en") elseif (request()->cookie('languagesSetting') == "en")
$output .= '<p style="margin-bottom: auto; text-align: center">There are no guides of this category</p>'; $output .= '<p class="mb-auto text-center">There are no guides of this category</p>';
else else
$output .= '<p style="margin-bottom: auto; text-align: center">Der er ingen vejledninger af denne kategori</p>'; $output .= '<p class="mb-auto text-center">Der er ingen vejledninger af denne kategori</p>';
} }
return Response($output); return Response($output);

View File

@ -160,8 +160,8 @@ class WashingMachineController extends Controller
$output = "<tr>" . $output = "<tr>" .
"<th>Navn</th>" . "<th>Navn</th>" .
"<th>Lokation</th>" . "<th>Lokation</th>" .
"<th style=\"width: 1em;\"><img class=\"w-100\" src=" . asset('/images/icons/pencil.svg') . " alt=\"Update\"></th>" . "<th class='w-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>" . "<th class='w-1em'><img class=\"w-100\" src=" . asset('/images/icons/trashcan.svg') . " alt=\"Delete\"></th>" .
"</tr>"; "</tr>";
if ($request->option !== 'all') { if ($request->option !== 'all') {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,10 @@
display: flex; display: flex;
} }
.flex-column {
flex-direction: column;
}
.d-none { .d-none {
display: none !important; display: none !important;
} }
@ -28,8 +32,6 @@
cursor: pointer; cursor: pointer;
} }
nav > .pagination { nav > .pagination {
display: flex; display: flex;
list-style: none; list-style: none;
@ -72,3 +74,31 @@ nav {
.calendar-table__col.disabled > .calendar-table__item { .calendar-table__col.disabled > .calendar-table__item {
color: darkgrey; color: darkgrey;
} }
.position-fixed {
position: fixed;
}
.top-0 {
top: 0;
}
.zindex-100 {
z-index: 100;
}
.border-none {
border: none;
}
.outline-none {
outline: none;
}
.overflow-visible {
overflow: visible;
}
ol {
padding-right: 8px;
}

View File

@ -34,14 +34,46 @@
margin-top: 0; margin-top: 0;
} }
.pl-0 {
padding-left: 0;
}
.pr-0 {
padding-right: 0;
}
.pb-0 {
padding-bottom: 0;
}
.pt-0 {
padding-top: 0;
}
.m-none {
margin: 0;
}
.p-none {
padding: 0;
}
.ml-1 { .ml-1 {
margin-left: .75rem; margin-left: .75rem;
} }
.pl-1 {
padding-left: .75rem;
}
.mr-1 { .mr-1 {
margin-right: .75rem; margin-right: .75rem;
} }
.pr-1 {
padding-right: .75rem;
}
.mb-1 { .mb-1 {
margin-bottom: .75rem; margin-bottom: .75rem;
} }
@ -50,6 +82,10 @@
margin-top: .75rem; margin-top: .75rem;
} }
.pt-1 {
padding-top: .75rem;
}
.ml-2 { .ml-2 {
margin-left: 3rem; margin-left: 3rem;
} }
@ -62,10 +98,18 @@
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.mb-2rem {
margin-bottom: 2rem;
}
.mt-2 { .mt-2 {
margin-top: 3rem; margin-top: 3rem;
} }
.mt-2rem {
margin-top: 2rem;
}
.ml-3 { .ml-3 {
margin-left: 3rem; margin-left: 3rem;
} }
@ -81,3 +125,7 @@
.mt-3 { .mt-3 {
margin-top: 4.75rem; margin-top: 4.75rem;
} }
.ml-4px {
margin-left: 4px;
}

View File

@ -14,7 +14,6 @@ html, body {
} }
a { a {
color: #000000;
text-decoration: none; text-decoration: none;
} }
@ -42,6 +41,18 @@ a {
width: 15%; width: 15%;
} }
.w-1em {
width: 1em;
}
.w-6em {
width: 6em;
}
.w-7em {
width: 7em;
}
.h-100 { .h-100 {
height: 100%; height: 100%;
} }
@ -58,6 +69,10 @@ a {
background-color: $sde-blue; background-color: $sde-blue;
} }
.bg-white {
background-color: white;
}
.block-container { .block-container {
padding: 0 8px; padding: 0 8px;
} }
@ -85,3 +100,19 @@ a {
align-self: center; align-self: center;
margin-left: 8px; margin-left: 8px;
} }
.lh-2 {
line-height: 2rem;
}
.bs-cover {
background-size: cover;
}
.bp-center {
background-position: center;
}
.resize-vertical {
resize: vertical;;
}

View File

@ -1,5 +1,9 @@
.text-white { .text-white {
color: #ffffff; color: #fff;
}
.text-black {
color: #000;
} }
.text-center { .text-center {
@ -41,3 +45,23 @@
span.toggle__text.sde-blue { span.toggle__text.sde-blue {
font-size: 5vw; font-size: 5vw;
} }
.justify-content-center {
justify-content: center;
}
.justify-unset {
justify-content: unset;
}
.justify-content-space {
justify-content: space-between;
}
.event-text-shadow {
text-shadow: 2px 2px 2px #00788A;
}
.font-20px {
font-size: 20px;
}

View File

@ -554,3 +554,8 @@ $primary-color: $blue;
from {bottom: 30px; opacity: 1;} from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;} to {bottom: 0; opacity: 0;}
} }
iframe {
width: 100%;
}

View File

@ -27,10 +27,10 @@
<th>E-mail</th> <th>E-mail</th>
<th>Tlf</th> <th>Tlf</th>
@if(auth()->user()->can('contact.edit')) @if(auth()->user()->can('contact.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('contact.delete')) @if(auth()->user()->can('contact.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -29,12 +29,12 @@
<th>Aktivitet Navn</th> <th>Aktivitet Navn</th>
<th>Aktivitet Ansvarlig</th> <th>Aktivitet Ansvarlig</th>
<th>Aktivitet Dato</th> <th>Aktivitet Dato</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th>
@if(auth()->user()->can('event.edit')) @if(auth()->user()->can('event.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('event.delete')) @if(auth()->user()->can('event.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -15,7 +15,7 @@
<th>Tilmeldtes Fornavn</th> <th>Tilmeldtes Fornavn</th>
<th>Tilmeldtes Efternavn</th> <th>Tilmeldtes Efternavn</th>
<th>Tilmeldtes Tlf Nr</th> <th>Tilmeldtes Tlf Nr</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</thead> </thead>
<tbody> <tbody>
@foreach($events as $event) @foreach($events as $event)

View File

@ -18,11 +18,11 @@
</style> </style>
<table class="tbl letterSpaceTable" id="table_id"> <table class="tbl letterSpaceTable" id="table_id">
<thead> <thead>
<th style="width: 6em;">Dato</th> <th class="w-6em">Dato</th>
<th>Feedback Besked</th> <th>Feedback Besked</th>
<th style="width: 7em;">Feedback type</th> <th class="w-7em">Feedback type</th>
@if(auth()->user()->can('feedback.delete')) @if(auth()->user()->can('feedback.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -8,11 +8,11 @@
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script> <script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
</head> </head>
<body> <body>
<header class="row align-items-center" style="background-color: #00788a;"> <header class="row align-items-center bg-sde-blue">
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole"> <img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole">
<p class="text-white" style="margin-left: auto; padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p> <p class="text-white ml-auto" style="padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p>
</header> </header>
<main style="min-height: calc(100% - 72px); background-color: #ffffff;" id="mainDiv"> <main class="bg-white" style="min-height: calc(100% - 72px);" id="mainDiv">
<?php <?php
date_default_timezone_set('Europe/Copenhagen'); date_default_timezone_set('Europe/Copenhagen');
$i = 1; $i = 1;
@ -37,7 +37,7 @@
@endif @endif
@endforeach @endforeach
@if($i == 1) @if($i == 1)
<b class="w-100 text-center" style="font-size: 2vw; padding-top: 16px;">Der er ingen vaskemaskine reservationer for i dag.</b> <b class="w-100 text-center pt-1" style="font-size: 2vw;">Der er ingen vaskemaskine reservationer for i dag.</b>
@endif @endif
</div> </div>
</main> </main>

View File

@ -49,7 +49,7 @@
<span class="toggle__text">Opret som nyhed</span> <span class="toggle__text">Opret som nyhed</span>
</span> </span>
</label> </label>
<div class="form-group" style="display: flex; flex-direction: column" id="delete_event"> <div class="form-group d-flex flex-column" id="delete_event">
<label for="date">Dato til når nyheden skal slettes (valgfri):</label> <label for="date">Dato til når nyheden skal slettes (valgfri):</label>
<input type="datetime-local" name="news_expiration_date" id="date"> <input type="datetime-local" name="news_expiration_date" id="date">
</div> </div>

View File

@ -28,11 +28,10 @@
<th>Navn</th> <th>Navn</th>
<th>Kategori</th> <th>Kategori</th>
@if(auth()->user()->can('guides.edit')) @if(auth()->user()->can('guides.edit'))
<!--<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/preview.svg') }}" alt="preview"></th>--> <th class="w-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/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('guides.delete')) @if(auth()->user()->can('guides.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</tr> </tr>
@foreach($guides as $guide) @foreach($guides as $guide)
@ -67,10 +66,10 @@
<tr> <tr>
<th>Vejlednings kategorier</th> <th>Vejlednings kategorier</th>
@if(auth()->user()->can('guides.edit'))<!--Jeg ved ikke om vi lave mere specifike permissions--> @if(auth()->user()->can('guides.edit'))<!--Jeg ved ikke om vi lave mere specifike permissions-->
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('guides.delete'))<!--Jeg ved ikke om vi lave mere specifike permissions--> @if(auth()->user()->can('guides.delete'))<!--Jeg ved ikke om vi lave mere specifike permissions-->
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</tr> </tr>
@foreach(\App\GuidesCategory::query()->get() as $guideCategory) @foreach(\App\GuidesCategory::query()->get() as $guideCategory)

View File

@ -111,7 +111,7 @@
</table> </table>
@if(\App\Event::query()->orderBy("date", "asc")->first() !== null) @if(\App\Event::query()->orderBy("date", "asc")->first() !== null)
<div class="event_card"> <div class="event_card">
<div class="header" style="padding-top: 0"> <div class="header pt-0">
<table class="tbl mt-0 letterSpaceTable"> <table class="tbl mt-0 letterSpaceTable">
<tr> <tr>
<td><label>Aktivitets navn <span class="dot"></span> {!! (\App\Event::query()->orderBy("date", "asc")->first()->name) !!}</label></td> <td><label>Aktivitets navn <span class="dot"></span> {!! (\App\Event::query()->orderBy("date", "asc")->first()->name) !!}</label></td>
@ -124,15 +124,15 @@
</tr> </tr>
</table> </table>
</div> </div>
<div class="container letterSpaceTable" style="margin-top: 8px;"> <div class="container letterSpaceTable mt-1">
<table style="border: 1px solid lightgrey; width: 100%;"> <table style="border: 1px solid lightgrey; width: 100%;">
<tr> <tr>
<td> {!!(\App\Event::query()->orderBy("date", "asc")->first()->description)!!}</td> <td> {!!(\App\Event::query()->orderBy("date", "asc")->first()->description)!!}</td>
</tr> </tr>
</table> </table>
<input type="hidden" name="event_id" value="{{ \App\Event::query()->orderBy("date", "asc")->first()->id }}"> <input type="hidden" name="event_id" value="{{ \App\Event::query()->orderBy("date", "asc")->first()->id }}">
<div class="row" style="justify-content: space-between; margin-top: 16px;"> <div class="row justify-content-space mt-1">
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.signups", ["event" => \App\Event::query()->orderBy("date", "asc")->first()->id ])}}">Se deltagere</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.signups", ["event" => \App\Event::query()->orderBy("date", "asc")->first()->id ])}}">Se deltagere</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -112,11 +112,6 @@
font-size: 25px; font-size: 25px;
} }
.tooltip:hover .tooltiptext {
/*visibility: visible;*/
}
.letterSpaceingNavBar{ .letterSpaceingNavBar{
letter-spacing: 1.2px; letter-spacing: 1.2px;
} }
@ -125,64 +120,64 @@
<main class="row"> <main class="row">
<div class="col nav" style="background-color: #333333;"> <div class="col nav" style="background-color: #333333;">
<div class="segment hamburger" style="height: 60px;"> <div class="segment hamburger" style="height: 60px;">
<div class="text-white row align-items-center" style="margin-left: -1rem; margin-top: 0; margin-bottom: 0; font-size: 1.15rem; height: calc(100% - 2rem); padding: 1rem 2rem; width: calc(100% - 3rem); background-color: #333333 !important;"> <div class="text-white row align-items-center mt-0 mb-0" style="margin-left: -1rem; font-size: 1.15rem; height: calc(100% - 2rem); padding: 1rem 2rem; width: calc(100% - 3rem); background-color: #333333 !important;">
<a href="javascript:void(0)" id="open" style="padding: 0; margin-left: auto; display: none;" onclick="openNav()" class="open-btn text-white"><i class="fa fa-bars"></i></a> <a href="javascript:void(0)" id="open" style="display: none;" onclick="openNav()" class="open-btn text-white p-none ml-auto"><i class="fa fa-bars"></i></a>
<a href="javascript:void(0)" id="close" style="padding: 0; margin-left: auto;" onclick="closeNav()" class="close-btn text-white"><i class="fa fa-times"></i></a> <a href="javascript:void(0)" id="close" onclick="closeNav()" class="close-btn text-white p-none ml-auto"><i class="fa fa-times"></i></a>
</div> </div>
</div> </div>
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "root.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "root.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('root.index') }}" class="text-white"><img src="{{asset("/images/icons/statistics.svg")}}" class="fa"><span style="margin-left: 4px;">Statistik</span></a></h3><span class="tooltiptext">Statistik</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('root.index') }}" class="text-white"><img src="{{asset("/images/icons/statistics.svg")}}" class="fa"><span class="ml-4px">Statistik</span></a></h3><span class="tooltiptext">Statistik</span></div>
</div> </div>
@if(auth()->user()->can('user.show')) @if(auth()->user()->can('user.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "users.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "users.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('users.index') }}" class="text-white"><img src="{{asset("/images/icons/users-hvid.svg")}}" class="fa"><span style="margin-left: 4px;">Brugere</span></a></h3><span class="tooltiptext">Brugere</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('users.index') }}" class="text-white"><img src="{{asset("/images/icons/users-hvid.svg")}}" class="fa"><span class="ml-4px">Brugere</span></a></h3><span class="tooltiptext">Brugere</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('roles.show')) @if(auth()->user()->can('roles.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "roles.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "roles.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('roles.index') }}" class="text-white"><img src="{{asset("/images/icons/role.svg")}}" class="fa"><span style="margin-left: 4px;">Roller</span></a></h3><span class="tooltiptext">Roller</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('roles.index') }}" class="text-white"><img src="{{asset("/images/icons/role.svg")}}" class="fa"><span class="ml-4px">Roller</span></a></h3><span class="tooltiptext">Roller</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('news.show')) @if(auth()->user()->can('news.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "news.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "news.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('news.index') }}" class="text-white"><img src="{{asset("/images/icons/news.svg")}}" class="fa"><span style="margin-left: 4px;">Nyheder</span></a></h3><span class="tooltiptext">Nyheder</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('news.index') }}" class="text-white"><img src="{{asset("/images/icons/news.svg")}}" class="fa"><span class="ml-4px">Nyheder</span></a></h3><span class="tooltiptext">Nyheder</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('menuplan.show')) @if(auth()->user()->can('menuplan.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "menu-plans.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "menu-plans.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('menu-plans.index') }}" class="text-white"><img src="{{asset("/images/icons/Menuplan.svg")}}" class="fa"><span style="margin-left: 4px;">Menuplan</span></a></h3><span class="tooltiptext">Menuplan</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('menu-plans.index') }}" class="text-white"><img src="{{asset("/images/icons/Menuplan.svg")}}" class="fa"><span class="ml-4px">Menuplan</span></a></h3><span class="tooltiptext">Menuplan</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('event.show')) @if(auth()->user()->can('event.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "events.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "events.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('events.index') }}" class="text-white"><img src="{{asset("/images/icons/Aktiviteter.svg")}}" class="fa"><span style="margin-left: 4px;">Aktiviteter</span></a></h3><span class="tooltiptext">Aktiviteter</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('events.index') }}" class="text-white"><img src="{{asset("/images/icons/Aktiviteter.svg")}}" class="fa"><span class="ml-4px">Aktiviteter</span></a></h3><span class="tooltiptext">Aktiviteter</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('washing.machine.show')) @if(auth()->user()->can('washing.machine.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-machines.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-machines.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-machines.index') }}" class="text-white"><img src="{{asset("/images/icons/wash.svg")}}" class="fa"><span style="margin-left: 4px;">Vaskemaskiner</span></a></h3><span class="tooltiptext">Vaskemaskiner</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-machines.index') }}" class="text-white"><img src="{{asset("/images/icons/wash.svg")}}" class="fa"><span class="ml-4px">Vaskemaskiner</span></a></h3><span class="tooltiptext">Vaskemaskiner</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('washing.machine.reservation.show')) @if(auth()->user()->can('washing.machine.reservation.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-reservations.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-reservations.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-reservations.index') }}" class="text-white"><img src="{{asset("/images/icons/wash_res.svg")}}" class="fa"><span style="margin-left: 4px;">Reservationer</span></a></h3><span class="tooltiptext">Reservationer</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-reservations.index') }}" class="text-white"><img src="{{asset("/images/icons/wash_res.svg")}}" class="fa"><span class="ml-4px">Reservationer</span></a></h3><span class="tooltiptext">Reservationer</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('contact.show')) @if(auth()->user()->can('contact.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "contacts.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "contacts.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('contacts.index') }}" class="text-white"><img src="{{asset("/images/icons/phone.svg")}}" class="fa"><span style="margin-left: 4px;">Kontakter</span></a></h3><span class="tooltiptext">Kontakter</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('contacts.index') }}" class="text-white"><img src="{{asset("/images/icons/phone.svg")}}" class="fa"><span class="ml-4px">Kontakter</span></a></h3><span class="tooltiptext">Kontakter</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('guides.show')) @if(auth()->user()->can('guides.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "guides.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "guides.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('guides.index') }}" class="text-white"><img src="{{asset("/images/icons/Vejledninger.svg")}}" class="fa"><span style="margin-left: 4px;">Vejledning</span></a></h3><span class="tooltiptext">Vejledning</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('guides.index') }}" class="text-white"><img src="{{asset("/images/icons/Vejledninger.svg")}}" class="fa"><span class="ml-4px">Vejledning</span></a></h3><span class="tooltiptext">Vejledning</span></div>
</div> </div>
@endif @endif
@if(auth()->user()->can('feedback.show')) @if(auth()->user()->can('feedback.show'))
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "feedbacks.index") active @endif"> <div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "feedbacks.index") active @endif">
<div class="tooltip"><h3 class="text-white"><a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{asset("/images/icons/feedback.svg")}}" class="fa"><span style="margin-left: 4px;">Feedback</span></a></h3><span class="tooltiptext">Feedback</span></div> <div class="tooltip"><h3 class="text-white"><a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{asset("/images/icons/feedback.svg")}}" class="fa"><span class="ml-4px">Feedback</span></a></h3><span class="tooltiptext">Feedback</span></div>
</div> </div>
@endif @endif
</div> </div>

View File

@ -1,6 +1,6 @@
@section("header") @section("header")
<header class="row align-items-center" style="background-color: #00788a;"> <header class="row align-items-center bg-sde-blue">
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" style="cursor: pointer;" onclick="window.location.href = '{{ route("root.index") }}';" class="brand" alt="Syddansk Erhvervsskole"> <img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" onclick="window.location.href = '{{ route("root.index") }}';" class="brand cursor-pointer" alt="Syddansk Erhvervsskole">
@auth @auth
<a href="{{ route("users.account") }}" class="btn btn-dark text-white m-0 ml-auto">Bruger: {{ ucfirst(Auth::user()->name_first) }} {{ ucfirst(Auth::user()->name_last) }}</a> <a href="{{ route("users.account") }}" class="btn btn-dark text-white m-0 ml-auto">Bruger: {{ ucfirst(Auth::user()->name_first) }} {{ ucfirst(Auth::user()->name_last) }}</a>

View File

@ -18,12 +18,12 @@
<table class="tbl"> <table class="tbl">
<tr> <tr>
<th>Navn</th> <th>Navn</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th>
@if(auth()->user()->can('locations.edit')) @if(auth()->user()->can('locations.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('locations.delete')) @if(auth()->user()->can('locations.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</tr> </tr>
@foreach($locations as $location) @foreach($locations as $location)

View File

@ -8,11 +8,11 @@
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script> <script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
</head> </head>
<body> <body>
<header class="row align-items-center" style="background-color: #00788a;"> <header class="row align-items-center bg-sde-blue">
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole"> <img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole">
<p class="text-white" style="margin-left: auto; padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p> <p class="text-white ml-auto" style="padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p>
</header> </header>
<main style="min-height: calc(100% - 72px); background-color: #ffffff;" id="mainDiv"> <main class="bg-white" style="min-height: calc(100% - 72px);" id="mainDiv">
<?php <?php
date_default_timezone_set('Europe/Copenhagen'); date_default_timezone_set('Europe/Copenhagen');
$i = 1; $i = 1;
@ -37,7 +37,7 @@
@endif @endif
@endforeach @endforeach
@if($i == 1) @if($i == 1)
<b class="w-100 text-center" style="font-size: 2vw; padding-top: 16px;">Der er ingen vaskemaskine reservationer for i dag.</b> <b class="w-100 text-center pt-1" style="font-size: 2vw;">Der er ingen vaskemaskine reservationer for i dag.</b>
@endif @endif
</div> </div>
</main> </main>

View File

@ -25,12 +25,12 @@
<table class="tbl letterSpaceTable" id="table_id"> <table class="tbl letterSpaceTable" id="table_id">
<thead> <thead>
<th>Uge</th> <th>Uge</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/print-hvid.svg') }}" alt="Print"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/print-hvid.svg') }}" alt="Print"></th>
@if(auth()->user()->can('menuplan.edit')) @if(auth()->user()->can('menuplan.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('menuplan.delete')) @if(auth()->user()->can('menuplan.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -1,31 +0,0 @@
@extends("admin.layout.base")
@extends("admin.layout.header")
@section("title")
Menuplan - Vis
@endsection
@section("path")
<a href="{{ route('menu-plans.show', [ "id" => $menuplan->id ]) }}" class="text-white">Vis Menuplan</a> /
@endsection
@section("content")
<table class="tbl">
<tr>
<th>Fredag</th>
<th>Tirsdag</th>
<th>Onsdag</th>
<th>Torsdag</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>{Fredag}</td>
<td>{Tirsdag}</td>
<td>{Onsdag}</td>
<td>{Torsdag}</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

View File

@ -25,10 +25,10 @@
<th>Navn</th> <th>Navn</th>
<th>Udløbsdato</th> <th>Udløbsdato</th>
@if(auth()->user()->can('news.edit')) @if(auth()->user()->can('news.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('news.delete')) @if(auth()->user()->can('news.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -75,7 +75,7 @@
<input type="text" name="description" id="description" placeholder="Admin rollen bruges til administratorene" required> <input type="text" name="description" id="description" placeholder="Admin rollen bruges til administratorene" required>
<div class="mb-2" style="width: 100%;"> <div class="mb-2 w-100">
<button id="kontoButton" type="button" class="btn btn-sde-blue mb-1 mr-1" value="konto">App rettigheder</button> <button id="kontoButton" type="button" class="btn btn-sde-blue mb-1 mr-1" value="konto">App rettigheder</button>
<button id="adminButton" type="button" class="btn btn-sde-blue mb-1">Admin rettigheder</button> <button id="adminButton" type="button" class="btn btn-sde-blue mb-1">Admin rettigheder</button>
</div> </div>

View File

@ -76,7 +76,7 @@
<input type="text" name="description" id="description" placeholder="Admin rollen bruges til administratorene" value="{{ $role->description }}" required> <input type="text" name="description" id="description" placeholder="Admin rollen bruges til administratorene" value="{{ $role->description }}" required>
<div class="mb-2" style="width: 100%;"> <div class="mb-2 w-100">
<button id="kontoButton" type="button" class="btn btn-sde-blue mb-1 mr-1" value="konto">Rediger app rettigheder</button> <button id="kontoButton" type="button" class="btn btn-sde-blue mb-1 mr-1" value="konto">Rediger app rettigheder</button>
<button id="adminButton" type="button" class="btn btn-sde-blue mb-1">Rediger admin rettigheder</button> <button id="adminButton" type="button" class="btn btn-sde-blue mb-1">Rediger admin rettigheder</button>
</div> </div>

View File

@ -25,10 +25,10 @@
<th>Navn</th> <th>Navn</th>
<th>Beskrivelse</th> <th>Beskrivelse</th>
@if(auth()->user()->can('roles.edit')) @if(auth()->user()->can('roles.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('roles.delete')) @if(auth()->user()->can('roles.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -17,7 +17,7 @@
<th>Email</th> <th>Email</th>
<th>Tlf nr</th> <th>Tlf nr</th>
<th>Rolle(r)</th> <th>Rolle(r)</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
</tr> </tr>
<tr> <tr>
<td>{{ Auth::user()->name_first }}</td> <td>{{ Auth::user()->name_first }}</td>

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="h-100 bg-sde-blue">
<div class="brand"> <div class="brand">
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole"> <img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
</div> </div>

View File

@ -62,12 +62,12 @@
<th>Mail</th> <th>Mail</th>
<th>Telefon</th> <th>Telefon</th>
<th>Rolle(r)</th> <th>Rolle(r)</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="ShowImage"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="ShowImage"></th>
@if(auth()->user()->can('user.edit')) @if(auth()->user()->can('user.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('user.delete')) @if(auth()->user()->can('user.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>
@ -88,9 +88,9 @@
@endfor @endfor
</td> </td>
@if($user->resource_id !== null) @if($user->resource_id !== null)
<td style="overflow: visible"><a class="showUsers"><img src="{{ asset('/images/icons/eye-dark.svg') }}"><img src="{{ asset(\App\Resource::query()->where("id", "=", $user->resource_id)->first()->filename) }}" class="showUserImages"></a></td> <td class="overflow-visible"><a class="showUsers"><img src="{{ asset('/images/icons/eye-dark.svg') }}"><img src="{{ asset(\App\Resource::query()->where("id", "=", $user->resource_id)->first()->filename) }}" class="showUserImages"></a></td>
@else @else
<td style="overflow: visible"><a class="showUsers noImages"><img src="{{ asset('/images/icons/eye-dark.svg') }}"><img src="" class="showUserImages"></a></td> <td class="overflow-visible"><a class="showUsers noImages"><img src="{{ asset('/images/icons/eye-dark.svg') }}"><img src="" class="showUserImages"></a></td>
@endif @endif
@if(auth()->user()->can('user.edit')) @if(auth()->user()->can('user.edit'))
<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><a href="{{ route("users.edit", [ "user" => $user->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="bg-sde-blue h-100">
<div class="brand"> <div class="brand">
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole"> <img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
</div> </div>

View File

@ -38,10 +38,10 @@
<th>Navn</th> <th>Navn</th>
<th>Lokation</th> <th>Lokation</th>
@if(auth()->user()->can('washing.machine.edit')) @if(auth()->user()->can('washing.machine.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('washing.machine.delete')) @if(auth()->user()->can('washing.machine.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
@foreach($machines as $machine) @foreach($machines as $machine)
@ -70,12 +70,12 @@
<table class="tbl"> <table class="tbl">
<thead> <thead>
<th>Navn</th> <th>Navn</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th>
@if(auth()->user()->can('locations.edit')) @if(auth()->user()->can('locations.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif @endif
@if(auth()->user()->can('locations.delete')) @if(auth()->user()->can('locations.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
@foreach(\App\Location::query()->get() as $location) @foreach(\App\Location::query()->get() as $location)

View File

@ -13,8 +13,8 @@
<table class="tbl"> <table class="tbl">
<tr> <tr>
<th>Navn</th> <th>Navn</th>
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th class="w-1em"><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 class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr> </tr>
<tr> <tr>
<td>{Navn}</td> <td>{Navn}</td>

View File

@ -25,7 +25,7 @@
<th>Tidspunkt</th> <th>Tidspunkt</th>
<th>Bruger</th> <th>Bruger</th>
@if(auth()->user()->can('washing.machine.reservation.delete')) @if(auth()->user()->can('washing.machine.reservation.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif @endif
</thead> </thead>
<tbody> <tbody>

View File

@ -1,31 +0,0 @@
@extends("admin.layout.base")
@extends("admin.layout.header")
@section("title")
Vaske Reservationer - Vis
@endsection
@section("path")
<a href="{{ route('washing-reservations.index') }}" class="text-white">Vis Vaske Reservationer</a> /
@endsection
@section("content")
<table class="tbl">
<tr>
<th>Fornavn</th>
<th>Efternavn</th>
<th>Telefon Nr.</th>
<th>Vaskemaskine</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>
<th>Fornavn</th>
<th>Efternavn</th>
<th>Telefon Nr.</th>
<th>Vaskemaskine</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>
</table>
@endsection

View File

@ -4,17 +4,15 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mb-0" style="margin-bottom: 2rem">{{ __('msg.omkring') }}</h1> <h1 class="text-center sde-blue mb-2rem">{{ __('msg.omkring') }}</h1>
<h4 class="mb-0 mt-1">Version:</h4> <h4 class="mb-0 mt-1">Version:</h4>
<p>1.0</p> <p>1.0</p>
<h4 class="mb-0 mt-1">{{__("msg.omappen")}}:</h4> <h4 class="mb-0 mt-1">{{__("msg.omappen")}}:</h4>
<p>{{__("msg.infoomappen")}}</p> <p>{{__("msg.infoomappen")}}</p>
<!--<h4 class="mb-1 mt-1">{{__("msg.programmedby")}}:</h4> <!--{{__("msg.programmedby")}}:</h4>
<span style="margin-bottom: 0.2rem;"><span style="float: left;">Anders Rasmussen,</span><span style="float: right;">anders164a@gmail.com</span></span> Anders Rasmussen, Anders164a@gmail.com
<span style="margin-bottom: 0.2rem;">Frederik Milling Pytlick,<span style="float: right;">frederikpyt@gmail.com</span></span> Frederik Milling Pytlick, Frederikpyt@gmail.com
<span style="margin-bottom: 0.2rem;">Vedran Zelen,<span style="float: right;">zelenvedran@gmail.com</span></span> Victor Neerholt, Victorneerholt@gmail.com-->
<span style="margin-bottom: 0.2rem;">Victor Neerholt,<span style="float: right;">victorneerholt@gmail.com</span></span>
<span style="margin-bottom: 0.2rem;">Sebastian Davaris,<span style="float: right;">sebastian@davaris.dk</span></span>-->
</main> </main>
@endsection @endsection

View File

@ -4,7 +4,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mt-0 mb-0">{{__('msg.kontakter')}}</h1> <h1 class="text-center sde-blue mt-0 mb-0">{{__('msg.kontakter')}}</h1>
@if(!$contacts->isEmpty()) @if(!$contacts->isEmpty())
@foreach($contacts as $contact) @foreach($contacts as $contact)

View File

@ -61,7 +61,7 @@
</style> </style>
<main> <main>
<h1 class="text-center sde-blue mb-0" style="margin-bottom: 2rem">{{ __('msg.aktiviteter') }}</h1> <h1 class="text-center sde-blue mb-2rem">{{ __('msg.aktiviteter') }}</h1>
<!--Alert box, display when a event is delete: start--> <!--Alert box, display when a event is delete: start-->
@if(count(\App\Notification::query()->where("user_id", "=", auth()->user()->id)->get()) > 0) @if(count(\App\Notification::query()->where("user_id", "=", auth()->user()->id)->get()) > 0)
<div class="alertBoxBackground" id="notifications"> <div class="alertBoxBackground" id="notifications">
@ -81,10 +81,10 @@
@foreach($events as $event) @foreach($events as $event)
<div class="card"> <div class="card">
@if($event->resource_id !== null) @if($event->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $event->resource_id)->first()->filename) }}');"> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $event->resource_id)->first()->filename) }}');">
<h3 style="text-shadow: 2px 2px 2px #00788A;">{{ $event->name }}</h3> <h3 class="event-text-shadow">{{ $event->name }}</h3>
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-center mt-0">{{__('msg.af')}}: {{ $event->accountable }}</p> <p class="text-center event-text-shadow mt-0">{{__('msg.af')}}: {{ $event->accountable }}</p>
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p> <p class="text-center event-text-shadow mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p>
</div> </div>
@else @else
<div class="header"> <div class="header">
@ -93,27 +93,27 @@
<p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p> <p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p>
</div> </div>
@endif @endif
<div class="container" style="margin-top: 8px;"> <div class="container" class="mt-1">
{!! \App\Helpers::closetags(substr($event->description, 0, 300) )!!} {!! \App\Helpers::closetags(substr($event->description, 0, 300) )!!}
<input type="hidden" name="event_id" value="{{ $event->id }}"> <input type="hidden" name="event_id" value="{{ $event->id }}">
{!! session()->get('error#' . $event->id) !!} {!! session()->get('error#' . $event->id) !!}
{!! session()->get('signup#' . $event->id) !!} {!! session()->get('signup#' . $event->id) !!}
<div class="row" style="justify-content: space-between; margin-top: 16px;"> <div class="row justify-content-space mt-1">
@if (count(\App\UserEvent::query()->where('event_id', '=', $event->id)->where('user_id', '=', Auth::user()->id)->get()) > 0) @if (count(\App\UserEvent::query()->where('event_id', '=', $event->id)->where('user_id', '=', Auth::user()->id)->get()) > 0)
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $event->id }}, this)" >{{__('msg.afmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $event->id }}, this)" >{{__('msg.afmeld')}}</a>
@else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}} @else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}}
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $event->id }}, this)" >{{__('msg.tilmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $event->id }}, this)" >{{__('msg.tilmeld')}}</a>
@endif @endif
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.show", ["event" => $event->id ])}}">{{__('msg.læsmere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.show", ["event" => $event->id ])}}">{{__('msg.læsmere')}}</a>
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => $event->id ])}}">{{__('msg.sedeltagere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.accountsignups", ["event" => $event->id ])}}">{{__('msg.sedeltagere')}}</a>
</div> </div>
</div> </div>
</div> </div>
@endforeach @endforeach
@else @else
<p class="text-center" style="margin-bottom: auto">{{__('msg.dereringenaktiviteter')}}!</p> <p class="text-center mb-auto">{{__('msg.dereringenaktiviteter')}}!</p>
@endif @endif
<a href="{{ route("userevents.index") }}" style="margin-top: auto" class="mt-2 btn text-center btn-sde-blue" id="tilmeld">{{__('msg.setilmeldteaktiviteter')}}</a> <a href="{{ route("userevents.index") }}" class="mt-auto btn text-center btn-sde-blue" id="tilmeld">{{__('msg.setilmeldteaktiviteter')}}</a>
<div id="snackbar"></div> <div id="snackbar"></div>
</main> </main>
@endsection @endsection

View File

@ -9,19 +9,15 @@
iframe, .ql-video { iframe, .ql-video {
width: 100%; width: 100%;
} }
h2, h3, h4 {
margin-top: 0;
}
</style> </style>
<main> <main>
<h1 style="margin-bottom: 2rem" class="text-center sde-blue mt-0">{{__('msg.aktiviteter')}}</h1> <h1 class="text-center sde-blue mt-0 mb-2rem">{{__('msg.aktiviteter')}}</h1>
<div style="padding: 4px; margin-top: .25rem; text-align: justify; "> <div>
<h2 class="text-center sde-blue mt-0 mb-1">{{ $event->name }}</h2> <h2 class="text-center sde-blue mt-0 mb-1">{{ $event->name }}</h2>
<p class="text-center mt-0">{{__('msg.af')}}: {{ $event->accountable }}</p> <p class="text-center mt-0">{{__('msg.af')}}: {{ $event->accountable }}</p>
<p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p> <p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p>
{!!$event->description!!} {!!$event->description!!}
</div> </div>
<button style="margin-top: auto" onclick="window.history.back()" class="btn btn-sde-blue text-white mb-1 mt-1" >{{__('msg.tilbage')}}</button> <button onclick="window.history.back()" class="btn btn-sde-blue text-white mb-1 mt-auto" >{{__('msg.tilbage')}}</button>
</main> </main>
@endsection @endsection

View File

@ -51,12 +51,12 @@
} }
</style> </style>
<main style="min-height: calc(100% - 61.3px)"> <main style="min-height: calc(100% - 61.3px)">
<table class="tbl" style="margin: 2rem 8px 0px 8px; width: calc(100% - 16px);"> <table class="tbl mt-2rem mr-1 mb-0 ml-1" style="width: calc(100% - 16px);">
@if(count($events) == 0) @if(count($events) == 0)
<p class="text-center mt-2">{{__('msg.ingentilmeldte')}}</p> <p class="text-center mt-2">{{__('msg.ingentilmeldte')}}</p>
@else @else
<tr> <tr>
<th style="text-align: center;">{{ __('msg.tilmeldtesnavn') }}</th> <th class="text-center">{{ __('msg.tilmeldtesnavn') }}</th>
</tr> </tr>
@endif @endif
@foreach($events as $UE) @foreach($events as $UE)
@ -67,6 +67,6 @@
@endif @endif
@endforeach @endforeach
</table> </table>
<button onclick="document.location = document.referrer;" style="margin-top: auto; margin-bottom: 8px;" class="btn btn-sde-blue text-white">{{ __('msg.tilbage') }}</button> <button onclick="document.location = document.referrer;" class="btn btn-sde-blue text-white mb-1 mt-auto">{{ __('msg.tilbage') }}</button>
</main> </main>
@endsection @endsection

View File

@ -33,7 +33,7 @@
</style> </style>
<main> <main>
<h1 class="text-center sde-blue mb-0" style="margin-bottom: 2rem">{{__('msg.tilmeldteaktiviteter')}}</h1> <h1 class="text-center sde-blue mb-2rem">{{__('msg.tilmeldteaktiviteter')}}</h1>
{!! session()->get('eventunsubscribed') !!} {!! session()->get('eventunsubscribed') !!}
@if(!$userevents->isEmpty()) @if(!$userevents->isEmpty())
@foreach($userevents as $userevent) @foreach($userevents as $userevent)
@ -42,10 +42,10 @@
@method("delete") @method("delete")
<div class="card"> <div class="card">
@if($userevent->resource_id !== null) @if($userevent->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $userevent->resource_id)->first()->filename) }}');"> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $userevent->resource_id)->first()->filename) }}');">
<h3 style="text-shadow: 2px 2px 2px #00788A;">{{ $userevent->name }}</h3> <h3 class="event-text-shadow">{{ $userevent->name }}</h3>
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-center mt-0">{{__('msg.af')}}: {{ $userevent->accountable }}</p> <p class="event-text-shadow text-center mt-0">{{__('msg.af')}}: {{ $userevent->accountable }}</p>
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($userevent->date))->format('d/m/Y \k\l\. H:i') }}</p> <p class="event-text-shadow text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($userevent->date))->format('d/m/Y \k\l\. H:i') }}</p>
</div> </div>
@else @else
<div class="header"> <div class="header">
@ -55,14 +55,14 @@
</div> </div>
@endif @endif
<div class="container"> <div class="container">
<div class="row" style="justify-content: space-between;"> <div class="row justify-content-space">
@if (count(\App\UserEvent::query()->where('event_id', '=', $userevent->id)->where('user_id', '=', Auth::user()->id)->get()) > 0) @if (count(\App\UserEvent::query()->where('event_id', '=', $userevent->id)->where('user_id', '=', Auth::user()->id)->get()) > 0)
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $userevent->id }}, this)" id="t">{{__('msg.afmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $userevent->id }}, this)" id="t">{{__('msg.afmeld')}}</a>
@else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}} @else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}}
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $userevent->id }}, this)" >{{__('msg.tilmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $userevent->id }}, this)" >{{__('msg.tilmeld')}}</a>
@endif @endif
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.show", ["event" => $userevent->id ])}}">{{__('msg.læsmere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.show", ["event" => $userevent->id ])}}">{{__('msg.læsmere')}}</a>
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => $userevent->id ])}}">{{__('msg.sedeltagere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.accountsignups", ["event" => $userevent->id ])}}">{{__('msg.sedeltagere')}}</a>
</div> </div>
</div> </div>
</div> </div>
@ -71,7 +71,7 @@
@else @else
<p class="text-center">{{__('msg.duharikketilmeldtdignogenaktiviteter')}}!</p> <p class="text-center">{{__('msg.duharikketilmeldtdignogenaktiviteter')}}!</p>
@endif @endif
<a onclick="window.history.back()" type="submit" style="margin-top: auto" class="mt-2 btn text-center btn-sde-blue">{{__('msg.tilbage')}}</a> <a onclick="window.history.back()" type="submit" class="mt-auto btn text-center btn-sde-blue">{{__('msg.tilbage')}}</a>
<div id="snackbar"></div> <div id="snackbar"></div>
</main> </main>
@endsection @endsection

View File

@ -5,13 +5,8 @@
@endsection @endsection
@section("content") @section("content")
<style>
textarea {
color: black;
}
</style>
<main style="min-height: calc(100% - 61.34px)" class="text-center"> <main style="min-height: calc(100% - 61.34px)" class="text-center">
<div method="post" style="margin-top: 4rem; margin-bottom: auto; max-width: 100%; padding: 0 0.45rem 0 0.45rem; display: flex; flex-direction: column; justify-content: center;"> <div method="post" class="mt-3 mb-auto d-flex flex-column pl-1 pr-1">
@csrf @csrf
<span>{{__("msg.risros")}}</span> <span>{{__("msg.risros")}}</span>
<select id="suggestion_form" name="suggestion_form" class="mb-2" required> <select id="suggestion_form" name="suggestion_form" class="mb-2" required>
@ -20,7 +15,7 @@
<option value="Andet">{{__("msg.andet")}}</option> <option value="Andet">{{__("msg.andet")}}</option>
</select> </select>
<span>{{__("msg.besked")}}:</span> <span>{{__("msg.besked")}}:</span>
<textarea id="message" name="message" placeholder="{{__("msg.besked")}}" style="resize: vertical;" required></textarea> <textarea class="text-black resize-vertical" id="message" name="message" placeholder="{{__("msg.besked")}}" required></textarea>
<button onclick="ajaxCall(document.getElementById('suggestion_form'), document.getElementById('message'))" class="btn btn-sde-blue mt-2">{{__("msg.send")}}</button> <button onclick="ajaxCall(document.getElementById('suggestion_form'), document.getElementById('message'))" class="btn btn-sde-blue mt-2">{{__("msg.send")}}</button>
</div> </div>
<div id="snackbar"></div> <div id="snackbar"></div>

View File

@ -32,18 +32,9 @@
div.container { div.container {
padding: 8px; padding: 8px;
text-align: justify;
line-height: 1.5; line-height: 1.5;
} }
ol {
padding-right: 8px;
}
input, select {
/* margin-bottom: 0;*/
}
.select2-container--default .select2-results > .select2-results__options { .select2-container--default .select2-results > .select2-results__options {
max-height: 120px !important; max-height: 120px !important;
} }
@ -51,10 +42,6 @@
.select2-results__option, .select2-search__field { .select2-results__option, .select2-search__field {
color: black; color: black;
} }
.justify-content-center {
justify-content: center;
}
</style> </style>
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script> <script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" /> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
@ -66,11 +53,11 @@
}); });
</script> </script>
<main style="min-height: calc(100% - 61.34px);"> <main style="min-height: calc(100% - 61.34px);">
<h1 class="text-center sde-blue mt-0" style="margin-bottom: 2rem;">{{__('msg.vejledning')}}</h1> <h1 class="text-center sde-blue mt-0 mb-2rem">{{__('msg.vejledning')}}</h1>
@if(!$guides->isEmpty()) @if(!$guides->isEmpty())
@if (count(\App\GuidesCategory::query()->get()) > 1) @if (count(\App\GuidesCategory::query()->get()) > 1)
<h4 class="mt-0 mb-0">{{ __("msg.kategorier") }}</h4> <h4 class="mt-0 mb-0">{{ __("msg.kategorier") }}</h4>
<select id="categorySelect" class="js-example-basic-single" name="state" style="margin-bottom: 2rem !important;"> <select id="categorySelect" class="js-example-basic-single mb-2rem" name="state">
<option value="All" selected>{{ __("msg.allekategorier") }}</option> <option value="All" selected>{{ __("msg.allekategorier") }}</option>
@foreach (\App\GuidesCategory::query()->get() as $Category) @foreach (\App\GuidesCategory::query()->get() as $Category)
<option value="{{ $Category->id }}">{{ $Category->guidesCategoryName }}</option> <option value="{{ $Category->id }}">{{ $Category->guidesCategoryName }}</option>
@ -82,29 +69,28 @@
@foreach($guides as $guide) @foreach($guides as $guide)
<div class="card"> <div class="card">
@if($guide->resource_id !== null) @if($guide->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) }}');"> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) }}');">
</div> </div>
@else @else
<div class="header d-flex justify-content-center"> <div class="header d-flex justify-content-center">
<img src="{{ asset('/images/icons/image.svg') }}" style="width: calc(100% - 20px)"> <img alt="Image" src="{{ asset('/images/icons/image.svg') }}" style="width: calc(100% - 20px)">
</div> </div>
@endif @endif
<div class="container"> <div class="container w-100">
<div class="row" style="justify-content: center;"> <div class="row justify-content-center">
<h4>{{ $guide->name}}</h4> <h4>{{ $guide->name}}</h4>
</div> </div>
<div class="row" style="justify-content: center;"> <div class="row justify-content-center">
<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="{{route("guides.show", ["guide" => $guide->id ])}}">{{__('msg.læsmere')}}</a> <a class="text-center m-none p-none bold sde-blue" href="{{route("guides.show", ["guide" => $guide->id ])}}">{{__('msg.læsmere')}}</a>
</div> </div>
</div> </div>
</div> </div>
@endforeach @endforeach
</div> </div>
@else @else
<p style="margin: 0 18px; margin-bottom: auto; text-align: center">{{__('msg.dereringenvejledninger')}}.</p> <p class="mb-auto text-center">{{__('msg.dereringenvejledninger')}}.</p>
@endif @endif
<button onclick="window.history.back()" style="margin-top: auto;" class="btn btn-sde-blue text-white mb-1 mt-1" >{{__('msg.tilbage')}}</button> <button onclick="window.history.back()" class="btn btn-sde-blue text-white mb-1 mt-auto" >{{__('msg.tilbage')}}</button>
</main> </main>
<script> <script>

View File

@ -5,18 +5,12 @@
@endsection @endsection
@section("content") @section("content")
<style>
h2, h3, h4 {
margin-top: 0;
}
</style>
<main> <main>
<h1 style="margin-bottom: 2rem" class="text-center sde-blue mt-0">{{__('msg.vejledning')}}</h1> <div>
<div style="padding: 4px; margin-top: .25rem; text-align: justify; "> <h2 class="text-center sde-blue">{{ $guide->name }}</h2>
<h2 class="text-center sde-blue mt-0">{{ $guide->name }}</h2> {!!$guide->guide_articles!!}
{!!$guide->guide_articles!!}
</div> </div>
<button style="margin-top: auto" onclick="window.history.back()" class="btn btn-sde-blue text-white mb-1 mt-1" >{{__('msg.tilbage')}}</button> <button onclick="window.history.back()" class="btn btn-sde-blue text-white mb-1 mt-auto" >{{__('msg.tilbage')}}</button>
</main> </main>

View File

@ -42,14 +42,14 @@
</script> </script>
</head> </head>
<body onresize="setMain()" onload="setMain();"> <body onresize="setMain()" onload="setMain();">
<header class="row align-items-center" id="header" style="position: fixed; z-index: 100; top: 0; width: calc(100% - 1.75rem - 1.75rem); background: #00788a; transition: top 0.3s;"> <header class="row align-items-center position-fixed top-0 zindex-100 bg-sde-blue" id="header" style="width: calc(100% - 1.75rem - 1.75rem); transition: top 0.3s;">
@if(request()->cookie("mode") == "dark") @if(request()->cookie("mode") == "dark")
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole"> <img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
@else @else
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole"> <img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
@endif @endif
<button class="ml-auto btn-sde-blue" style="border: none; font-size: 20px; outline: none;" id="toggle"> <button class="ml-auto btn-sde-blue font-20px border-none outline-none" id="toggle">
<i id="icon" class="fas fa-bars" style="color: white;"></i> <i id="icon" class="fas fa-bars text-white"></i>
</button> </button>
</header> </header>
<div class="d-none bg-sde-blue col" id="menu"> <div class="d-none bg-sde-blue col" id="menu">
@ -176,7 +176,6 @@
} }
document.getElementsByTagName("main")[0].style.paddingTop = (10+document.getElementById("header").clientHeight) + "px"; document.getElementsByTagName("main")[0].style.paddingTop = (10+document.getElementById("header").clientHeight) + "px";
//document.getElementById("menu").style.paddingTop = document.getElementById("header").clientHeight + "px";
</script> </script>
</body> </body>
</html> </html>

View File

@ -7,7 +7,7 @@
<?php <?php
$Week = date('W'); //Current week $Week = date('W'); //Current week
?> ?>
<main style="justify-content: unset"> <main class="justify-unset">
@if($menuPlans->contains('week', $Week)) {{-- If any of the menues in the menu table has the number of the week in the 'week' column, do this --}} @if($menuPlans->contains('week', $Week)) {{-- If any of the menues in the menu table has the number of the week in the 'week' column, do this --}}
@foreach($menuPlans as $menuplan) @foreach($menuPlans as $menuplan)
@if($menuplan->week == $Week) @if($menuplan->week == $Week)

View File

@ -1,7 +1,7 @@
@extends("app.layout.base") @extends("app.layout.base")
@section("content") @section("content")
<style> <style>
iframe, .ql-video { .ql-video {
width: 100%; width: 100%;
} }
@ -32,10 +32,6 @@
line-height: 1.5; line-height: 1.5;
} }
ol {
padding-right: 8px;
}
.title{ .title{
margin-left: 50px; margin-left: 50px;
padding: 10px 10px; padding: 10px 10px;
@ -116,7 +112,7 @@
</style> </style>
<main style="justify-content: unset; padding: 0"> <main class="justify-unset p-none">
<?php <?php
date_default_timezone_set('Europe/Copenhagen'); date_default_timezone_set('Europe/Copenhagen');
?> ?>
@ -131,10 +127,10 @@
<span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span> <span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span>
</div> </div>
@if($new->resource_id !== null) @if($new->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div>
@endif @endif
<div class="container" style="margin-top: 8px;"> <div class="container mt-1">
{!! $new->content !!} {!! $new->content !!}
</div> </div>
</div> </div>
@ -146,9 +142,9 @@
<span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span> <span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span>
</div> </div>
@if($new->resource_id !== null) @if($new->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div>
@endif @endif
<div class="container" style="margin-top: 8px;"> <div class="container mt-1">
@if ($new->type_id == 1 || $new->type_id == 2) {{-- If it's a news or menu then display the whole message --}} @if ($new->type_id == 1 || $new->type_id == 2) {{-- If it's a news or menu then display the whole message --}}
{!! $new->content !!} {!! $new->content !!}
@else {{-- If it's a menu, guide or event. Then display up to 300 characters of text --}} @else {{-- If it's a menu, guide or event. Then display up to 300 characters of text --}}
@ -163,32 +159,32 @@
<span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span> <span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span>
</div> </div>
@if($new->resource_id !== null) @if($new->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div>
<div class="information">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->date))->format('d/m/Y \k\l\. H:i') }} <span class="dot"></span> {{\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->accountable}} </div> <div class="information">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->date))->format('d/m/Y \k\l\. H:i') }} <span class="dot"></span> {{\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->accountable}} </div>
<div class="container"> <div class="container">
{!! \App\Helpers::closetags(substr($new->content, 0, 300) ) !!} {!! \App\Helpers::closetags(substr($new->content, 0, 300) ) !!}
<div class="row" style="justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2);"> <div class="row justify-content-space pt-1" style="border-top: 1px solid rgba(0, 0, 0, .2);">
@if (count(\App\UserEvent::query()->where('event_id', '=', $new->arrangement_id)->where('user_id', '=', Auth::user()->id)->get()) > 0) @if (count(\App\UserEvent::query()->where('event_id', '=', $new->arrangement_id)->where('user_id', '=', Auth::user()->id)->get()) > 0)
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.afmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.afmeld')}}</a>
@else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}} @else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}}
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.tilmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.tilmeld')}}</a>
@endif @endif
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.show", ["event" => $new->arrangement_id ])}}">{{__('msg.læsmere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.show", ["event" => $new->arrangement_id ])}}">{{__('msg.læsmere')}}</a>
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => $new->arrangement_id ])}}">{{__('msg.sedeltagere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.accountsignups", ["event" => $new->arrangement_id ])}}">{{__('msg.sedeltagere')}}</a>
</div> </div>
</div> </div>
@else @else
<div class="container"> <div class="container">
{!! \App\Helpers::closetags(substr($new->content, 0, 300) ) !!} {!! \App\Helpers::closetags(substr($new->content, 0, 300) ) !!}
<div class="information2">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->date))->format('d/m/Y \k\l\. H:i') }} <span class="dot"></span> {{\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->accountable}} </div> <div class="information2">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->date))->format('d/m/Y \k\l\. H:i') }} <span class="dot"></span> {{\App\Event::query()->where('id', '=', $new->arrangement_id)->first()->accountable}} </div>
<div class="row" style="justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2);"> <div class="row justify-content-space pt-1" style="border-top: 1px solid rgba(0, 0, 0, .2);">
@if (count(\App\UserEvent::query()->where('event_id', '=', $new->arrangement_id)->where('user_id', '=', Auth::user()->id)->get()) > 0) @if (count(\App\UserEvent::query()->where('event_id', '=', $new->arrangement_id)->where('user_id', '=', Auth::user()->id)->get()) > 0)
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.afmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.afmeld')}}</a>
@else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}} @else {{-- ^ If you're already participating in the event, then show a ´cancel´ button - v Else show a ´participate´ button --}}
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.tilmeld')}}</a> <a class="sde-blue text-center m-none p-none bold" href="javascript:void(0);" onclick="ajaxCall({{ $new->arrangement_id }}, this)" >{{__('msg.tilmeld')}}</a>
@endif @endif
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.show", ["event" => $new->arrangement_id ])}}">{{__('msg.læsmere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.show", ["event" => $new->arrangement_id ])}}">{{__('msg.læsmere')}}</a>
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => $new->arrangement_id ])}}">{{__('msg.sedeltagere')}}</a> <a class="sde-blue text-center m-none p-none bold" href="{{route("events.accountsignups", ["event" => $new->arrangement_id ])}}">{{__('msg.sedeltagere')}}</a>
</div> </div>
</div> </div>
@endif @endif
@ -200,16 +196,16 @@
<span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span> <span class="createdat">{{__('msg.opret')}}{{ date('Y-m-d H:i:s', strtotime($new->created_at))}}</span>
</div> </div>
@if($new->resource_id !== null) @if($new->resource_id !== null)
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div> <div class="header bs-cover bp-center" style="background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');"></div>
<div class="information">{{__('msg.kategori')}}: {{\App\GuidesCategory::query()->where('id', '=', \App\Guide::query()->where('id','=', $new->arrangement_id)->first()->guide_category_id)->first()->guidesCategoryName}}</div> <div class="information">{{__('msg.kategori')}}: {{\App\GuidesCategory::query()->where('id', '=', \App\Guide::query()->where('id','=', $new->arrangement_id)->first()->guide_category_id)->first()->guidesCategoryName}}</div>
@endif @endif
<div class="container" style="margin-top: 8px;"> <div class="container mt-1">
@php $tags = [ '<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>'] @endphp @php $tags = [ '<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>'] @endphp
{!! \App\Helpers::closetags(substr(strip_tags($new->content, $tags), 0, 300)) !!} {!! \App\Helpers::closetags(substr(strip_tags($new->content, $tags), 0, 300)) !!}
@if ($new->type == 'Guide') {{-- Else if's displaying guides, then show `Læs mere` --}} @if ($new->type == 'Guide') {{-- Else if's displaying guides, then show `Læs mere` --}}
<div class="row" style="justify-content: center; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2);"> <div class="row justify-content-space pt-1" style="border-top: 1px solid rgba(0, 0, 0, .2);">
<a style="font-weight: 700;" href="{{route("guides.show", ["guide" => $new->arrangement_id])}}" class="sde-blue">{{__('msg.læsmere')}}</a> <a href="{{route("guides.show", ["guide" => $new->arrangement_id])}}" class="sde-blue bold">{{__('msg.læsmere')}}</a>
</div> </div>
@endif {{-- Else if it's a menu or news, then don't show a button at bottom --}} @endif {{-- Else if it's a menu or news, then don't show a button at bottom --}}
</div> </div>

View File

@ -66,31 +66,31 @@
} }
</style> </style>
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script> <script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
<main style="justify-content: unset"> <main class="justify-unset">
<label for="langu" class="mt-2">Sprog / Languages:</label> <label for="langu" class="mt-2">Sprog / Languages:</label>
<select name="langName" id="lang"> <select name="langName" id="lang">
@if(request()->cookie('languagesSetting') == "dk") @if(request()->cookie('languagesSetting') == "dk")
<option style="color: black;" selected name="langDK" value="dk">Dansk</option> <option class="text-black" selected name="langDK" value="dk">Dansk</option>
@else @else
<option style="color: black;" name="langDK" value="dk">Dansk</option> <option class="text-black" name="langDK" value="dk">Dansk</option>
@endif @endif
@if(request()->cookie('languagesSetting') == "en") @if(request()->cookie('languagesSetting') == "en")
<option selected style="color: black;" name="langEN" value="en">English</option> <option selected class="text-black" name="langEN" value="en">English</option>
@else @else
<option name="langEN" style="color: black;" value="en">English</option> <option name="langEN" class="text-black" value="en">English</option>
@endif @endif
</select> </select>
<label for="dark">Tema / Theme:</label> <label for="dark">Tema / Theme:</label>
<select name="light" id="darkmode"> <select name="light" id="darkmode">
@if(request()->cookie('mode') == "light") @if(request()->cookie('mode') == "light")
<option selected name="ligthmode" style="color: black;" value="Light">{{ __("msg.lys") }}</option> <option selected name="ligthmode" class="text-black" value="Light">{{ __("msg.lys") }}</option>
@else @else
<option name="light" style="color: black;" value="light">{{ __("msg.lys") }}</option> <option name="light" class="text-black" value="light">{{ __("msg.lys") }}</option>
@endif @endif
@if(request()->cookie('mode') == "dark") @if(request()->cookie('mode') == "dark")
<option selected name="darkmode" style="color: black;" value="dark">{{ __("msg.mørk") }}</option> <option selected name="darkmode" class="text-black" value="dark">{{ __("msg.mørk") }}</option>
@else @else
<option name="dark" style="color: black;" value="dark">{{ __("msg.mørk") }}</option> <option name="dark" class="text-black" value="dark">{{ __("msg.mørk") }}</option>
@endif @endif
</select> </select>
<label for="dark">E-mail Notifikationer / E-mail Notifications:</label> <label for="dark">E-mail Notifikationer / E-mail Notifications:</label>

View File

@ -6,15 +6,15 @@
@section("content") @section("content")
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script> <script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1> <h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
@if(\App\Resource::query()->where("id", "=", Auth::user()->resource_id)->first() !== null) @if(\App\Resource::query()->where("id", "=", Auth::user()->resource_id)->first() !== null)
<img style="width: calc(100% - 72px); margin: auto;" src="{{ \App\Resource::query()->where("id", "=",Auth::user()->resource_id)->first()->filename }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ \App\Resource::query()->where("id", "=",Auth::user()->resource_id)->first()->filename }}">
@else @else
@if(request()->cookie("mode") == "dark") @if(request()->cookie("mode") == "dark")
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user-hvid.svg") }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user-hvid.svg") }}">
@else @else
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user.svg") }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user.svg") }}">
@endif @endif
@endif @endif
<h4 class="mt-2">{{__('msg.navn')}}: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4> <h4 class="mt-2">{{__('msg.navn')}}: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4>

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1> <h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
<form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" onsubmit="return checkInputs()"> <form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" onsubmit="return checkInputs()">
@csrf @csrf

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1> <h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
<form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}"> <form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}">
@csrf @csrf
@ -27,7 +27,7 @@
</div> </div>
{!! session()->get('error#notsamepass') !!} {!! session()->get('error#notsamepass') !!}
{!! session()->get('error#oldpass') !!} {!! session()->get('error#oldpass') !!}
<button type="submit" style="margin-top: auto;" class="btn text-center btn-sde-blue mt-1">{{__('msg.rediger')}}</button> <button type="submit" class="btn text-center btn-sde-blue mt-auto">{{__('msg.rediger')}}</button>
<a onclick="window.history.back()" class="btn text-center btn-sde-blue mt-1">{{__('msg.tilbage')}}</a> <a onclick="window.history.back()" class="btn text-center btn-sde-blue mt-1">{{__('msg.tilbage')}}</a>
</form> </form>

View File

@ -5,19 +5,19 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1> <h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
<form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" enctype="multipart/form-data"> <form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" enctype="multipart/form-data">
@csrf @csrf
@method("put") @method("put")
@if(\App\Resource::query()->where("id", "=", Auth::user()->resource_id)->first() !== null) @if(\App\Resource::query()->where("id", "=", Auth::user()->resource_id)->first() !== null)
<img style="width: calc(100% - 72px); margin: auto;" src="{{ \App\Resource::query()->where("id", "=",Auth::user()->resource_id)->first()->filename }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ \App\Resource::query()->where("id", "=",Auth::user()->resource_id)->first()->filename }}">
@else @else
@if(request()->cookie("mode") == "dark") @if(request()->cookie("mode") == "dark")
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user-hvid.svg") }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user-hvid.svg") }}">
@else @else
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user.svg") }}"> <img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user.svg") }}">
@endif @endif
@endif @endif

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="h-100 bg-sde-blue">
<div class="brand"> <div class="brand">
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole"> <img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
</div> </div>

View File

@ -1,40 +0,0 @@
@extends('app.layout.base')
@section('content')
<p>/skolehjem-webapp/skolehjem/resources/views/app/users/index.blade.php</p>
<!--Kan i huske at vi nogen gange det gammel gui, ja det er det her-->
<!--
<main id="main" style="justify-content: space-between;">
<div class="d-flex col block-container mt-2">
<a href="{{ route('menu-plans.index') }}" class="block text-center mb-1">{{ __('msg.menuplan') }}</a>
<a href="{{ route('events.index') }}" class="block text-center mb-1">{{ __('msg.aktiviteter') }}</a>
<a href="{{ route('washing-reservations.appindex') }}" class="block text-center mb-1">{{ __('msg.reservationer') }}</a>
<a href="{{ route('contacts.index') }}" class="block text-center mb-1">{{ __('msg.kontoret') }}</a>
<a href="{{ route('phones.index') }}" class="block text-center mb-1">{{ __('msg.vagttelefon') }}</a>
<a href="{{ route('guides.index') }}" class="block text-center mb-1">{{ __('msg.vejledning') }}</a>
</div>
<div class="row" style="align-self: center; margin: 8px 0 8px 0;">
<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="https://www.youtube.com" target="_blank" class="link">
<img src="{{ URL::asset('/images/icons/yt.png') }}" class="h-100" alt="Youtube">
</a>
<a href="https://www.instagram.com" target="_blank" class="link">
<img src="{{ URL::asset('/images/icons/instagram.png') }}" class="h-100" alt="Instagram">
</a>
</div>
</main>-->
@endsection
@section('scripts')
<script>
function mainHeight() {
document.getElementById('main').style.height = (window.innerHeight - document.getElementById('header').clientHeight) + "px";
}
window.onresize = mainHeight;
mainHeight();
</script>
@endsection

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="bg-sde-blue h-100">
<!--Make the app open in fullscreen--> <!--Make the app open in fullscreen-->
<link rel="stylesheet" type="text/css" href="/../../../css/addtohomescreen.css"> <link rel="stylesheet" type="text/css" href="/../../../css/addtohomescreen.css">
<script src="/../../../js/addtohomescreen.js"></script> <script src="/../../../js/addtohomescreen.js"></script>
@ -18,7 +18,7 @@
<input class="appinput" type="email" name="email" placeholder="Email" required> <input class="appinput" type="email" name="email" placeholder="Email" required>
<div class="input-group text-left"> <div class="input-group text-left">
<input type="password" class="appinput form-control" name="password" id="password" placeholder="Password" required> <input type="password" class="appinput form-control" name="password" id="password" placeholder="Password" required>
<span class="fa fa-fw fa-eye field-icon toggle-password" id="fa-password" onclick="show('password', 'fa-password')" style="background-color: #00788a; color: white;"></span> <span class="fa fa-fw fa-eye field-icon toggle-password bg-sde-blue text-white" id="fa-password" onclick="show('password', 'fa-password')"></span>
</div> </div>
<label class="toggle"> <label class="toggle">
<input class="toggle__input" type="checkbox" name="rememberpassword"> <input class="toggle__input" type="checkbox" name="rememberpassword">
@ -30,7 +30,7 @@
{!! session()->get('error#wrongcredentials') !!} {!! session()->get('error#wrongcredentials') !!}
{!! session()->get('success#loggedout') !!} {!! session()->get('success#loggedout') !!}
<input class="btn btn-dark" type="submit" value="Sign in"> <input class="btn btn-dark" type="submit" value="Sign in">
<button type="button" class="btn btn-dark" onclick="location.href = '{{ route("users.signup") }}'" style="line-height: 2rem;">Register</button> <button type="button" class="btn btn-dark lh-2" onclick="location.href = '{{ route("users.signup") }}'">Register</button>
</form> </form>
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a> <a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
</main> </main>

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="bg-sde-blue h-100">
<div class="brand"> <div class="brand">
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" alt="Syddansk Erhvervsskole"> <img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" alt="Syddansk Erhvervsskole">
</div> </div>

View File

@ -5,7 +5,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="background-color: #00788a; height: 100%;"> <main class="bg-sde-blue h-100">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<div class="brand"> <div class="brand">
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole"> <img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
@ -20,20 +20,7 @@
<input class="appinput" type="email" id="email" name="email" placeholder="E-mail" required> <input class="appinput" type="email" id="email" name="email" placeholder="E-mail" required>
<input class="appinput" type="password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters" name="password" id="password1" placeholder="Password" required> <input class="appinput" type="password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters" name="password" id="password1" placeholder="Password" required>
<input class="appinput" type="password" name="password2" id="password2" placeholder="Confirm password" required> <input class="appinput" type="password" name="password2" id="password2" placeholder="Confirm password" required>
<input class="appinput" type="tel" id="phone" name="phone" placeholder="Phone number" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required style="margin-bottom: 1.5rem;"> <input class="appinput" type="tel" id="phone" name="phone" placeholder="Phone number" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required class="mb-2rem">
<!--<label style="color: white">Education end date:</label>
<input class="appinput" type="date" name="eduenddate" placeholder="Education end date" required>-->
<!--Koncept-->
<!--<label style="color: white" for="edu">Education:</label>
<select style="color: white" name="edu" id="edu">
<option value="datapro">Datatekniker med programmering</option>
<option value="datainf">Datatekniker med infrastruktur</option>
<option value="dataits">Datatekniker med IT-Support</option>-->
<!--<option value="saab">Murer</option>
<option value="opel">Tømmer</option>
<option value="audi">Maler</option>-->
<!--</select>-->
<!--Koncept-->
<input class="btn btn-dark" type="submit" id="disable" value="Sign up"> <input class="btn btn-dark" type="submit" id="disable" value="Sign up">
<input onclick="window.history.back()" class="btn btn-dark text-center " value="Back"> <input onclick="window.history.back()" class="btn btn-dark text-center " value="Back">
</form> </form>

View File

@ -4,7 +4,7 @@
@endsection @endsection
@section("content") @section("content")
<main style="justify-content: unset"> <main class="justify-unset">
<img class="mt-3" src="{{ URL::asset('/images/icons/Vagttelefon-normal.svg') }}" alt="Vagttelefon" style="height: 16vw;"> <img class="mt-3" src="{{ URL::asset('/images/icons/Vagttelefon-normal.svg') }}" alt="Vagttelefon" style="height: 16vw;">
<h1 class="text-center sde-blue mt-0">{{__('msg.vagttelefon')}}</h1> <h1 class="text-center sde-blue mt-0">{{__('msg.vagttelefon')}}</h1>
<p class="mt-0 mb-0">Den kan bruges i dagtimerne til almindelig kontakt om ting vedrørende kollegiet.</p> <p class="mt-0 mb-0">Den kan bruges i dagtimerne til almindelig kontakt om ting vedrørende kollegiet.</p>
@ -17,8 +17,8 @@
<span class="toggle__text sde-blue semi-bold">{{__('msg.accepter')}}</span> <span class="toggle__text sde-blue semi-bold">{{__('msg.accepter')}}</span>
</span> </span>
</label> </label>
<span class="text-center sde-black-20 mt-2" style="margin-top: auto;">+45 24 62 94 50</span> <span class="text-center sde-black-20 mt-auto">+45 24 62 94 50</span>
<a class="btn text-center btn-sde-blue btn-disabled" style="margin-bottom: 8px;" id="call">{{__('msg.ring')}}</a> <a class="btn text-center btn-sde-blue btn-disabled mb-1" id="call">{{__('msg.ring')}}</a>
</main> </main>
@endsection @endsection

View File

@ -10,7 +10,7 @@
color: black; color: black;
} }
</style> </style>
<main style="justify-content: unset"> <main class="justify-unset">
<h1 class="text-center sde-blue mb-0">{{__('msg.bookingliste')}}</h1> <h1 class="text-center sde-blue mb-0">{{__('msg.bookingliste')}}</h1>
{!! session()->get('ReservationExists') !!} {!! session()->get('ReservationExists') !!}
<div class="col w-100 mt-1"> <div class="col w-100 mt-1">