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> </span>
</label> </label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</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"> <input id="disable" type="submit" class="btn btn-dark text-white" value="Opret">
</form> </form>

View File

@ -38,7 +38,7 @@
</span> </span>
</label> </label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</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"> <input type="submit" id="disable" class="btn btn-dark text-white" value="Opret">
</form> </form>

View File

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

View File

@ -45,7 +45,7 @@
</label> </label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</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"> <input type="submit" id="disable" class="btn btn-dark text-white" value="Opret Menuplan">

View File

@ -22,7 +22,7 @@
@endif @endif
<span>{{__('msg.profilbillede')}}:</span> <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> <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> <a onclick="window.history.back()" class="btn text-center btn-sde-blue mt-1">{{__('msg.tilbage')}}</a>
</form> </form>

View File

@ -5,6 +5,11 @@
@endsection @endsection
@section("content") @section("content")
<style>
option {
color: black;
}
</style>
<main style="justify-content: unset"> <main style="justify-content: 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') !!}
@ -200,6 +205,7 @@
button.id = "create-reservation"; button.id = "create-reservation";
button.innerText = "{{__('msg.reserver')}}"; button.innerText = "{{__('msg.reserver')}}";
button.classList.add("btn", "btn-sde-blue")
button.type = "submit"; button.type = "submit";
container.appendChild(button); container.appendChild(button);