General
{!! Form::label('Language', 'Language..') !!}
{!! Form::select('Language', $languages, null, ['placeholder' => '[language]', 'v-model' => 'dataset.language', "v-validate" => "'required'"]) !!}
select dataset main language
{!! Form::label('type', 'Type..') !!}
{!! Form::select('type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --']) !!}
{!! Form::label('project_id', 'Project..') !!}
{!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no project--']) !!}
project is optional
{!! Form::label('server_state', 'Status..') !!} {{-- {!! Form::select('server_state', Config::get('enums.server_states'), null, ['id' => 'server_state', 'placeholder' => '-- select server state --']) !!} --}} {!! Form::text('server_state', null, ['class'=>'pure-u-23-24','readonly']) !!}
{!! Form::label('reject_reviewer_note', 'reviewer reject note..') !!} {{-- {!! Form::select('server_state', Config::get('enums.server_states'), null, ['id' => 'server_state', 'placeholder' => '-- select server state --']) !!} --}} {!! Form::textarea('reject_reviewer_note', null, ['class'=>'pure-u-23-24','readonly']) !!}
{!! Form::label('embargo_date', 'Embargo Date') !!} {!! Form::date('embargo_date', null, ['placeholder' => date('y-m-d'), 'class' => 'pure-u-23-24']) !!} embargo_date is optional
{!! Form::label('creating_corporation', 'Creating Corporation') !!} {!! Form::text('creating_corporation', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.creating_corporation', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
Coverage: Geolocation, Elevation, Depth, Time
{!! Form::label('xmin', 'xmin: ') !!} {!! Form::text('coverage[xmin]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.xmin']) !!}
{!! Form::label('ymin', 'ymin: ') !!} {!! Form::text('coverage[ymin]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.ymin']) !!}
{!! Form::label('xmax', 'xmax: ') !!} {!! Form::text('coverage[xmax]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.xmax']) !!}
{!! Form::label('ymax', 'ymax: ') !!} {!! Form::text('coverage[ymax]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.ymax']) !!}
@if (isset($dataset->elevation_absolut))
{!! Form::label('elevation_absolut', 'elevation absolut: ') !!} {!! Form::text('coverage[elevation_absolut]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!}
@elseif (isset($dataset->elevation_min) && isset($dataset->elevation_max))
{!! Form::label('elevation_min', 'elevation min: ') !!} {!! Form::text('coverage[elevation_min]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
{!! Form::label('elevation_max', 'elevation max: ') !!} {!! Form::text('coverage[elevation_max]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
@endif @if (isset($dataset->depth_absolut))
{!! Form::label('depth_absolut', 'depth absolut: ') !!} {!! Form::text('coverage[depth_absolut]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!}
@elseif (isset($dataset->elevation_min) && isset($dataset->elevation_max))
{!! Form::label('depth_min', 'depth min: ') !!} {!! Form::text('coverage[depth_min]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
{!! Form::label('depth_max', 'depth max: ') !!} {!! Form::text('coverage[depth_max]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
@endif @if (isset($dataset->depth_absolut))
{!! Form::label('time_absolut', 'time absolut: ') !!} {!! Form::text('coverage[time_absolut]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.time_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!}
@elseif (isset($dataset->elevation_min) && isset($dataset->elevation_max))
{!! Form::label('time_min', 'time min: ') !!} {!! Form::text('coverage[time_min]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.time_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
{!! Form::label('time_max', 'time max: ') !!} {!! Form::text('coverage[time_max]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.time_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
@endif,
Title
@foreach($dataset->titles as $key => $title)
{{ Form::label('title', 'Title ' .($key+1).':') }} {{ Form::text('titles['.$title->id.'][value]', $title->value, ['class' => 'pure-u-23-24']) }}
{{ Form::label('language', 'Language..') }} {{ Form::text('titles['.$title->id.'][language]', $title->language, ['placeholder' => '--no language--', 'class' => 'pure-u-23-24', 'readonly']) }}
@endforeach
Abstract
@foreach($dataset->abstracts as $key => $abstract)
{{ Form::label('abstract', 'Abstract ' .($key+1).':') }} {{ Form::textarea('abstracts['.$abstract->id.'][value]', $abstract->value, ['class' => 'pure-u-23-24', 'size' => '70x6']) }}
{{ Form::label('language', 'Language..') }} {{ Form::text('abstracts['.$abstract->id.'][language]', $abstract->language, ['placeholder' => '--no language--', 'class' => 'pure-u-23-24', 'readonly']) }}
@endforeach
Licenses {{--
{!! Form::label('licenses[]', 'Licenses..') !!} {!! Form::select('licenses[]', $options, array_pluck($dataset->licenses, 'id'), ['multiple' ]) !!}
--}}
@foreach ($options as $license) @endforeach
Dataset References {{-- --}} @if ($dataset->references->count() > 0)
{{-- --}} @foreach($dataset->references as $key => $reference) @endforeach
Reference value Label Type Relation
{{ Form::text('references['.$reference->id.'][value]', $reference->value, ['class' => 'form-control', 'placeholder' => '[REFERENCE VALUE]']) }} {{ Form::text('references['.$reference->id.'][label]', $reference->label, ['class' => 'form-control', 'placeholder' => '[REFERENCE LABEL]']) }} {!! Form::select('references['.$reference->id.'][type]', $referenceTypes, $reference->type, ['placeholder' => '[reference type]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} {!! Form::select('references['.$reference->id.'][relation]', $relationTypes, $reference->relation, ['placeholder' => '[relation type]', 'v-model' => 'item.relation', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!}
@else ...there are no references @endif
Dataset Keywords {{-- --}} @if ($dataset->subjects->count() > 0)
{{-- --}} @foreach($dataset->subjects as $key => $keyword) @endforeach
Keyword Type
{{-- --}} {{ Form::text('keywords['.$keyword->id.'][value]', $keyword->value, ['class' => 'form-control', 'placeholder' => '[KEYWORD VALUE]']) }} {!! Form::select('keywords['.$keyword->id.'][type]', $keywordTypes, $keyword->type, ['placeholder' => '[keyword type]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} {{-- --}}
@else ...there are no keywords @endif
Files @foreach($dataset->files as $key => $file) @endforeach
Path Name Label
@if($file->exists() === true) {{ $file->path_name }} @else missing file: {{ $file->path_name }} @endif {{-- {{ $file->label }} --}} {{ Form::text('files['.$file->id.'][label]', $file->label, ['class' => 'form-control', 'placeholder' => '[FILE LABEL]']) }}