tethys/resources/views/workflow/submitter/release.blade.php

103 lines
4.9 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-08 16:31:40 +00:00
<i class="fa fa-share"></i> Release saved datasets
2019-02-12 11:21:35 +00:00
</h3>
</div>
2019-04-08 16:31:40 +00:00
<div class="header">
<h3 class="header-title">
Release your dataset for Editor
</h3>
</div>
<div class="pure-g box-content">
<div class="pure-u-1 pure-u-md-1">
<div>
2019-04-23 11:30:22 +00:00
<a href="{{ route('publish.workflow.submit.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-23 11:30:22 +00:00
{!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.submit.releaseUpdate', $dataset->id], 'id' => 'releaseForm',
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">
2019-05-21 16:28:18 +00:00
<div class="pure-u-1 pure-u-md-1-1">
<div class="pure-u-1 pure-u-md-1">
<label for="preferred-option-one" class="pure-radio">
<input id="preferred-option-one" type="radio" v-model="preferation" value="yes_preferation">
preferred reviewer
</label>
<label for="elevation-option-two" class="pure-radio">
<input id="elevation-option-two" type="radio" v-model="preferation" value="no_preferation">
no preferred reviewer
</label>
</div>
<div v-show="preferation === 'yes_preferation'" class="pure-u-1 pure-u-md-1">
<div class="pure-u-1 pure-u-md-1-1 pure-div">
{!! Form::label('preferred_reviewer', 'name of preferred reviewer:') !!}
{{-- {!! Form::select('editor_id', $editors, null, ['id' => 'editor_id', 'placeholder' => '-- select editor --', 'v-model' =>
'dataset.editor_id', "v-validate" => "'required'"]) !!} --}}
{!! Form::text('preferred_reviewer', null, ['id' => 'preferred_reviewer', 'class'=>'pure-u-23-24',
'placeholder' => '-- enter name of preferred reviewer --',
'v-model' => 'dataset.preferred_reviewer',
"v-validate" => "this.isPreferationRequired ? 'required|min:3|max:20' : ''"]) !!}
<em>*</em>
<span class="help is-danger" v-if="errors.has('preferred_reviewer')" v-text="errors.first('preferred_reviewer')"></span>
</div>
<div class="pure-u-1 pure-u-md-1-1 pure-div">
{!! Form::label('preferred_reviewer_email', 'email of preferred reviewer:') !!}
{!! Form::text('preferred_reviewer_email', null, array(
'placeholder' => 'Email', 'id' => 'preferred_reviewer_email', 'class' => 'pure-u-23-24',
'v-model' => 'dataset.preferred_reviewer_email',
"v-validate" => "this.isPreferationRequired ? 'required|mail' : ''")) !!}
<em>*</em>
<span class="help is-danger" v-if="errors.has('preferred_reviewer_email')" v-text="errors.first('preferred_reviewer_email')"></span>
</div>
</div>
</div>
2019-04-08 16:31:40 +00:00
2019-04-08 16:31:40 +00:00
</div>
</fieldset>
<br />
<div class="pure-controls">
<button :disabled="errors.any()" type="submit" class="pure-button">
<i class="fa fa-share"></i>
<span>Release</span>
</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> --}}
<script type="text/javascript" src="{{ asset('backend/publish/releaseDataset.js') }}"></script>
2019-02-12 11:21:35 +00:00
@stop