tethys/resources/views/workflow/editor/approve.blade.php

60 lines
2.3 KiB
PHP
Raw Normal View History

2019-02-12 11:21:35 +00:00
@extends('settings.layouts.app')
@section('content')
<div class="header">
<h3 class="header-title">
2019-04-11 16:52:10 +00:00
<i class="fa fa-share"></i> Approve corrected datasets
2019-04-08 16:31:40 +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-08 16:31:40 +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
{!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.editor.approveUpdate', $dataset->id], 'id' => 'approveForm',
2019-04-08 16:31:40 +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-2 pure-div">
2019-04-11 16:52:10 +00:00
{!! Form::label('reviewer_id', 'reviewer:') !!}
2019-04-08 16:31:40 +00:00
<div class="select pure-u-23-24">
2019-04-11 16:52:10 +00:00
{!! Form::select('reviewer_id', $reviewers, null, ['id' => 'reviewer_id', 'placeholder' => '-- select reviewer --', 'v-model' =>
'dataset.reviewer_id', "v-validate" => "'required'"]) !!}
2019-04-08 16:31:40 +00:00
</div>
2019-04-11 16:52:10 +00:00
<span class="help is-danger" v-if="errors.has('reviewer_id')" v-text="errors.first('reviewer_id')"></span>
2019-04-08 16:31:40 +00:00
</div>
</div>
</fieldset>
<br />
<div class="pure-controls">
<button :disabled="errors.any()" type="submit" class="pure-button">
<i class="fa fa-share"></i>
2019-04-11 16:52:10 +00:00
<span>Approve</span>
2019-04-08 16:31:40 +00:00
</button>
</div>
{!! Form::close() !!}
</div>
2019-02-12 11:21:35 +00:00
</div>
2019-04-08 16:31:40 +00:00
2019-02-12 11:21:35 +00:00
</div>
2019-04-08 16:31:40 +00:00
@stop
@section('after-scripts') {{--
<script type="text/javascript" src="{{ asset('js/lib.js') }}"></script> --}} {{--
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>--}} {{--
<script type="text/javascript" src="{{ resource_path('assets\js\datasetPublish.js') }}"></script> --}}
2019-04-11 16:52:10 +00:00
<script type="text/javascript" src="{{ asset('backend/publish/approveDataset.js') }}"></script>
2019-04-08 16:31:40 +00:00
2019-02-12 11:21:35 +00:00
@stop