tethys/resources/views/workflow/review/review.blade.php

76 lines
2.9 KiB
PHP
Raw Permalink Normal View History

@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> Review approved dataset
</h3>
</div>
<div class="pure-g box-content">
<div class="pure-u-1 pure-u-md-1">
<div>
2019-06-06 15:34:34 +00:00
<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">
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!!';
@endphp
2019-04-17 14:01:38 +00:00
{!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.review.reviewUpdate', $dataset->id], 'id' => 'reviewForm',
'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
<fieldset id="fieldset-General">
2019-04-17 14:01:38 +00:00
<legend>Values</legend>
<div class="pure-g">
2019-04-17 14:01:38 +00:00
{{-- <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 class="pure-u-1 pure-u-md-1-1 pure-div">
2019-04-17 14:01:38 +00:00
{!! Form::label('editor', 'editor:') !!}
{!! $dataset->editor->login !!}
</div>
<div class="pure-u-1 pure-u-md-1-1 pure-div">
{!! Form::label('owner', 'dataset owner:') !!}
2019-04-17 14:01:38 +00:00
{!! $dataset->user->login !!}
</div> --}}
@foreach($fields as $field => $fieldValue)
<div class="pure-u-1 pure-u-md-1-1 pure-div">
2019-04-17 14:01:38 +00:00
{{ Form::label($field, $field . ": ") }}
2019-04-18 11:16:50 +00:00
<span class="help is-info"> {!! $fieldValue !!} </span>
2019-04-17 14:01:38 +00:00
</div>
@endforeach
</div>
</fieldset>
<br />
<div class="pure-controls">
2019-04-10 08:54:15 +00:00
<button type="submit" class="pure-button">
<i class="fa fa-share"></i>
2019-04-17 14:01:38 +00:00
<span>Set reviewed</span>
</button>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
@stop
2019-04-10 08:54:15 +00:00
@section('after-scripts')
@stop