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
@@ -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>
@@ -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>
+16 -25
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>
@@ -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">