A lot of things
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
@section('page-title', "Submissions Queue - " . config('app.name') )
|
||||
|
||||
@section('content')
|
||||
{{ \Diglactic\Breadcrumbs\Breadcrumbs::render() }}
|
||||
<div class="page-title">
|
||||
Submissions Queue
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<div class="queue-item-header">
|
||||
<div class="queue-item-info">
|
||||
<h3 class="queue-item-title">{{ $entry->complete_title }}</h3>
|
||||
<h3 class="queue-item-title">{{ $entry->complete_title ?? $entry->title }}</h3>
|
||||
@if($entry->state === 'rejected')
|
||||
<span class="badge badge--danger">
|
||||
<i data-lucide="x-circle" size="12"></i>
|
||||
@@ -23,20 +23,35 @@
|
||||
<div class="queue-item-meta">
|
||||
Submitted by <x-xf-username-link :user-id="$entry->user_id" />
|
||||
on {{ $entry->created_at->format('Y-m-d') }}
|
||||
<span class="badge {{ $entry->type }}">{{ \App\View\Components\EntryCard::ENTRY_TYPES_BADGE[$entry->type] ?? $entry->type }}</span>
|
||||
@if($entry->queue_type === 'entry' )
|
||||
<span class="badge {{ $entry->type }}">{{ \App\View\Components\EntryCard::ENTRY_TYPES_BADGE[$entry->type] ?? $entry->type }}</span>
|
||||
@else
|
||||
<span class="badge news">News</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@can('manageButtonsInQueue',$entry)
|
||||
<div class="queue-item-actions-header">
|
||||
<a href="{{ route('entries.show', ['section' => $entry->type, 'entry' => $entry ]) }}" class="btn" target="_blank">
|
||||
<i data-lucide="external-link" size="14"></i>
|
||||
View Entry
|
||||
</a>
|
||||
<a href="{{ route('submit.edit', ['section' => $entry->type, 'entry' =>$entry ] ) }}" class="btn" target="_blank">
|
||||
<i data-lucide="pen" size="14"></i>
|
||||
Edit
|
||||
</a>
|
||||
@if( $entry->queue_type === 'entry' )
|
||||
<a href="{{ route('entries.show', ['section' => $entry->type, 'entry' => $entry ]) }}" class="btn" target="_blank">
|
||||
<i data-lucide="external-link" size="14"></i>
|
||||
View Entry
|
||||
</a>
|
||||
<a href="{{ route('submit.edit', ['section' => $entry->type, 'entry' =>$entry ] ) }}" class="btn" target="_blank">
|
||||
<i data-lucide="pen" size="14"></i>
|
||||
Edit
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('news.show', ['news' => $entry ]) }}" class="btn" target="_blank">
|
||||
<i data-lucide="external-link" size="14"></i>
|
||||
View Entry
|
||||
</a>
|
||||
<a href="{{ route('news.edit', ['news' => $entry ] ) }}" class="btn" target="_blank">
|
||||
<i data-lucide="pen" size="14"></i>
|
||||
Edit
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
@@ -97,7 +112,7 @@
|
||||
@can('approve',$entry)
|
||||
@if($entry->state === 'pending')
|
||||
<div class="queue-mod-zone">
|
||||
<form action="{{ route('queue.comment', $entry ) }}" method="POST">
|
||||
<form action="{{ $entry->queue_type === 'entry' ? route('queue.comment', $entry ) : route('queue.news.comment', $entry ) }}" method="POST">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<div class="form-group">
|
||||
@@ -114,7 +129,7 @@
|
||||
|
||||
<div class="queue-mod-separator"></div>
|
||||
|
||||
<form action="{{ route('queue.approve', $entry) }}" method="POST" style="display:inline">
|
||||
<form action="{{ $entry->queue_type === 'entry' ? route('queue.approve', $entry) : route('queue.news.approve', $entry) }}" method="POST" style="display:inline">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<button type="submit" class="btn success" onclick="return confirm('Approve this entry?')">
|
||||
@@ -130,7 +145,7 @@
|
||||
</button>
|
||||
|
||||
<div x-show="open" x-cloak class="queue-reject-form">
|
||||
<form action="{{ route('queue.reject', $entry) }}" method="POST">
|
||||
<form action="{{ $entry->queue_type === 'entry' ? route('queue.reject', $entry) : route('queue.news.reject', $entry) }}" method="POST">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user