2019-02-12 11:21:35 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
2019-04-09 17:05:03 +00:00
|
|
|
<i class="fa fa-file"></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>
|
|
|
|
<th>Server State</th>
|
2019-04-09 17:05:03 +00:00
|
|
|
<th>Preferred Editor</th>
|
2019-02-21 13:07:00 +00:00
|
|
|
<th></th>
|
2019-02-12 11:21:35 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach($datasets as $dataset)
|
|
|
|
<tr>
|
|
|
|
<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-09 17:05:03 +00:00
|
|
|
<td> {{ optional($dataset->editor)->login }} </td>
|
2019-02-12 11:21:35 +00:00
|
|
|
<td>
|
2019-04-09 17:05:03 +00:00
|
|
|
@if ($dataset->server_state == "released")
|
|
|
|
<a href="{{ URL::route('publish.workflow.accept', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-share"></i>
|
|
|
|
<span>Accept editor task</span>
|
|
|
|
</a>
|
|
|
|
{{-- <a href="{{ URL::route('publish.workflow.delete', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
<span>Reject</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
|