v0.10.14c - Various fixes
This commit is contained in:
parent
6b3af7e667
commit
fa5cd1c3e2
|
@ -31,7 +31,7 @@ class NewsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
{
|
{
|
||||||
$news = News::query()->orderBy('id', 'asc')->paginate(20);
|
$news = News::query()->orderBy('id', 'desc')->paginate(20);
|
||||||
|
|
||||||
return Response::detect("news.index", [ "news" => $news ]);
|
return Response::detect("news.index", [ "news" => $news ]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
word-break: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 0 0.45rem 0 0.45rem;
|
padding: 0 0.45rem 0 0.45rem;
|
||||||
|
@ -197,6 +205,10 @@ nav {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-table__col.disabled > .calendar-table__item {
|
||||||
|
color: darkgrey;
|
||||||
|
}
|
||||||
|
|
||||||
.text-white {
|
.text-white {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
word-break: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 0 0.45rem 0 0.45rem;
|
padding: 0 0.45rem 0 0.45rem;
|
||||||
|
@ -197,6 +205,10 @@ nav {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-table__col.disabled > .calendar-table__item {
|
||||||
|
color: darkgrey;
|
||||||
|
}
|
||||||
|
|
||||||
.text-white {
|
.text-white {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
@ -7059,10 +7071,6 @@ main {
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > * {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#snackbar.show {
|
#snackbar.show {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
|
|
|
@ -18,6 +18,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
word-break: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 0 0.45rem 0 0.45rem;
|
padding: 0 0.45rem 0 0.45rem;
|
||||||
|
@ -197,6 +205,10 @@ nav {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-table__col.disabled > .calendar-table__item {
|
||||||
|
color: darkgrey;
|
||||||
|
}
|
||||||
|
|
||||||
.text-white {
|
.text-white {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
@ -7059,10 +7071,6 @@ main {
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > * {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#snackbar.show {
|
#snackbar.show {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
|
|
|
@ -15,6 +15,12 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
word-break: break-word;
|
||||||
|
hyphens: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
|
|
|
@ -68,3 +68,7 @@ nav > .pagination {
|
||||||
nav {
|
nav {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-table__col.disabled > .calendar-table__item {
|
||||||
|
color: darkgrey;
|
||||||
|
}
|
||||||
|
|
|
@ -524,10 +524,6 @@ $primary-color: $blue;
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > * {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#snackbar.show {
|
#snackbar.show {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
|
|
|
@ -8,7 +8,16 @@
|
||||||
<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 style="justify-content: unset">
|
||||||
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
|
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
|
||||||
<h4 class="mt-0">{{__('msg.navn')}}: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4>
|
@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 }}">
|
||||||
|
@else
|
||||||
|
@if(request()->cookie("mode") == "dark")
|
||||||
|
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user-hvid.svg") }}">
|
||||||
|
@else
|
||||||
|
<img style="width: calc(100% - 72px); margin: auto;" src="{{ asset("/images/icons/user.svg") }}">
|
||||||
|
@endif
|
||||||
|
@endif
|
||||||
|
<h4 class="mt-2">{{__('msg.navn')}}: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4>
|
||||||
<h4 class="mt-0">{{__('msg.email')}}: {{ Auth::user()->email }}</h4>
|
<h4 class="mt-0">{{__('msg.email')}}: {{ Auth::user()->email }}</h4>
|
||||||
<h4 class="mt-0">{{__('msg.telefon')}} Nr.: {{ Auth::user()->phone }}</h4>
|
<h4 class="mt-0">{{__('msg.telefon')}} Nr.: {{ Auth::user()->phone }}</h4>
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,8 @@
|
||||||
let date = moment().locale("da").day(weekDay).week(week);
|
let date = moment().locale("da").day(weekDay).week(week);
|
||||||
var datetext = moment().locale("da").day(weekDay).week(week).year() + "-" + prependZero((moment().locale("da").day(weekDay).week(week).month() + 1)) + "-" + prependZero(moment().locale("da").day(weekDay).week(week).date());
|
var datetext = moment().locale("da").day(weekDay).week(week).year() + "-" + prependZero((moment().locale("da").day(weekDay).week(week).month() + 1)) + "-" + prependZero(moment().locale("da").day(weekDay).week(week).date());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let dayHolder = document.createElement("div");
|
let dayHolder = document.createElement("div");
|
||||||
dayHolder.classList.add("calendar-table__col");
|
dayHolder.classList.add("calendar-table__col");
|
||||||
|
|
||||||
|
@ -95,9 +97,16 @@
|
||||||
|
|
||||||
dayHolder.appendChild(day);
|
dayHolder.appendChild(day);
|
||||||
|
|
||||||
//When clicking on a date run "onDateSelect()"
|
//If date hasn't already happened
|
||||||
dayHolder.onclick = function() {
|
if(date > moment().subtract(1, "days").locale("da")) {
|
||||||
onDateSelect(date, dayHolder, datetext);
|
//When clicking on a date run "onDateSelect()"
|
||||||
|
dayHolder.onclick = function () {
|
||||||
|
onDateSelect(date, dayHolder, datetext);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dayHolder.classList.add("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
calendarRow.appendChild(dayHolder);
|
calendarRow.appendChild(dayHolder);
|
||||||
|
@ -301,12 +310,15 @@
|
||||||
|
|
||||||
|
|
||||||
//Add times 8:00-20:00
|
//Add times 8:00-20:00
|
||||||
for (let hour = 8; hour <= 20; hour++) {
|
for (let hour = 8; hour < 20; hour++) {
|
||||||
|
if(hour < new Date().getHours())
|
||||||
|
continue;
|
||||||
|
|
||||||
let value = datetext + " " + prependZero(hour) + ":00:00";
|
let value = datetext + " " + prependZero(hour) + ":00:00";
|
||||||
|
|
||||||
let option = document.createElement("option");
|
let option = document.createElement("option");
|
||||||
|
|
||||||
option.text = prependZero(hour) + ":00";
|
option.text = prependZero(hour) + ":00-" + prependZero(hour+1) + ":00";
|
||||||
option.value = value;
|
option.value = value;
|
||||||
option.id = value;
|
option.id = value;
|
||||||
element.appendChild(option);
|
element.appendChild(option);
|
||||||
|
|
Loading…
Reference in New Issue