2019-08-27 09:15:23 +00:00
|
|
|
@extends('settings.layouts.app')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
|
|
|
<span>Edit Dataset</span>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2019-12-20 10:44:40 +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-08-27 09:15:23 +00:00
|
|
|
<div class="pure-g box-content">
|
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-3-3">
|
2019-08-27 09:15:23 +00:00
|
|
|
<div>
|
|
|
|
<a href="{{ route('publish.workflow.submit.index') }}" class="pure-button button-small">
|
|
|
|
<i class="fa fa-chevron-left"></i>
|
|
|
|
<span>BACK</span>
|
2019-12-20 10:44:40 +00:00
|
|
|
</a>
|
2019-08-27 09:15:23 +00:00
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
<div id="app1">
|
|
|
|
{!! Form::model($dataset, ['method' => 'POST', 'route' => ['publish.workflow.submit.update', $dataset->id], 'id' => 'submitEditForm',
|
|
|
|
'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'onSubmit' ]) !!}
|
2020-01-08 14:14:33 +00:00
|
|
|
@include('workflow/submitter/_form', ['submitButtonText' => 'Save Dataset', 'bookLabel' => 'Edit Dataset.'])
|
2020-01-23 16:52:26 +00:00
|
|
|
|
|
|
|
{{-- @if (count($errors) > 0)
|
|
|
|
<div>
|
|
|
|
<b>Please correct the following error(s):</b>
|
|
|
|
<ul class="alert validation-summary-errors">
|
|
|
|
@foreach($errors->all() as $error)
|
|
|
|
<li style="margin-left:5px;">{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
|
2020-01-23 16:52:26 +00:00
|
|
|
<!-- client errors -->
|
2019-12-20 10:44:40 +00:00
|
|
|
<div v-if="errors.items.length > 0">
|
|
|
|
<b>Please correct the following error(s):</b>
|
|
|
|
<ul class="alert validation-summary-errors">
|
|
|
|
<li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
{!! Form::close() !!}
|
2019-12-20 10:44:40 +00:00
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('after-scripts')
|
|
|
|
<script>
|
|
|
|
window.Laravel = <?php echo json_encode([
|
|
|
|
'csrf_token' => csrf_token(),
|
|
|
|
'form' => $dataset,
|
2020-01-08 14:14:33 +00:00
|
|
|
'titleTypes' => $titleTypes,
|
|
|
|
'descriptionTypes' => $descriptionTypes,
|
|
|
|
'languages' => $languages,
|
2020-01-28 16:59:52 +00:00
|
|
|
'messages' => $messages,
|
2019-12-20 10:44:40 +00:00
|
|
|
'projects' => $projects,
|
|
|
|
'licenses' => $licenses,
|
2020-01-07 17:49:53 +00:00
|
|
|
'checkeds' => $checkeds,
|
|
|
|
'referenceTypes' => $referenceTypes,
|
|
|
|
'relationTypes' => $relationTypes
|
2019-12-20 10:44:40 +00:00
|
|
|
]); ?>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="{{ asset('backend/publish/mainEditDataset.js') }}"></script>
|
2019-08-27 09:15:23 +00:00
|
|
|
@stop
|