2019-02-12 11:21:35 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
2019-04-18 11:16:50 +00:00
|
|
|
<i class="fas fa-list"></i> EDITOR PAGE: Approve released datasets
|
2019-02-12 11:21:35 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-g box-content">
|
|
|
|
<div class="pure-u-1">
|
|
|
|
<table class="pure-table pure-table-horizontal">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<th>Dataset Title</th>
|
|
|
|
<th>ID</th>
|
2019-04-10 08:54:15 +00:00
|
|
|
<th>Server State</th>
|
2019-05-16 16:19:52 +00:00
|
|
|
<th>Editor</th>
|
2019-05-21 16:28:18 +00:00
|
|
|
<th>Date of last modification</th>
|
2019-02-21 13:07:00 +00:00
|
|
|
<th></th>
|
2019-02-12 11:21:35 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2019-04-10 08:54:15 +00:00
|
|
|
@foreach($datasets as $dataset)
|
|
|
|
@php
|
|
|
|
//if userid changed from last iteration, store new userid and change color
|
|
|
|
// $lastid = $detail->payment->userid;
|
|
|
|
if ($dataset->server_state == 'editor_accepted') {
|
|
|
|
$rowclass = 'editor_accepted';
|
2019-05-21 16:28:18 +00:00
|
|
|
} elseif ($dataset->server_state == 'rejected_reviewer') {
|
|
|
|
$rowclass = 'rejected_reviewer';
|
|
|
|
} elseif ($dataset->server_state == 'reviewed') {
|
|
|
|
$rowclass = 'reviewed';
|
|
|
|
}elseif ($dataset->server_state == 'released') {
|
2019-04-10 08:54:15 +00:00
|
|
|
$rowclass = 'released';
|
2019-04-11 16:52:10 +00:00
|
|
|
}
|
2019-04-10 08:54:15 +00:00
|
|
|
@endphp
|
|
|
|
<tr class="{{ $rowclass }}">
|
2019-02-12 11:21:35 +00:00
|
|
|
<td>
|
|
|
|
@if ($dataset->titles()->first())
|
|
|
|
{{ $dataset->titles()->first()->value }}
|
|
|
|
@else
|
|
|
|
no title
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $dataset->id }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $dataset->server_state }}
|
|
|
|
</td>
|
2019-04-10 08:54:15 +00:00
|
|
|
@if ($dataset->server_state == "released")
|
2019-05-14 16:02:25 +00:00
|
|
|
{{-- <td>Preferred reviewer: {{ optional($dataset->reviewer)->login }} </td> --}}
|
|
|
|
<td>Preferred reviewer: {{ $dataset->preferred_reviewer }} </td>
|
2019-05-21 16:28:18 +00:00
|
|
|
@elseif ($dataset->server_state == "editor_accepted" || $dataset->server_state == "rejected_reviewer")
|
2019-04-10 08:54:15 +00:00
|
|
|
<td>in approvement by {{ optional($dataset->editor)->login }} </td>
|
|
|
|
@endif
|
2019-05-21 16:28:18 +00:00
|
|
|
<td>
|
|
|
|
{{ $dataset->server_date_modified }}
|
2019-05-16 16:19:52 +00:00
|
|
|
</td>
|
2019-02-12 11:21:35 +00:00
|
|
|
<td>
|
2019-04-09 17:05:03 +00:00
|
|
|
@if ($dataset->server_state == "released")
|
2019-04-23 11:30:22 +00:00
|
|
|
<a href="{{ URL::route('publish.workflow.editor.receive', $dataset->id) }}" class="pure-button">
|
2019-04-11 16:52:10 +00:00
|
|
|
<i class="fa fa-check"></i>
|
2019-04-17 14:01:38 +00:00
|
|
|
<span>Receive editor task</span>
|
2019-04-11 16:52:10 +00:00
|
|
|
</a>
|
2019-05-21 16:28:18 +00:00
|
|
|
@elseif ($dataset->server_state == "editor_accepted" || $dataset->server_state == "rejected_reviewer")
|
2019-04-11 16:52:10 +00:00
|
|
|
<a href="{{ URL::route('publish.workflow.editor.edit', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-edit"></i>
|
2019-04-17 14:01:38 +00:00
|
|
|
<span>Edit</span>
|
2019-04-11 16:52:10 +00:00
|
|
|
</a>
|
|
|
|
<a href="{{ URL::route('publish.workflow.editor.approve', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-share"></i>
|
|
|
|
<span>Approve</span>
|
2019-05-21 16:28:18 +00:00
|
|
|
</a>
|
|
|
|
<a href="{{ URL::route('publish.workflow.editor.reject', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fas fa-undo"></i>
|
|
|
|
<span>Reject</span>
|
|
|
|
</a>
|
|
|
|
@elseif ($dataset->server_state == "reviewed")
|
|
|
|
<a href="{{ URL::route('publish.workflow.publish.publishUpdate', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-edit"></i>
|
|
|
|
<span>Publish</span>
|
|
|
|
</a>
|
2019-02-12 11:21:35 +00:00
|
|
|
@endif
|
|
|
|
</td>
|
2019-04-09 17:05:03 +00:00
|
|
|
{{-- <td>
|
|
|
|
@if ($dataset->server_state == "unpublished")
|
|
|
|
<a href="{{ URL::route('publish.review.changestate',['id' => $dataset->id, 'targetState' => 'published']) }}" class="pure-button button-small is-success">Publish</a>
|
|
|
|
@endif
|
|
|
|
</td> --}}
|
2019-02-12 11:21:35 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|