v0.10.3 - Fixed darkmode css on app/washing-reservations/create.blade.php. Fixed frontend file upload valdiation. Fixed analytics

This commit is contained in:
frederikpyt 2020-08-18 07:49:00 +02:00
parent c08933ba9b
commit 44ade93240
6 changed files with 26 additions and 29 deletions

View File

@ -43,7 +43,7 @@
</span>
</label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource">
<input id="fileuploade" type="file" name="resource" accept="image/*">
<input id="disable" type="submit" class="btn btn-dark text-white" value="Opret">
</form>

View File

@ -38,7 +38,7 @@
</span>
</label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource">
<input id="fileuploade" type="file" name="resource" accept="image/*">
<input type="submit" id="disable" class="btn btn-dark text-white" value="Opret">
</form>

View File

@ -82,31 +82,22 @@
</table>
@if(\App\Event::query()->orderByDesc("date")->first() !== null)
<div class="event_card">
@if(\App\Event::query()->orderByDesc("date")->first()->resource_id !== null)
<div class="header" style="padding-top: 0">
<table class="tbl mt-0">
<tr>
<td><label>Event navn</label></td>
<td>{{ \App\Event::query()->orderByDesc("date")->first()->name }}</td>
</tr>
<tr>
<td><label>Event ansvarlig</label></td>
<td>{{__('msg.af')}}: {{ \App\Event::query()->orderByDesc("date")->first()->accountable }}</td>
</tr>
<tr>
<td><label>Tidspunkt</label></td>
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->orderByDesc("date")->first()->date))->format('d/m/Y \k\l\. H:i') }}</td>
</tr>
</table>
</div>
@else
<div class="header">
<h3>{{ \App\Event::query()->orderByDesc("date")->first()->name }}</h3>
<p class="text-center mt-0">Af: {{ \App\Event::query()->orderByDesc("date")->first()->accountable }}</p>
<p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->orderByDesc("date")->first()->date))->format('d/m/Y \k\l\. H:i') }}</p>
</div>
@endif
<div class="header" style="padding-top: 0">
<table class="tbl mt-0">
<tr>
<td><label>Event navn</label></td>
<td>{{ \App\Event::query()->orderByDesc("date")->first()->name }}</td>
</tr>
<tr>
<td><label>Event ansvarlig</label></td>
<td>{{__('msg.af')}}: {{ \App\Event::query()->orderByDesc("date")->first()->accountable }}</td>
</tr>
<tr>
<td><label>Tidspunkt</label></td>
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->orderByDesc("date")->first()->date))->format('d/m/Y \k\l\. H:i') }}</td>
</tr>
</table>
</div>
<div class="container" style="margin-top: 8px;">
<table style="border: 1px solid lightgrey; width: 100%;">
<tr>

View File

@ -45,7 +45,7 @@
</label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource">
<input id="fileuploade" type="file" name="resource" accept="image/*">
<input type="submit" id="disable" class="btn btn-dark text-white" value="Opret Menuplan">

View File

@ -22,7 +22,7 @@
@endif
<span>{{__('msg.profilbillede')}}:</span>
<input type="file" name="resource">
<input type="file" name="resource" accept="image/*">
<button type="submit" class="btn text-center btn-sde-blue mt-1">{{__('msg.ændrer')}}</button>
<a onclick="window.history.back()" class="btn text-center btn-sde-blue mt-1">{{__('msg.tilbage')}}</a>
</form>

View File

@ -5,6 +5,11 @@
@endsection
@section("content")
<style>
option {
color: black;
}
</style>
<main style="justify-content: unset">
<h1 class="text-center sde-blue mb-0">{{__('msg.bookingliste')}}</h1>
{!! session()->get('ReservationExists') !!}
@ -200,6 +205,7 @@
button.id = "create-reservation";
button.innerText = "{{__('msg.reserver')}}";
button.classList.add("btn", "btn-sde-blue")
button.type = "submit";
container.appendChild(button);