2019-04-08 16:31:40 +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> Release saved datasets
|
2019-04-08 16:31:40 +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>Owner</th>
|
|
|
|
<th>Server State</th>
|
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@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 == 'inprogress') {
|
|
|
|
$rowclass = 'inprogress';
|
|
|
|
} elseif ($dataset->server_state == 'released') {
|
|
|
|
$rowclass = 'released';
|
2019-04-10 08:54:15 +00:00
|
|
|
}
|
|
|
|
elseif ($dataset->server_state == 'editor_accepted') {
|
|
|
|
$rowclass = 'editor_accepted';
|
2019-04-11 16:52:10 +00:00
|
|
|
} elseif ($dataset->server_state == 'approved') {
|
|
|
|
$rowclass = 'approved';
|
2019-04-17 14:01:38 +00:00
|
|
|
} elseif ($dataset->server_state == 'reviewed') {
|
|
|
|
$rowclass = 'reviewed';
|
2019-05-21 16:28:18 +00:00
|
|
|
} elseif ($dataset->server_state == 'rejected_editor') {
|
|
|
|
$rowclass = 'rejected_editor';
|
|
|
|
}
|
2019-04-08 16:31:40 +00:00
|
|
|
@endphp
|
|
|
|
<tr class="{{ $rowclass }}">
|
|
|
|
<td>
|
|
|
|
@if ($dataset->titles()->first())
|
|
|
|
{{ $dataset->titles()->first()->value }}
|
|
|
|
@else
|
|
|
|
no title
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $dataset->user->login }}
|
|
|
|
</td>
|
|
|
|
{{-- <td>
|
|
|
|
{{ optional($dataset->editor)->login }}
|
|
|
|
</td> --}}
|
|
|
|
<td>
|
|
|
|
{{ $dataset->server_state }}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2019-05-21 16:28:18 +00:00
|
|
|
@if ($dataset->server_state == "inprogress" || $dataset->server_state == "rejected_editor")
|
2019-04-23 11:30:22 +00:00
|
|
|
<a href="{{ URL::route('publish.workflow.submit.release', $dataset->id) }}" class="pure-button">
|
2019-04-08 16:31:40 +00:00
|
|
|
<i class="fa fa-share"></i>
|
|
|
|
<span>Release</span>
|
|
|
|
</a>
|
|
|
|
<a href="{{ URL::route('publish.workflow.delete', $dataset->id) }}" class="pure-button">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
<span>Delete</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|