v1.5.20 - Removed event_end & Updated Migration
Updated Delete of multiple event Started on deletion of single event & multiple-event edit Removed userevent $key variable Updated multipdf Fixed web.php
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
@foreach(\App\MultipleEventsParent::query()->orderBY('id' , 'desc')->get() as $event)
|
||||
<tr id="row2_{{ $event->id }}">
|
||||
<td>{{ $event->week}}</td>
|
||||
<td><a href="{{ route("multiple-events.signups", $event->id) }}"><img class="w-100" src="{{ asset('/images/icons/eye-dark.svg') }}" alt="Show"></a></td>
|
||||
<td><a href="{{ route("multiple-events.signups", ["multipleEvent" => $event->id]) }}"><img class="w-100" src="{{ asset('/images/icons/eye-dark.svg') }}" alt="Show"></a></td>
|
||||
<td><a id="preview" onclick="modalMultiEventContent({{$event->id}})" style="cursor: pointer"><img class="w-100" src="{{ asset('/images/icons/preview-dark.svg') }}" alt="preview"></a></td>
|
||||
<td><a href="{{ route("multiPdf.genPDF", [ "multiEvent" => $event->id ]) }}" target="_blank"><img class="w-100" src="{{ asset('/images/icons/print.svg') }}" alt="Print"></a></td>
|
||||
@if(auth()->user()->can('event.edit'))
|
||||
@@ -132,6 +132,7 @@
|
||||
</div>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script src="{{ asset("/js/moment-with-locales.min.js") }}"></script>
|
||||
<script>
|
||||
var modalEvent = document.getElementById("eventModal");
|
||||
var modalMultiEvent = document.getElementById("eventMultiModal");
|
||||
@@ -173,8 +174,10 @@
|
||||
$("#eventmultiimg").attr('src', data[0].filename);
|
||||
|
||||
for (var i = 0; i < data[1].length; i++) {
|
||||
var d = new Date(data[1][i].date);
|
||||
var day = moment().lang("da").day(d.getDay()).format("dddd");
|
||||
$("#events").append("<div class='container text-center'><div class='row justify-content-center'><div class='col'><h1 class='mb-0'>"+data[1][i].name+"</h1>" +
|
||||
"<h3 class='mt-0 mb-0'>"+data[1][i].date+" - "+data[1][i].event_end+"</h3>" +
|
||||
"<h3 class='mt-0 mb-0'>"+d.getDate()+"/"+(d.getMonth()+1)+"/"+d.getFullYear()+" "+d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })+" ["+ day.charAt(0).toUpperCase() + day.slice(1) +"]</h3>" +
|
||||
"<h3 class='mt-0'>Tovholder: "+data[1][i].accountable+"</h3>" +
|
||||
"<h3 class='mb-0'>Beskrivelse:</h3>" +
|
||||
"<p class='mt-0'>"+data[1][i].description+"</p>" +
|
||||
|
||||
Reference in New Issue
Block a user