v1.5.24 Added archive function

This commit is contained in:
2021-05-17 10:15:15 +02:00
parent f865213763
commit ad3a1e7570
9 changed files with 57 additions and 15 deletions
@@ -23,6 +23,7 @@
<table class="tbl letterSpaceTable fixOverflow" id="table_id">
<thead>
<th>Navn</th>
<th>Nyheds type</th>
<th>Udløbsdato</th>
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/preview.svg') }}" alt="preview"></th>
@if(auth()->user()->can('news.edit'))
@@ -36,6 +37,7 @@
@foreach($news as $new)
<tr id="row_{{ $new->id }}">
<td>{{$new->subname}}</td>
<td>{{$new->type}}</td>
@if($new->news_expiration_date !== null)
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($new->news_expiration_date))->format('d/m/Y \k\l\. H:i') }}</td>
@else
@@ -111,7 +113,7 @@
$(document).ready( function () {
$('#table_id').DataTable({
columnDefs: [
{ orderable: false, targets: [-1, -2, -3] }
{ orderable: false, targets: [-1, -2, -3, -4] }
]
});
});