2019-05-16 16:19:52 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
|
|
|
<i class="fa fa-share"></i> Reject approved dataset
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
2019-05-21 16:28:18 +00:00
|
|
|
@if (count($errors) > 0)
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2019-05-16 16:19:52 +00:00
|
|
|
<div class="pure-g box-content">
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1">
|
|
|
|
<div>
|
|
|
|
<a href="{{ route('publish.workflow.review.index') }}" class="pure-button button-small">
|
|
|
|
<i class="fa fa-chevron-left"></i>
|
|
|
|
<span>BACK</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="app1">
|
|
|
|
|
|
|
|
{!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.review.rejectUpdate', $dataset->id], 'id' => 'rejectForm',
|
|
|
|
'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
|
|
|
|
<fieldset id="fieldset-General">
|
|
|
|
<legend>General</legend>
|
|
|
|
<div class="pure-g">
|
2019-05-21 16:28:18 +00:00
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-1 pure-div">
|
|
|
|
{!! Form::label('server_state', 'Status..') !!}
|
|
|
|
{!! Form::text('server_state', 'rejected_reviewer', ['class'=>'pure-u-23-24','readonly']) !!}
|
|
|
|
|
|
|
|
</div>
|
2019-05-16 16:19:52 +00:00
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-1 pure-div">
|
2019-05-21 16:28:18 +00:00
|
|
|
{!! Form::label('reject_reviewer_note', 'reject note:') !!}
|
|
|
|
{!! Form::textarea('reject_reviewer_note',null, ['id' => 'reject_reviewer_note', 'class'=>'pure-u-23-24',
|
|
|
|
'placeholder' => '-- reject note for editor --', 'size' => '70x6',
|
2019-11-25 13:41:25 +00:00
|
|
|
'v-model' => 'dataset.reject_reviewer_note', "v-validate" => "'required|min:10|max:500'"]) !!}
|
2019-05-16 16:19:52 +00:00
|
|
|
<em>*</em>
|
|
|
|
|
2019-05-21 16:28:18 +00:00
|
|
|
<span class="help is-danger" v-if="errors.has('reject_reviewer_note')" v-text="errors.first('reject_reviewer_note')"></span>
|
2019-05-16 16:19:52 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<div class="pure-controls">
|
2019-05-21 16:28:18 +00:00
|
|
|
<button type="submit" class="pure-button">
|
2019-05-16 16:19:52 +00:00
|
|
|
<i class="fas fa-undo"></i>
|
2019-05-21 16:28:18 +00:00
|
|
|
<span>Reject to editor</span>
|
|
|
|
</button>
|
|
|
|
{{-- <span class="help is-danger">..to do: write code for setting state 'rejected_reviewer' in database</span> --}}
|
2019-05-16 16:19:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('after-scripts')
|
|
|
|
@stop
|