@extends('settings.layouts.app') @section('content')

Accept released dataset

Release your dataset for Editor

BACK
@php //if userid changed from last iteration, store new userid and change color // $lastid = $detail->payment->userid; 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'; } @endphp {!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.acceptUpdate', $dataset->id], 'id' => 'acceptForm', 'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
General
{!! Form::label('editor_id', 'preferred editor:') !!} {!! $dataset->editor->login !!} @if($userIsDesiredEditor == false) {!! $message !!} @endif {{-- --}}
{!! Form::label('owner', 'dataset owner:') !!} {!! $dataset->user->login !!} {{-- --}}
{!! Form::label('title', 'dataset title:') !!} @if ($dataset->titles()->first()) {{ $dataset->titles()->first()->value }} @endif

{!! Form::close() !!}
@stop @section('after-scripts') @stop