2019-04-09 17:05:03 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
2019-04-17 14:01:38 +00:00
|
|
|
<i class="fa fa-share"></i> Receive released dataset
|
2019-04-09 17:05:03 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-g box-content">
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1">
|
|
|
|
<div>
|
2019-04-11 16:52:10 +00:00
|
|
|
<a href="{{ route('publish.workflow.editor.index') }}" class="pure-button button-small">
|
2019-04-09 17:05:03 +00:00
|
|
|
<i class="fa fa-chevron-left"></i>
|
|
|
|
<span>BACK</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="app1">
|
2019-04-11 16:52:10 +00:00
|
|
|
@php
|
|
|
|
// if ($dataset->editor->id == Auth::user()->id) {
|
|
|
|
// $userIsDesiredEditor = true;
|
|
|
|
// } else {
|
|
|
|
// $userIsDesiredEditor = false;
|
|
|
|
// $message = 'you are not the desired editor, but you can still accept the dataset';
|
|
|
|
// }
|
|
|
|
$message = 'If you are not the desired editor, you can still accept the dataset!!';
|
2019-04-09 17:05:03 +00:00
|
|
|
@endphp
|
|
|
|
|
2019-04-23 11:30:22 +00:00
|
|
|
{!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.editor.receiveUpdate', $dataset->id], 'id' => 'acceptForm',
|
2019-04-09 17:05:03 +00:00
|
|
|
'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
|
|
|
|
<fieldset id="fieldset-General">
|
|
|
|
<legend>General</legend>
|
|
|
|
<div class="pure-g">
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-1 pure-div">
|
2019-05-14 16:02:25 +00:00
|
|
|
{{-- {!! Form::label('editor_id', 'preferred editor:') !!}
|
|
|
|
{!! $dataset->preferred_editor !!}
|
|
|
|
<span class="help is-danger"> {!! $message !!}</span> --}}
|
2019-04-09 17:05:03 +00:00
|
|
|
</div>
|
2019-05-14 16:02:25 +00:00
|
|
|
|
2019-04-09 17:05:03 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-1 pure-div">
|
|
|
|
{!! Form::label('owner', 'dataset owner:') !!}
|
|
|
|
{!! $dataset->user->login !!}
|
|
|
|
{{-- <span class="help is-danger" v-if="errors.has('editor_id')" v-text="errors.first('editor_id')"></span> --}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-1 pure-div">
|
|
|
|
{!! Form::label('title', 'dataset title:') !!}
|
|
|
|
@if ($dataset->titles()->first())
|
|
|
|
{{ $dataset->titles()->first()->value }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<div class="pure-controls">
|
2019-04-10 08:54:15 +00:00
|
|
|
<button type="submit" class="pure-button">
|
2019-04-09 17:05:03 +00:00
|
|
|
<i class="fa fa-share"></i>
|
2019-04-17 14:01:38 +00:00
|
|
|
<span>Set Received</span>
|
2019-04-09 17:05:03 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2019-04-10 08:54:15 +00:00
|
|
|
@section('after-scripts')
|
2019-04-09 17:05:03 +00:00
|
|
|
@stop
|